Skip to content

Instantly share code, notes, and snippets.

@kriskova
kriskova / multiple_ssh_setting.md
Created June 19, 2018 19:29 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@kriskova
kriskova / brew_install_macvim.md
Created March 12, 2018 15:21 — forked from srpouyet/brew_install_macvim.md
How to `brew install` Vim or Macvim with the Ruby version in the current PATH (set by chruby for example)

brew install with the option --env=std so the Ruby in the current PATH will be used while compiling (mac)vim.

brew install --env=std vim --with-custom-ruby  --with-override-system-vi --with-lua --with-luajit --with-mzscheme --with-tcl
brew install --env=std macvim --with-lua --with-luajit --with-python3 --HEAD
@kriskova
kriskova / rubocop.sh
Last active December 1, 2017 14:03
Run rubocop for all changed files in the git repository
git status --porcelain | cut -c4- | grep '.rb' | xargs rubocop
@kriskova
kriskova / codeship-elixir.sh
Created November 24, 2016 21:49 — forked from paulgoetze/codeship-elixir.sh
Codeship Elixir/Phoenix test setup
#!/bin/bash
# Erlang
ERLANG_VERSION=${ERLANG_VERSION:-19.0}
ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz"
ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"}
# Elixir
ELIXIR_VERSION=${ELIXIR_VERSION:-1.3.1}
ELIXIR_CACHED_DOWNLOAD="${HOME}/cache/elixir-v${ELIXIR_VERSION}.zip"
curl -X POST -d 'action=bet_request&game_state={"tournament_id":"550d1d68cd7bd10003000003", "game_id":"550da1cb2d909006e90004b1", "round":0, "bet_index":0, "small_blind": 10, "current_buy_in": 320, "pot": 400, "minimum_raise": 240, "dealer": 1, "orbits": 7, "in_action": 1, "players": [{"id": 0, "name": "Albert", "status": "active", "version": "Default random player", "stack": 1010, "bet": 320 }, {"id": 1, "name": "Bob", "status": "active", "version": "Default random player", "stack": 1590, "bet": 80, "hole_cards": [{"rank": "6", "suit": "hearts"}, {"rank": "K", "suit": "spades"} ] }, {"id": 2, "name": "Chuck", "status": "out", "version": "Default random player", "stack": 0, "bet": 0 } ], "community_cards": [{"rank": "4", "suit": "spades"}, {"rank": "A", "suit": "hearts"}, {"rank": "6", "suit": "clubs"} ] }'