Skip to content

Instantly share code, notes, and snippets.

@skyriverbend
skyriverbend / rails_switch_branch.py
Created November 15, 2012 05:54
Rails: Switch branches and run migrations
#!/usr/local/bin/python
"""
To use this script, you must be in the root directory of a Rails project that
is using git. You should also make sure that your directory does not contain any
uncommitted changes. Then run:
$ python rails_switch_branch.py name_of_another_branch
Running the above will do the following:
@skyriverbend
skyriverbend / .vimrc.after
Created March 13, 2012 00:24
vim janus "~/.vimrc.after" file. nice customizations
color jellybeans
let mapleader = ","
nnoremap j gj
nnoremap k gk
" Indent using tabs (while in visual mode)
vnoremap <tab> >gv
vnoremap <s-tab> <gv
vnoremap < <gv