This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mine_functions: | |
dkim_pubkey: | |
- mine_function: file.read | |
- /etc/opendkim/foo/keys/bar.pub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Call me like this:: | |
python log_example.py | |
To set the log level:: | |
LOGLEVEL=INFO log_example.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDjah5JBLHIUshsVHW6qx/dift2JrRC84a1yXav7ksOQ0joAIgJnCCni84HN6FPzcXVox/f4TG7KIgqqM/46bmixGmCl2qeq4oBCGize8OVfhMRVnWiYBSmYOkGAZKk9iji7Z4E6l6qiXjNM7mu4Gxl+CN3kCHvgiyukcIFoiPLepA86Kj9CPPJclhSPlef0Apvil+dJ9R0LYMRKVeKHvuauqy2JoMreZIw3tM7/+JhxzYKVRJCfZ2GNHazX4xYjNDWDytwHtyjZ6kUD9cJCwk2nRwJ+PrR3bIG0UGlF1gcUBcQTCsjoG9sFfxZ3GCRzMTqFo3hh54XRq1h0QZnQFX30gs/ApLyimF6PDzQex7cH2Sj21OVsdBOmQT1hj8620c41zn85Mmk5r6lWwNRcQBNTXDCsU7sEK6YlgQGS9H1umQFFuAhAm2teNExOtcy8VryWnX97IkXuC64jb8KCLMF3Tkj87rBPsdz1zOH8OBYLavwV5Mbg1XZdwJe8pRKJ84lF7wXXu1UBlmk/OKFmFDe0CdmygFbrJE7nz/21OtjQKzi0SOgMrxAt0dGg1Yp1I0pka7N9cqc57BhShWy3LXMDoFEZjUcYvHZP24KsAaX0erkIsyOX+4x6WZLamoIfvYnYGVQMgw1zTxiccxtNNNG3GnibX5t7OtaYXVDtdylqQ== felix@port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default_server; | |
location / { | |
default_type text/plain; | |
return 418 "418 I'm a teapot\n"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright (c) 2015 Felix Hummel | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
of the Software, and to permit persons to whom the Software is furnished to do | |
so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
vmname=$1 | |
PROXY=dns | |
DOMAIN=lab | |
vboxmanage clonevm node --snapshot cleanup --options link --name $vmname --register | |
vboxmanage guestproperty set $vmname hostname $vmname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Set Hostname from virtualbox 'hostname' property" | |
start on (starting network-interface | |
or starting network-manager | |
or starting networking) | |
task | |
exec /usr/local/bin/vboxhostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If you set the something stupid that's not a valid hostname, then it's your | |
# own fault. :P | |
set -euo pipefail | |
echo 'Ran vboxhostname' > /tmp/x | |
echo '----------------' >> /tmp/x | |
VBoxControl guestproperty get hostname 2>&1 >> /tmp/x | |
vboxhostname=$(VBoxControl guestproperty get hostname | grep Value | awk '{ print $2 }') | |
echo "Got $vboxhostname" >> /tmp/x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vmname=$1 | |
vboxmanage controlvm $vmname poweroff | |
vboxmanage unregistervm $vmname --delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# keep connections alive | |
ServerAliveInterval 60 | |
# re-use connections to the same host | |
ControlMaster auto | |
# leave connection open in background | |
ControlPersist 4h | |
ControlPath /tmp/%r@%h:%p | |
# use `ssh -o ControlPath=none` to disable this temporarily | |
# and to close this: `ssh -O exit` |