Skip to content

Instantly share code, notes, and snippets.

View senderic's full-sized avatar

Eric K. Sender senderic

  • San Diego, CA, USA
View GitHub Profile
@senderic
senderic / web-servers.md
Created May 3, 2021 22:50 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@senderic
senderic / docker-cleanup-resources.md
Created September 24, 2019 23:51 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm