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 | |
# Reads output of "netstat -tulpenW" out of "netstat.txt" and writes | |
# tables with ips as columns and ports as rows to "netstat_tcp.csv", | |
# "netstat_udp.csv", "netstat_tcp6.csv" and "netstat_udp6.csv" | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <github -at- robertweidlich -dot- de> wrote this file. As long as you retain | |
# this notice you can do whatever you want with this stuff. If we meet some | |
# day, and you think this stuff is worth it, you can buy me a beer in return |
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
$HTTP["host"] == "cal.wgchaos.info" { | |
server.name = "cal.wgchaos.info" | |
var.dir = "info/wgchaos/cal" | |
server.document-root = "/var/www/info/wgchaos/cal/html" | |
accesslog.filename = "/var/log/lighttpd/access-cal.wgchaos.info.log" | |
$HTTP["host"] != "cal.wgchaos.info" { | |
$HTTP["host"] =~ "^(.*)$" { | |
url.redirect = ( |
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 requests | |
import re | |
from lxml import etree | |
from StringIO import StringIO | |
r=requests.get("http://www.heise.de/newsticker/heise.rdf") | |
parser=etree.XMLParser(encoding="utf8") | |
tree = etree.parse(StringIO(r.text.encode("utf8")), parser) |
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 | |
. ../venv/bin/activate | |
python ../md-parser.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 | |
# | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer in return. | |
# ---------------------------------------------------------------------------- | |
# |
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 | |
USER=$1 | |
if [ -n "$2" ]; then | |
VERBOSE=echo | |
else | |
VERBOSE=: | |
fi |
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
border: yes |
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 { | |
server_name build.example.com; | |
listen 10.10.10.10:443; | |
ssl_certificate /etc/nginx/ssl/build.example.com.crt; | |
ssl_certificate_key /etc/nginx/ssl/build.example.com.key; | |
location /pypi { | |
proxy_pass http://127.0.0.1:4046; |