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
Host foo | |
User felix | |
HostName foo.example.org | |
ProxyCommand /usr/sbin/proxytunnel --proxy=ssh-proxy.example.org:2222 --proxyauth=username:password --dest=%h:%p |
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
# probably missing some headers here ;) | |
sudo apt-get install build-essential python-dev libpng12-dev | |
# update pip (matplotlib wants latest) | |
sudo easy_install -U distribute | |
sudo pip install -U pyzmq "ipython[notebook]" matplotlib | |
# make stuff readable by all (got errors otherwise) | |
sudo chmod -R a+r /usr/local/lib/python2.7/dist-packages/{IPython,ipython-*,pyzmq-*,zmq*} |
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
export PYTHONSTARTUP=~/.pythonrc |
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
diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf | |
index a65815f..6a772ed 100644 | |
--- a/auto/lib/openssl/conf | |
+++ b/auto/lib/openssl/conf | |
@@ -28,10 +28,10 @@ if [ $OPENSSL != NONE ]; then | |
have=NGX_OPENSSL . auto/have | |
have=NGX_SSL . auto/have | |
- CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include" | |
- CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h" |
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 sqlparse | |
from sqlparse.sql import * # noqa | |
stmts = sqlparse.parse(open('data.sql').read()) | |
TABLE_MODEL_MAP = dict( | |
sec_rolegroup='models.RoleGroup', | |
sec_role='models.Role', | |
sec_permissiongroup='models.PermissionGroup', |
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])) |
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
#!/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
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 |