Skip to content

Instantly share code, notes, and snippets.

@sgraham785
sgraham785 / 0_reuse_code.js
Created October 5, 2013 09:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sgraham785
sgraham785 / README.md
Created March 2, 2014 08:26 — forked from agnoster/README.md
Agnoster ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
#!/bin/sh
rpm -Uih https://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm install 2.0.0
rvm use 2.0.0@global --default
### install bundler and rails
gem install bundler --no-ri --no-rdoc

change to postgres user and open psql prompt

sudo -u postgres psql postgres`

list databases

postgres=# \l