Skip to content

Instantly share code, notes, and snippets.

@vrinek
Created December 12, 2015 13:02
Show Gist options
  • Save vrinek/de74ab9822521fc25cc4 to your computer and use it in GitHub Desktop.
Save vrinek/de74ab9822521fc25cc4 to your computer and use it in GitHub Desktop.
Monday morning cleanup scripts

Docker

docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm
docker images | grep '^<none>' | awk '{print $3}' | xargs docker rmi

Rails

rm -rf logs/*.logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment