Setup Ruby environment

Setup Ruby environment
$ curl -L get.rvm.io | bash -s stable

$ cat ~/.bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"

$ source ~/.bash_profile

$ rvm install 1.9.3

$ rvm use 1.9.3 --default

(re-login)

$ which ruby
/home/takamario/.rvm/rubies/ruby-1.9.3-p125/bin/ruby

$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]

$ gem -v
1.8.22

$ gem install rails sinatra sqlite3 redis mongodb

Setup node.js environment

Setup node.js environment
$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ echo '. ~/.nvm/nvm.sh' >> ~/.bash_profile
$ source ~/.bash_profile

$ nvm install v0.6.15

$ nvm alias default v0.6.15

$ npm config set registry http://registry.npmjs.org/
$ npm install -g \
    coffee-script \
    ejs \
    express \
    jade \
    js2coffee \
    mongodb \
    mongoose \
    mysql \
    node-dev \
    redis \
    socket.io

$ npm link ${package_name}

Setup Python environment

Setup Python environment
$ curl -kL http://xrl.us/pythonbrewinstall | bash
$ echo 'source /home/takamario/.pythonbrew/etc/bashrc' >> ~/.bash_profile

$ pythonbrew version
1.1

$ pythonbrew install 2.7.2

$ pythonbrew switch 2.7.2

$ which 
/home/takamario/.pythonbrew/pythons/Python-2.7.2/bin/python

$ python -V
Python 2.7.2

$ pip install \
    mercurial \
    pymongo \
    redis \ 
    sphinx \
    virtualenv \
    virtualenwrapper