Skip to content

Instantly share code, notes, and snippets.

View sheb-gregor's full-sized avatar
:shipit:
In search of rationality

Mike Sheb sheb-gregor

:shipit:
In search of rationality
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sheb-gregor on github.
  • I am mike_sheb (https://keybase.io/mike_sheb) on keybase.
  • I have a public key ASDNxCxOIvu1beJq01atCy_DOdlBAR03Vgyrv7tD0XOdiwo

To claim this, I am signing this object:

@sheb-gregor
sheb-gregor / Patchable Multi-Migrations [Ru].md
Created May 26, 2020 13:17
How to deal with patchable multi-migrations?

How to deal with patchable multi-migrations?

Migrations with Patch

Для того, чтобы patchable migrations работали необходимо, чтобы имя файла миграции соответствовало шаблону: version_patch_some_readable_name.sql. Например: 007_04_deposit_withdrawals.sql. Так же в настройках мигратора должен быть включен PatchMode (флаг EnablePatchMode).

Миграции с PatchMode обрабатываются следующим образом — применяются все миграции от меньшей версии к больше, перед переходом к следующей версии, будут применены все патчи для текущей версии.

@sheb-gregor
sheb-gregor / tmux-cheatsheet.markdown
Created December 9, 2019 16:08 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sheb-gregor
sheb-gregor / README.md
Last active June 17, 2019 23:23
Macro for protobuf enums for Exonum

Protobuf enums for Exonum

proto_enum macro:

  • First arg — name of the protobuf file with enum;

  • Second arg — enum defenition


@sheb-gregor
sheb-gregor / scheme-coin.lisp
Created August 15, 2018 07:42 — forked from BusFactor1Inc/scheme-coin.lisp
A Common Lisp Blockchain - Scheme Coin
;;
;; scheme coin - a common lisp blockchain
;;
;; Burton Samograd
;; 2017
(load "~/quicklisp/setup.lisp")
(defconstant *coin-name* "Scheme Coin")
@sheb-gregor
sheb-gregor / dev tips.md
Last active November 2, 2021 08:33
Usefull tips

Git

  1. Rerlace some origin:

Edit file $HOME/.gitconfig:

# Enforce SSH
[url "ssh://git@github.com/"]
  insteadOf = https://github.com/

Monitoring

Pre requirements

Install Java8

sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common apt-transport-https
@sheb-gregor
sheb-gregor / vim_cheatsheet.md
Created September 26, 2017 14:02 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close