Skip to content

Instantly share code, notes, and snippets.

View mchurichi's full-sized avatar

Maximiliano Churichi mchurichi

View GitHub Profile
@mchurichi
mchurichi / keybidings.json
Created May 10, 2018 21:42
VS Code custom keybindings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "cmd+s",
"command": "workbench.action.files.saveAll",
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
},
@mchurichi
mchurichi / PYTHON_RECIPES.md
Last active February 27, 2018 18:06
Python recipes

Install package in development mode

pip install -e /path/to/mypackage
@mchurichi
mchurichi / .bashrc
Created September 21, 2017 18:11
git aliases
# logs
# short form, with colors and branch/tag annotations
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
# changed files per commit
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
# no color
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
# one line commits
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short # git lds -1 (long standup)
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
function start_agent {
echo "Initializing new SSH agent..."
# spawn ssh-agent
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > ${SSH_ENV}
chmod 600 ${SSH_ENV}
. ${SSH_ENV} > /dev/null
/usr/bin/ssh-add