Monthly Archives: March 2014

Git ignore file so it’s not committed

Not using .gitignore cos changes to the .gitignore file will want to be committed

Probably not the greatest method (or even all that correct), but it seems to work

git add  -- until you're left with files you don't want committed
git commit
git stash

Javascript redirect

// similar behavior as an HTTP redirect - prevents endless back button
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";

Referenced from
http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-page-in-jquery-javascript?rq=1

Install Ruby 2.1.1 Ubuntu 12.04

Open terminal

Terminal menu -> Edit -> Profile Preferences -> Title and Command -> Run command as a login shell

Close terminal & open again

sudo apt-get install build-essential git-core curl libmysqlclient18 nodejs
curl -L get.rvm.io | bash -s stable
rvm install ruby-2.1.1
rvm use ruby-2.1.1