Skip to content

Instantly share code, notes, and snippets.

@AndrewRussellHayes
AndrewRussellHayes / docker_img_rm.sh
Created Nov 27, 2014
remove images behind dangling containers
View docker_img_rm.sh
docker rm `docker ps --no-trunc -aq`
View dangling_containers.sh
docker images -q --filter "dangling=true" | xargs docker rmi
View ZSH Tips by ZZapper.sh
> 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/
@AndrewRussellHayes
AndrewRussellHayes / b2d_Air_Rebuild.sh
Last active Aug 29, 2015
boot2docker air rebuild
View b2d_Air_Rebuild.sh
b2d(){
boot2docker $@;
}
b2d poweroff
b2d delete
#b2d upgrade #if update desired
b2d init --disksize=10000
b2d up
View git_track_remote_in_local_branches.sh
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done
@AndrewRussellHayes
AndrewRussellHayes / fetch_all_git_branches.sh
Last active Aug 29, 2015
fetch all branches from origin and track them as remote branches eg 'origin/branchname' From http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
View fetch_all_git_branches.sh
for remote in `git branch -r`; do git branch --track $remote; done
git fetch --all
git pull --all
@AndrewRussellHayes
AndrewRussellHayes / ubuntu_memleak_bugfix.sh
Created Nov 15, 2014
fix for ubuntu error: "no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory"
View ubuntu_memleak_bugfix.sh
sudo apt-get remove libpam-smbpass
View conf_know_hosts.sh
cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
@AndrewRussellHayes
AndrewRussellHayes / mountshare.sh
Last active Aug 29, 2015
mount share boot2docker virtualbox
View mountshare.sh
sudo mount -t vboxsf -o dmode=0777,fmode-0777 HayesCloud /HayesCloud