Skip to content

Instantly share code, notes, and snippets.

View rafaelgonzalez's full-sized avatar

Rafael Gonzalez rafaelgonzalez

View GitHub Profile
@rafaelgonzalez
rafaelgonzalez / cloudSettings
Last active November 16, 2020 11:29
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-11-16T11:29:47.779Z","extensionVersion":"v3.4.3"}
heroku pg:backups:capture -a YOUR_APP
curl -o latest.dump `heroku pg:backups:url -a YOUR_APP`
bundle exec rake db:drop
bundle exec rake db:create
pg_restore --verbose --clean --no-acl --no-owner -h localhost -d YOUR_DEV_DB latest.dump
get_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
colored_prompt () {
local BLACK="\[\033[0;30m\]"
local BLACKBOLD="\[\033[1;30m\]"
local RED="\[\033[0;31m\]"
local REDBOLD="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"