Skip to content

Instantly share code, notes, and snippets.

View treshugart's full-sized avatar
😅
🍊 ⛸

Trey Shugart treshugart

😅
🍊 ⛸
  • Looker
  • Santa Cruz
View GitHub Profile
@treshugart
treshugart / git-cleanup.sh
Created November 17, 2013 22:16
Sync and cleanup all local branches that have been merged (except master).
git pull
git remote prune origin
git branch --merged | grep -v "\*" | grep -v "master" | xargs -n 1 git branch -d
@treshugart
treshugart / install-postgres-travisci
Created March 26, 2013 23:05
Installing versions of Postgres other than the default version in TravisCI.
#!/bin/sh
TRAVIS_PGVERSION='9.1'
if [ $PGVERSION != $TRAVIS_PGVERSION ]
then
sudo -u postgres pg_dropcluster --stop $TRAVIS_PGVERSION main
export PGCLUSTER=$PGVERSION/main
fi