Skip to content

Instantly share code, notes, and snippets.


Johannes Schriewer dunkelstern

Block or report user

Report or block dunkelstern

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dunkelstern / style.xsl
Created Sep 21, 2016
nginx rtmp status style sheet
View style.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="">
<xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="@*|node()">
<xsl:apply-templates select="@*|node()"/>
dunkelstern / nginx.conf
Created Sep 21, 2016
nginx RTMP config
View nginx.conf
user rtmp;
worker_processes 1;
events {
worker_connections 1024;
http {
include mime.types;
default_type application/octet-stream;
dunkelstern /
Created Sep 7, 2016
ScribeJS commandline logfile dumper and filtering tool (python 3)
#!/usr/bin/env python
import json
import argparse
import itertools
import time
from dateutil.parser import parse
import datetime
dunkelstern / vpn_setup.ps1
Created Aug 8, 2016
VPN Setup script for windows powershell
View vpn_setup.ps1
# Set these to the correct values
$server_address = ""
$connection_name = "VPN Connection"
$certificate_path = "certificate.p12"
$ca_cert_path = "strongswanCert.pem"
$password = ConvertTo-SecureString -String "P12 passphrase" -AsPlainText -Force
# Import machine cert
Import-PfxCertificate -FilePath $certificate_path -CertStoreLocation Cert:\LocalMachine\My\ -Password $password
dunkelstern /
Created Aug 7, 2016
Create certificates for a new machine for an IKEv2 vpn
if [ "$1" = "" ] ; then
echo "Usage: $0 <machine_name>"
exit 1
# configure these to the visible public values of the server
dunkelstern / rc.local
Created Aug 7, 2016
iptables rules for vpn config
View rc.local
# for ISAKMP (handling of security associations)
iptables -A INPUT -p udp --dport 500 --j ACCEPT
# for NAT-T (handling of IPsec between natted devices)
iptables -A INPUT -p udp --dport 4500 --j ACCEPT
# for ESP payload (the encrypted data packets)
iptables -A INPUT -p esp -j ACCEPT
# for the routing of packets on the server
iptables -t nat -A POSTROUTING -j SNAT --to-source %IP% -o eth0
# internet access
iptables -t nat -A POSTROUTING -s -o eth0 -m policy --dir out --pol ipsec -j ACCEPT
dunkelstern / vpn.conf
Created Aug 7, 2016
sysctl config for ip packet forwarding
View vpn.conf
# ipv4
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.rp_filter = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
dunkelstern / ipsec.conf
Created Aug 7, 2016
StrongSWAN ipsec config for IKEv2 VPN
View ipsec.conf
# ipsec.conf - strongSwan IPsec configuration file
config setup
charondebug="ike 4, knl 4, cfg 4, net 4, esp 4, dmn 4, mgr 4"
conn %default
dunkelstern / conemu_bash.xml
Created Aug 6, 2016
Conemu config for bash
View conemu_bash.xml
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2016-08-06 22:39:37" build="160724">
<value name="StartType" type="hex" data="02"/>
<value name="CmdLine" type="string" data=""/>
<value name="StartTasksFile" type="string" data=""/>
<value name="StartTasksName" type="string" data="{Bash::bash}"/>
<value name="StartFarFolders" type="hex" data="00"/>
<value name="StartFarEditors" type="hex" data="00"/>
dunkelstern / Project.sublime-project
Created Mar 21, 2016
Sublime project file for anarchytools based swift build
View Project.sublime-project
"path": ".",
"folder_exclude_patterns": [ ".atllbuild", "bin", "user" ],
"file_exclude_patterns": [ ".gitignore" ]
"build_systems": [
You can’t perform that action at this time.