Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Last active August 29, 2015 14:02
Show Gist options
  • Save prashanth-sams/0cbe8188070b5fe30045 to your computer and use it in GitHub Desktop.
Save prashanth-sams/0cbe8188070b5fe30045 to your computer and use it in GitHub Desktop.
Ubuntu
How to Set Temporary Java Environment
==========================================
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_03
export PATH=$PATH:$JAVA_HOME/bin
javac -version
which javac
How to populate data
==========================================
nano ~/.bashrc
alias populate='RAILS_ENV=development bundle exec rake projectname:db:populate' /** paste the below in bashrc **/
Ctrl + y to save bashrc | Ctrl + x to quit bashrc
$ SYSVINE=true populate
RAILS_ENV=development bundle exec rake db:migrate
How to avoid typing sudo all time
==========================================
sudo -s
sudo subl /** sublime **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment