Skip to content

Instantly share code, notes, and snippets.

Avatar

Zach Bruhnke zbruhnke

View GitHub Profile
View gist:40a4e6dc5b8a0fd1a614
### Keybase proof
I hereby claim:
* I am zbruhnke on github.
* I am zbruhnke (https://keybase.io/zbruhnke) on keybase.
* I have a public key whose fingerprint is D289 EC75 92AE 5868 B371 52A3 179D B65F 995A 3C23
To claim this, I am signing this object:
@zbruhnke
zbruhnke / heroku_taps_replacement
Created Jan 14, 2014
heroku_pg_pull and heroku_pg_push -- for those of us who miss heroku pg:pull and heorku pg:push
View heroku_taps_replacement
# Postgres equivalent to heroku db:pull.
# Pulls latest heroku pgbackups dump into local database
#
# Usage:
#
# $ heroku_pg_pull [appname] [local database name]
#
function heroku_pg_pull(){
echo "! WARNING: Data in the local database '$2' will be destroyed."
echo " Type '$2' to overwrite data in local database '$2'"