Skip to content

Instantly share code, notes, and snippets.

View TheTrunk's full-sized avatar
🏠
Working from home

Tadeas Kmenta TheTrunk

🏠
Working from home
View GitHub Profile
@nathan818fr
nathan818fr / haproxy.cfg
Last active July 15, 2025 16:08
Decoding the Minecraft handshake with HAProxy (protocol version, hostname, next-state) to choose which backend to use.
global
lua-load /path/to/haproxy_minecraft.lua
[...]
defaults
[...]
frontend mc_listener
bind *:25565
mode tcp
@laanwj
laanwj / sendalert.cpp
Last active July 9, 2018 13:06
Bitcoin send alert code
/*
So you need to broadcast an alert...
... here's what to do:
1. Copy sendalert.cpp into your bitcoind build directory
2. Decrypt the alert keys
copy the decrypted file as alertkeys.h into the src/ directory.
3. Modify the alert parameters in sendalert.cpp