Skip to content

Instantly share code, notes, and snippets.

View memesalot's full-sized avatar
😃

Memesalot memesalot

😃
  • Privately Contracted
View GitHub Profile
@memesalot
memesalot / haproxy.cfg
Created July 15, 2025 16:08 — forked from nathan818fr/haproxy.cfg
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
@memesalot
memesalot / searchAllWantedMovies.sh
Created August 13, 2018 08:11 — forked from elneruda/searchAllWantedMovies.sh
search wanted on radarr / sonarr
#!/bin/sh
RADARR_API_URL="http://radarr.com/api"
RADARR_API_KEY="PUT_YOUR_API_KEY_HERE"
history=$(curl -s ${RADARR_API_URL}/history?page=1\&pageSize=20\&sortKey=date\&sortDir=desc -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" -X GET -H 'X-Api-Key: '$RADARR_API_KEY'' -k)
history=$(echo $history | tr -d '\n' | tr -d '\r' | tr -d '\b')
grabbed=$(echo $history | jq '.records | .[] | select(.movie.monitored) | select(.movie.downloaded | not) | select(.eventType=="grabbed") | .movieId')
grabbed=$(echo $grabbed | sed 's/ /, /g')
grabbed="[${grabbed}]"