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
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
toke / grbl-settings.txt
Created Oct 31, 2018
GRBL 1.1 settings for my Elekslaser A3
View grbl-settings.txt
$$
$0=10
$1=25
$2=0
$3=1
$4=0
$5=0
$6=0
$10=1
$11=0.010
View osquery.sql
SELECT DISTINCT process.name, listening.port, listening.address, process.pid
FROM processes AS process JOIN listening_ports AS listening ON process.pid = listening.pid;
@toke
toke / network_namespace_example.bash
Last active Jul 17, 2018
Example Script for using network namespaces
View network_namespace_example.bash
#!/bin/bash
set -e
# Network namespace example
# Inspired by https://lwn.net/Articles/580893/
#
NNS="netns1"
DEV_OUTSIDE=veth0
DEV_INSIDE=veth1
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 10.1.2.2; key rndc-key; }"
global-parameters "ddns-domainname "home.local.";"
global-parameters "ddns-rev-domainname "in-addr.arpa.";"
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");
document.body.appendChild(img);
@toke
toke / Vagrantfile
Last active Oct 27, 2017
Ansible Issue 30753 (https://github.com/ansible/ansible/issues/30753) Testcase using Vagrant against Debian Wheezy
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/wheezy64"
config.vm.provision :ansible do |ansible|
ansible.playbook = "playbook.yml"
end
end
@toke
toke / fw_block.sh
Last active Jun 21, 2019
Simple spamhaus ipset firewall block
View fw_block.sh
#!/usr/bin/bash
## Run every 24h via cron
## Old entries will time out later automatically
(
cd /var/lib/firewall
wget -qN 'http://www.spamhaus.org/drop/drop.txt'
ipset create -exist spamhaus_drop hash:net counters timeout 90000 comment
@toke
toke / hostname.socket
Last active Jun 2, 2017
Basic hostname systemd "service"
View hostname.socket
[Unit]
Description=Hostname Socket
[Socket]
ListenStream=101
Accept=true
[Install]
WantedBy=sockets.target
View hooks.json
[
{
"id": "github",
"execute-command": "/home/toke/webhooks/hooks/github.sh",
"command-working-directory": "/home/toke/go",
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "head_commit.id"
You can’t perform that action at this time.