Skip to content

Instantly share code, notes, and snippets.

View danielweinmann's full-sized avatar

Daniel Weinmann danielweinmann

View GitHub Profile
@chrisle
chrisle / gist:2252209
Created March 30, 2012 15:15
CURL as GoogleBot 2.1
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@
@danielweinmann
danielweinmann / git cleanb
Last active June 1, 2022 03:12
Add an alias to remove all topic branches that are already merged into master
git config --global alias.cleanb "! git checkout main && git branch --merged main | grep -v '^[ *]*main$' | xargs git branch -d"