Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Kerpe toke

View GitHub Profile
View toke@blueskyED25519.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG8naiu/yFZpOdBakeMWZKTrVKtQXb21ldWwjA5dKGcm toke@bluesky-20160318
View blah.md

Kleiner Test mit Sqlite

Sqlite-Datenbank öffnen

sqlite3 test.sqlite3

Testtabelle tbl1 erzeugen:

create table tbl1 (probe int, parameter int, result Char(10))
@toke
toke / config_20200406-1.ini
Last active Apr 17, 2020
Prusa Slicer config. PLA, 0,8mm Nozzle Artillery Sidewinder
View config_20200406-1.ini
# generated by PrusaSlicer 2.1.1 on 2020-04-07 at 19:06:22 UTC
avoid_crossing_perimeters = 1
bed_custom_model =
bed_custom_texture =
bed_shape = 0x0,300x0,300x300,0x300
bed_temperature = 55
before_layer_gcode =
between_objects_gcode =
bottom_fill_pattern = rectilinear
bottom_solid_layers = 3
@toke
toke / anybind_aio.py
Created Jan 28, 2020
Using TPROXY to bind to any port on many IPs (asyncio variant)
View anybind_aio.py
import asyncio
import socket
BIND_IP = "127.0.0.1"
TCP_PORT = 1234
SOCK_BACKLOG = 32
IP_TRANSPARENT = 19
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
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);