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 | |
# vim: set fileencoding=utf-8 filetype=python : | |
""" | |
Usage: dns_expire <domain>... | |
""" | |
import calendar | |
import time | |
import dns.resolver | |
from docopt import docopt |
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
/tmp/x: | |
file.managed: | |
- source: salt://x | |
- watch: | |
- file: /tmp/y | |
/tmp/y: | |
file.touch |
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
think master /srv/salt # salt-call --version | |
salt-call 0.15.1 | |
think master /srv/salt # ls -la /tmp/y | |
-rw-r--r-- 1 root root 0 Aug 2 15:18 /tmp/y | |
think master /srv/salt # | |
think master /srv/salt # echo 'changed' > x | |
think master /srv/salt # salt-call --local state.sls filewatch | |
[INFO ] Configuration file path: /etc/salt/minion | |
[INFO ] Executing command 'ps -efH' in directory '/home/felix' | |
[INFO ] Loading fresh modules for state activity |
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
think master /srv/salt # salt-call --version | |
salt-call 0.15.1 | |
think master /srv/salt # ls -la /tmp/y | |
-rw-r--r-- 1 root root 0 Aug 2 15:18 /tmp/y | |
think master /srv/salt # | |
think master /srv/salt # echo 'changed' > x | |
think master /srv/salt # salt-call --local state.sls filewatch | |
[INFO ] Configuration file path: /etc/salt/minion | |
[INFO ] Executing command 'ps -efH' in directory '/home/felix' | |
[INFO ] Loading fresh modules for state activity |
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
think master /srv/salt # salt-call --version | |
salt-call 0.15.1 | |
think master /srv/salt # ls -la /tmp/y | |
-rw-r--r-- 1 root root 0 Aug 2 15:18 /tmp/y | |
think master /srv/salt # | |
think master /srv/salt # echo 'changed' > x | |
think master /srv/salt # salt-call --local state.sls filewatch | |
[INFO ] Configuration file path: /etc/salt/minion | |
[INFO ] Executing command 'ps -efH' in directory '/home/felix' | |
[INFO ] Loading fresh modules for state activity |
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 | |
[[ $1 == 'skip' ]] || wget -c http://dir.xiph.org/yp.xml | |
python<<'EOF' | |
from lxml import etree | |
t = etree.parse(open('yp.xml')) | |
def urls_by_genre(genre): |
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
location ~ \.php$ { | |
root html; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index info.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} |
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
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 filetype=python : | |
""" | |
Prints the expiration time of a domain as seen from the host this is run on. | |
Example Output: | |
felixhummel.de (37.200.98.98): 3055 sec (about 50 min) | |
""" | |
from __future__ import print_function |