Skip to content

Instantly share code, notes, and snippets.

View toke's full-sized avatar

Thomas Kerpe toke

View GitHub Profile
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG8naiu/yFZpOdBakeMWZKTrVKtQXb21ldWwjA5dKGcm toke@bluesky-20160318

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 July 16, 2024 05:39
Prusa Slicer config. PLA, 0,8mm Nozzle Artillery Sidewinder
# 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 January 28, 2020 13:06
Using TPROXY to bind to any port on many IPs (asyncio variant)
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.
@toke
toke / crash.log
Created September 21, 2019 14:56
> 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 October 31, 2018 22:45
GRBL 1.1 settings for my Elekslaser A3
$$
$0=10
$1=25
$2=0
$3=1
$4=0
$5=0
$6=0
$10=1
$11=0.010
@toke
toke / osquery.sql
Created July 19, 2018 12:12
Osquery https://osquery.io exmaple queries
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 July 17, 2018 11:38
Example Script for using network namespaces
#!/bin/bash
set -e
# Network namespace example
# Inspired by https://lwn.net/Articles/580893/
#
NNS="netns1"
DEV_OUTSIDE=veth0
DEV_INSIDE=veth1
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.";"
// ==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);