Skip to content

Instantly share code, notes, and snippets.

View lebeker's full-sized avatar
🐢
doing... do...

leBekker lebeker

🐢
doing... do...
  • Company
  • Bali
View GitHub Profile
@lebeker
lebeker / README.md
Last active July 8, 2022 06:34 — forked from jamesramsay/README.md
Gmail: delete old emails

Gmail: delete old emails

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@lebeker
lebeker / docker-cleanup-resources.md
Last active February 8, 2018 11:01 — 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