Skip to content

Instantly share code, notes, and snippets.

View maedhroz's full-sized avatar

Caleb Rackliffe maedhroz

View GitHub Profile
@maedhroz
maedhroz / go_brew_zsh
Created May 6, 2014 21:34
Get Brew to Play Nicely w/ Go
GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION/libexec
export GOPATH=/Users/[user]/go
@maedhroz
maedhroz / hub_apply_pr_from_private
Created May 6, 2014 21:23
Apply Pull Request from Private Repo w/ Hub
brew install hub
...then in ~/.gitconfig...
[alias]
# public repo
cpr = "!f() { curl https://github.com/cqlengine/cqlengine/pull/${1}.patch | git apply -3 - ; }; f "
# private repo
spr = "!f() { hub apply -3 https://github.com/[your org]/[your project]/pull/${1} ; }; f "