Skip to content

Instantly share code, notes, and snippets.

@ambar
ambar / gist:4022879
Created November 6, 2012 05:57 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
grep origin |
grep -v '>' |
grep -v master |
xargs -L1 |
awk '{split($0,a,"/"); { if (a[3]) { print a[2]"/"a[3] } else { print a[2] } }}' |
xargs git push origin --delete
@ambar
ambar / gist:1534274
Created December 29, 2011 14:15 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@ambar
ambar / about.md
Created August 12, 2011 09:51 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer