Skip to content

Instantly share code, notes, and snippets.

View mgarces's full-sized avatar
🎧

Marco Garcês mgarces

🎧
View GitHub Profile
@mgarces
mgarces / docker-cleanup-resources.md
Created May 23, 2018 14:28 — 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

Keybase proof

I hereby claim:

  • I am mgarces on github.
  • I am mgarces (https://keybase.io/mgarces) on keybase.
  • I have a public key ASANfwWYgEpXlwRnpD2xL74cZN3UZqYUEC5YYYwgKI41swo

To claim this, I am signing this object:

@mgarces
mgarces / IFTT.md
Last active January 14, 2020 11:16
HomeAssistnat - webhook garage door

just add IFTTT Applets

IF

button press

THAT

use webhook

  • URL: https://<your_hassio_url/api/webhook/garage-door
  • Method: POST

On device:

iOS

export GOPATH=$HOME/golang/ # or whatever you like export PATH=$PATH:$GOPATH/bin go get -u github.com/aws/aws-sdk-go go get -u github.com/go-ini/ini go get -u github.com/jmespath/go-jmespath go get -u github.com/urfave/cli go build aws_finder.go go install aws_finder