Skip to content

Instantly share code, notes, and snippets.

View jtprogru's full-sized avatar
🦄
Make a rainbow shit

Mikhail Savin jtprogru

🦄
Make a rainbow shit
View GitHub Profile
{
"basics": {
"name": "Mikhail Savin",
"label": "TechLead SRE / CTO / Practicing teacher",
"picture": "https://github.com/jtprogru.png",
"email": "[email protected]",
"website": "https://jtprog.ru",
"summary": "I have quite rich and versatile experience in the role of Infrastructure Engineer, SRE, Head of IT Division and Operations, CTO. I am a member of DevOpsConf program committee and a practicing teacher of RTU MIREA.",
"location": {
"city": "Moscow",
@jtprogru
jtprogru / Makefile
Last active October 17, 2024 03:48
Simple Makefile for Golang project
SHELL := /bin/bash
.SILENT:
.DEFAULT_GOAL := help
# Global vars
export SYS_GO=$(shell which go)
export SYS_GOFMT=$(shell which gofmt)
export SYS_DOCKER=$(shell which docker)
export BINARY_DIR=dist
@jtprogru
jtprogru / Makefile
Created April 29, 2022 17:40
Simple Makefile for Python project
SHELL := /bin/bash
.SILENT:
.DEFAULT_GOAL := help
SYS_PY3=$(shell which python3)
VENV_DIR=./venv
VENV_PY3=$(VENV_DIR)/bin/python
VENV_PIP3=$(VENV_DIR)/bin/pip
.PHONY: venv
@jtprogru
jtprogru / main.go
Last active December 14, 2021 21:23
recursion may be faster
package main
import (
"fmt"
"time"
)
func main() {
startTime := time.Now()
fmt.Println("Run -> Fib")
@jtprogru
jtprogru / README.md
Last active October 27, 2021 20:01
Шаблон README.md файла для моих репозиториев - взят из проекта https://github.com/jtprogru/py-tg-moder/

project-reponame

Различные бэйджики <-->

Code style: black Docker Testing GitHub stars GitHub issues GitHub release (latest by date)

@jtprogru
jtprogru / localmac.yaml
Last active February 22, 2022 18:25
Список софта для быстрой установки из Homebrew, Mac App Store, настройка hostname
---
- name: macOS
hosts: localhost
connection: local
become: false
gather_facts: true
vars:
macos_hostname: "cronus"
@jtprogru
jtprogru / jtprogru.yaml
Created April 22, 2021 09:37
Playbook для создания моего пользователя и базовой настройки окружения
---
- name: "Персональная базовая конфигурация окружения."
hosts: all:!localhost
become: true
vars:
sysops_employer:
name: "jtprogru"
pass: "!vault |
$ANSIBLE_VAULT;1.1;AES256
@jtprogru
jtprogru / linter.py
Last active September 20, 2023 10:26
Запуск salt-lint по коммиту в репозиторий
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Michael Savin <[email protected]>
# WWW: https://jtprog.ru
import logging
import os
import subprocess
import sys
@santigz
santigz / apple-keychain-pass-import.md
Last active April 30, 2025 14:14
Import Apple Keychain into pass

Import Apple Keychain into pass

This guide shows how to import into pass your passwords stored in Apple's Keychain Access.

Find your keychain file

The default kaychain file is ~/Library/Keychains/login.keychain.

Passwords under the "Local Items" keychain (the default since Mavericks to sync with iCloud) use a different file format and can not be exported via the Apple's security tool we use. If that is you case, create a new keychain and drag-and-drop the keys. Your new keychain should have the .keychain extension.

@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch