This file contains hidden or 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
#Diff with master | |
>> git diff master — filename | |
# Checkout submodule | |
>> git submodule update | |
# Undo last commit | |
>> git reset —soft HEAD~1 | |
# Add remote repo |
This file contains hidden or 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
YELLOW="\[\033[0;33m\]" | |
CLEAR="\[\033[0;0m\]" | |
PS1="\$(date +%H:%M) \w$YELLOW \$(parse_git_branch)$CLEAR \$ " |
This file contains hidden or 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
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
ref=${ref#refs/heads/} | |
unpushed=$(git log -- origin/$ref..$ref 2> /dev/null) || return | |
if [ "$unpushed" ]; then |
This file contains hidden or 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
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
ref=${ref#refs/heads/} | |
unpushed=$(git log -- origin/$ref..$ref 2> /dev/null) || return | |
if [ "$unpushed" ]; then | |
This file contains hidden or 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
>> gem install bundler |
This file contains hidden or 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
>> rbenv global 1.9.3-p484 |
This file contains hidden or 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
>> rbenv install -l | |
>> rbenv install 1.9.3-p484 |
This file contains hidden or 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
# Load rbenv | |
>> eval "$(rbenv init -)" |
This file contains hidden or 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 clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
>> git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
>> rbenv rehash |
This file contains hidden or 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
# Temporarirly | |
>> ifconfig eth1 txqueuelen 10000 | |
# Permament | |
# Append the following setting per interface | |
>> vi /etc/rc.local | |
/sbin/ifconfig eth1 txqueuelen 10000 |