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
# Log errors to stderr | |
log level error; | |
# Log warnings to a log file | |
log to syslog as "fastd-hofheim" level warn; | |
# Set the interface name | |
interface "fastd-hofheim"; | |
# Disable encryption |
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
// ==UserScript== | |
// @name Binnen-I-Replacer | |
// @namespace de.chrisnew.i-replacer | |
// @version 5 | |
// @match *://*/* | |
// ==/UserScript== | |
var preserveElements = ['style', 'script', 'pre', 'code']; | |
var matcher = /((?![a-zA-z]+)([*_]in|In)(nen)?|\/[Ii]n(nen)?)/g; |
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 bash | |
SHUTDOWN=0 | |
IP=127.0.0.1 | |
VHOST="`hostname -f`" | |
SUBDOMAIN=www | |
HIPACHE=hipache | |
DEVICE=eth0 | |
SCHEME=http |
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 bash | |
# postfix-wrapper.sh, version 0.1.0 | |
# | |
# You cannot start postfix in some foreground mode and | |
# it's more or less important that docker doesn't kill | |
# postfix and its chilren if you stop the container. | |
# | |
# Use this script with supervisord and it will take | |
# care about starting and stopping postfix correctly. | |
# |
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 bash | |
# tlschecker.sh, version 0.1.0 | |
# based on https://superuser.com/revisions/224263/3 | |
# | |
# changelog: | |
# - added argument for hostname | |
# - made port optional | |
# - openssl uses SNI | |
# - displays subject, issuer, algorithm of certificate | |
# - some output tweaking |
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/php | |
<?php | |
// usage: cat some-output.json | ./json2csv.php > some-output.csv | |
function error($msg, $ret = 1) { | |
die('ERROR: ' . $msg . PHP_EOL); | |
exit($ret); | |
} | |
$data = json_decode(file_get_contents('php://stdin'), true); |
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
window.contacts = []; | |
$('#contacts-table > li').each(function(){ | |
var elem = $(this); | |
var data = { | |
name: elem.find('.title > a[href^="/profile"]').text(), | |
position: $.trim(elem.find('.text').clone().children().remove().end().text()), | |
company: elem.find('.company > a').text() | |
}; |
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
var Gpio = require('onoff').Gpio; | |
var sleep = require('sleep'); | |
var displayPorts = { | |
RS: 7, | |
E: 8, | |
D4: 25, | |
D5: 24, | |
D6: 23, | |
D7: 18, |