Last active
September 29, 2015 15:00
-
-
Save micheleorsi/078215319fc02914b13c to your computer and use it in GitHub Desktop.
Quick reference for personal needs
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
# Remove all stopped containers. | |
docker rm $(docker ps -a -q) | |
# Remove all untagged images | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") | |
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
# node.js | |
# list first level of global dependencies | |
npm -g ls --depth=0 |
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
# python | |
# run web server on specific port | |
python -m SimpleHTTPServer 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment