Skip to content

Instantly share code, notes, and snippets.

Thomas Kerpe toke

Block or report user

Report or block toke

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
toke /
Created Jan 28, 2020
Using TPROXY to bind to any port on many IPs (asyncio variant)
import asyncio
import socket
BIND_IP = ""
TCP_PORT = 1234
desc = f"""
Anybind; "bind" on many IPs and many Ports.
View crash.log
> java -jar paperclip.jar
System Info: Java 1.8 (OpenJDK 64-Bit Server VM 25.222-b10) Host: Linux 4.9.65-1-hardened (amd64)
Loading libraries, please wait...
[16:51:49 INFO]: Starting minecraft server version 1.14.4
[16:51:49 INFO]: Loading properties
[16:51:50 INFO]: This server is running Paper version git-Paper-192 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
[16:51:50 INFO]: Server Ping Player Sample Count: 12
[16:51:50 INFO]: Using 4 threads for Netty based IO
[16:51:50 INFO]: Debug logging is disabled
[16:51:51 INFO]: Default game type: SURVIVAL
toke / grbl-settings.txt
Created Oct 31, 2018
GRBL 1.1 settings for my Elekslaser A3
View grbl-settings.txt
View osquery.sql
SELECT DISTINCT, listening.port, listening.address,
FROM processes AS process JOIN listening_ports AS listening ON =;
toke / network_namespace_example.bash
Last active Jul 17, 2018
Example Script for using network namespaces
View network_namespace_example.bash
set -e
# Network namespace example
# Inspired by
View config.boot
service {
dhcp-server {
disabled false
dynamic-dns-update {
enable true
global-parameters "key rndc-key { algorithm HMAC-MD5; secret paste_your_ddns_secret_here; };"
global-parameters "zone home.local. { primary; key rndc-key; }"
global-parameters "ddns-domainname "home.local.";"
global-parameters "ddns-rev-domainname "";"
View timsatotest.user.js
// ==UserScript==
// @name Image resource example
// @resource logo ../icons/laptop.png
// @grant GM.getResourceUrl
// ==/UserScript==
(async function() {
let img = document.createElement("img");
img.src = await GM.getResourceUrl("logo");
toke / Vagrantfile
Last active Oct 27, 2017
Ansible Issue 30753 ( Testcase using Vagrant against Debian Wheezy
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "debian/wheezy64"
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
toke /
Last active Jun 21, 2019
Simple spamhaus ipset firewall block
## Run every 24h via cron
## Old entries will time out later automatically
cd /var/lib/firewall
wget -qN ''
ipset create -exist spamhaus_drop hash:net counters timeout 90000 comment
toke / hostname.socket
Last active Jun 2, 2017
Basic hostname systemd "service"
View hostname.socket
Description=Hostname Socket
You can’t perform that action at this time.