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
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://de.archive.ubuntu.com/ubuntu/ precise main restricted | |
deb-src http://de.archive.ubuntu.com/ubuntu/ precise main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted | |
deb-src http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted |
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 | |
[[ -z $2 ]] && echo "Usage: $0 POSTMASTER_EMAIL FULL_DOMAIN_NAME" && exit 1 | |
postmaster_email=$1 | |
full_domain_name=$2 | |
req_file=${full_domain_name}/req | |
key_file=${full_domain_name}/key | |
crt_file=${full_domain_name}/crt | |
chain=${full_domain_name}/chain |
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
#!/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 |
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
import string | |
import sys | |
print (lambda c: (string.letters + string.digits) * (c/len((string.letters + string.digits))) + (string.letters + string.digits)[:c-len((string.letters + string.digits) * (c/len((string.letters + string.digits))))])(int(sys.argv[1])) |