Skip to content

Instantly share code, notes, and snippets.

@jamezpolley
jamezpolley / chrome
Created July 26, 2011 01:28
my chrome profile launcher script
#!/bin/bash
dochrome-mac () {
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-udd-profiles --user-data-dir=/Users/$USER/Library/Application\ Support/Google/Chrome$1 2>&1 &
}
dochrome-linux () {
/opt/google/chrome/google-chrome --enable-udd-profiles --user-data-dir=~/.config/google-chrome$1 %U 2>%1 &
}
@jamezpolley
jamezpolley / giteditor
Created May 26, 2011 05:03
Port of hgeditor to work with git
#!/bin/sh -x
#
# based on http://selenic.com/git/raw-file/tip/hgeditor
# and http://stackoverflow.com/questions/4750148/git-show-index-diff-in-commit-message-as-comment
#
# This is an example of using GITEDITOR to create of diff to review the
# changes while commiting.
#
# If you want to pass your favourite editor some other parameters
# only for Git, modify this:
@jamezpolley
jamezpolley / .vimrc
Created May 4, 2011 01:56
my .vimrc
" Things that need no explanation
set nocompatible
syntax on
set background=dark
" Tweaks to help mousiness work in normal vim inside an xterm.
set mouse=a
set ttymouse=xterm2
" Attempt to get sane indenting: