Skip to content

Instantly share code, notes, and snippets.

@Keoven
Keoven / database.yml
Created May 29, 2011 04:22
Rails Database Config File
<% branch = `git branch | grep "*"`.sub('*', '').strip %>
common: &common
adapter: postgresql
username:
password:
host: localhost
development:
database: cp_<%= branch %>_development
<<: *common
@Keoven
Keoven / .rvmrc_template
Created May 29, 2011 04:15
.rvmrc Template
## Load Environment
#
if [[ -s "/Users/user_name/.rvm/environments/ruby-1.8.7-p330@gemset" ]] ; then
. "/Users/user_name/.rvm/environments/ruby-1.8.7-p330@gemset"
fi
rvm use 1.8.7@gemset
export RAILS_ROOT=$(pwd)
## Aliases
#