Skip to content

Instantly share code, notes, and snippets.

@shehinfn
shehinfn / remove-all-from-docker.sh
Created March 4, 2020 13:13 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@shehinfn
shehinfn / gist:8541b8cd2531d0a0d1489e9363732f49
Created December 21, 2019 05:07
Copying commands in mac
You can fix this using this step :
go to the source fresh and build it : cd $GOPATH/github.com/pilu/fresh and go build in root of the project.
now the fresh file will exist if no error happen, you can place this in your /usr/local/bin/ so that fresh command will exist.
Yeah - I think that the /usr/bin directory is only writable by "system". I ended up putting it in /usr/local/bin instead. Thanks!