Cleanup exited processes: docker rm $(docker ps -q -f status=exited)
Cleanup dangling volumes:
+ docker volume rm $(docker volume ls -qf dangling=true)
+ or repeatedly: docker volume rm $(docker volume ls -qf dangling=true | head -3000)
Cleanup dangling images: docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
-
-
Save garborg/1106bce3d639d93b862bba16771ad7db to your computer and use it in GitHub Desktop.
Create and switch to branch: git checkout -b [mynewbranch]
List local branches: git branch -v
List all branches: git branch -av
Delete a branch: git branch -d [mybranch]
Delete an unmerged branch: git branch -D [mybranch]
Delete a remote branch: git branch -rd [myremote]/[mybranch]
Push to a new remote branch: git push -u [myremote] [mybranch]
Push to existing remote branch: git push [myremote] [mybranch]
List remotes: get remote -v
Add a remote: git remote add [myremote] [url]
comment/uncomment (/general columnar insert/delete)
https://www.quora.com/Whats-the-best-way-to-insert-html-open-close-tags-in-Vim https://stackoverflow.com/questions/130734/how-can-one-close-html-tags-in-vim-quickly
ooops, closed most of the good ones
https://vi.stackexchange.com/questions/625/how-do-i-use-vim-as-a-diff-tool
https://stackoverflow.com/questions/1095718/diff-two-tabs-in-vim
https://unix.stackexchange.com/questions/1386/comparing-two-files-in-vim
http://lornajane.net/posts/2015/vimdiff-and-vim-to-compare-files
https://stackoverflow.com/questions/933975/commenting-out-xml-in-vim
http://www.brianstorti.com/vim-registers/ http://usevim.com/2012/04/13/registers/ http://stackoverflow.com/a/1504373
:pwd