Skip to content

Instantly share code, notes, and snippets.

@leftshift
leftshift / restart-dovecot.hook
Created July 17, 2018 09:00
pacman: restart dovecot after it has been upgraded
[Trigger]
Operation = Upgrade
Type = Package
Target = dovecot
[Action]
Description = Restart dovecot after upgrade so starting services doesn't fail due to version mismatch
When = PostTransaction
Exec = /usr/bin/systemctl restart dovecot
@leftshift
leftshift / Lines_SBahn.geojson
Created October 15, 2017 17:59
Mvg Stations json and lines geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
exec("l = []\nwhile True:\n\ti = input()\n\tif i.strip() == '***':\n\t\tbreak\n\telse:\n\t\tl.append(i)\nwith open('/lib/angelshifts/__init__.py', 'w') as f:\n\tf.write('\\n'.join(l))")