Skip to content

Instantly share code, notes, and snippets.

@eifelmicha
eifelmicha / icinga.py
Created March 18, 2018 20:30
ansible filter for creating icinga tickets
# plugins/filter/icinga.py
from ansible.errors import AnsibleError
def icinga_ticket(value, salt):
try:
from pbkdf2 import PBKDF2
except ImportError:
raise AnsibleError('pbkdf2 library is required for `icinga_ticket` filter "pip install pbkdf2"')
return PBKDF2(str(value), str(salt), iterations=50000).hexread(20)
@eifelmicha
eifelmicha / README.md
Created April 13, 2020 09:39 — forked from Eyjafjallajokull/README.md
AWS EBS - Find unused snapshots

This script can help you find and remove unused AWS snapshots and volumes.

There is hardcoded list of regions that it searches, adjust the value to suit your needs.

Use snapshot.py snapshot-report to generate report.csv containing information about all snapshots.

snapshot.py snapshot-cleanup lets you interactively delete snapshot if it finds it is referencing unexisting resources.

./snapshots.py --help

Keybase proof

I hereby claim:

  • I am eifelmicha on github.
  • I am michaelschmitz (https://keybase.io/michaelschmitz) on keybase.
  • I have a public key whose fingerprint is 3207 5E6B D2B9 BE6B 09CE 4749 07E0 6957 BC0F 945F

To claim this, I am signing this object: