Skip to content

Instantly share code, notes, and snippets.

View mickael9's full-sized avatar

Mickaël Thomas mickael9

View GitHub Profile
@mickael9
mickael9 / save.py
Last active June 28, 2021 07:58
Factorio map metadata parser
from zipfile import ZipFile
from struct import Struct
class Deserializer:
u16 = Struct('<H')
u32 = Struct('<I')
def __init__(self, stream):
self.stream = stream
@mickael9
mickael9 / urtmon.sh
Last active October 21, 2017 09:34
A shell/awk wrapper around qstat for UrbanTerror, with filtering and sorting
#!/bin/bash
QSTAT_ARGS="-iourtm master.urbanterror.info:27900"
show_help () {
echo "Usage: $0 [[-]<keyword>...] [<var>=<val>...] [<var>=!<val>...]"
echo
echo "Examples:"
echo
echo " Show all public TS or CTF servers running either abbey or turnpike:"