This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing RVM and Ruby: | |
sudo apt-get install curl | |
\curl -L https://get.rvm.io | bash -s stable --ruby | |
echo 'source $HOME/.rvm/scripts/rvm' >> ~/.bashrc | |
source ~/.bashrc | |
rvm requirements | |
rvm install 1.8.7-p371 | |
rvm install 1.9.3-p125 | |
rvm --default use ruby-1.9.3-p125 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.txt | wc -l | tee /dev/tty count.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python-pip | |
sudo apt-get install python-setuptools | |
sudo apt-get install python-dev | |
sudo apt-get install build-essential | |
sudo pip install virtualenv | |
sudo pip install virtualenvwrapper | |
sudo echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bashrc | |
sudo echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libatlas-base-dev | |
sudo apt-get install gfortran | |
sudo apt-get install python-matplotlib | |
sudo pip install numpy | |
sudo pip install pandas | |
sudo pip install scipy | |
sudo pip install patsy | |
sudo pip install matplotlib | |
sudo pip install jinja2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
udo apt-get install tcptrack | |
sudo tcptrack -i eth0 -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install dkms build-essential linux-headers-generic | |
# On virtual machine’s menu bar on top, click on Device/Install Guest Additions. This will launch a unix script runing on the Ubuntu terminal. | |
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List all processes dynamically, q to close top, k to kill a process | |
top | |
# Displays processes in tree format | |
pstree | |
# Display all running processes owned by the current user | |
# ps aux | |
# Find a process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nil? can be used on any Ruby object. It returns true only if the object is nil. | |
nil.nil? # => true | |
[].nil? # => false | |
{}.nil? # => false | |
"".nil? # => false | |
" ".nil? # => false | |
true.nil? # => false | |
# empty? can be used on some Ruby objects including Arrays, Hashes and Strings. It returns true only if the object's length is zero. | |
nil.empty? # NoMethodError: undefined method `empty?' for nil:NilClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --hard HEAD~1 | |
git push origin HEAD --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instlled Xcode, Github and Sublime Text 3 by runing their installation packages. | |
git config --global user.name "Your Full Name" | |
git config --global user.email "Your Email Address" | |
# Homebrew Installation: | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew doctor | |
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile |
OlderNewer