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
> zsh -f # start a "clean" version of zsh (without your startup files) | |
print $ZSH_VERSION | |
Tips Home | |
Daily ZSH Tip on Twitter *N* | |
ZSH TIPS on Twitter Archive | |
http://www.zsh.org/mla/ Searchable Mailing List Archive | |
http://grml.org/zsh/zsh-lovers.html | |
http://zsh.sourceforge.net/Doc/ Everything? *C* | |
Zsh-Reference-Card *C* | |
http://zshwiki.org/ |
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
b2d(){ | |
boot2docker $@; | |
} | |
b2d poweroff | |
b2d delete | |
#b2d upgrade #if update desired | |
b2d init --disksize=10000 | |
b2d up |
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
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done |
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 push origin --delete <branchName> | |
or | |
git push origin :<branchName> |
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
for remote in `git branch -r`; do git branch --track $remote; done | |
git fetch --all | |
git pull --all |
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 remove libpam-smbpass |
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
cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" |
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
b2d(){ | |
boot2docker $1; | |
} | |
b2d poweroff | |
b2d delete | |
#b2d init | |
b2d init \ | |
--memory=5734 \ | |
--disksize=10000 |
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
#make ssh directory | |
mkdir ~/.ssh | |
#change mode to 700 | |
chmod 700 ~/.ssh | |
#Generate new Key | |
ssh-keygen -b 2048 -t rsa -f [keyname] -P ["password"] # "" for passwordless key.. this is unsafe | |
#Default Key. | |
ssh-keygen -b 2048 -t rsa -f id_rsa -P ["password"] |