Skip to content

Instantly share code, notes, and snippets.

@floreo
floreo / jail.local
Last active November 12, 2015 10:14
[teeworlds][fail2ban] use fail2ban to protect your teeworlds servers
[teeworlds-overflows]
enabled = true
port = 8300:8310
protocol = udp
filter = teeworlds-overflows
logpath = /var/log/teeworlds/*.log
maxretry = 2
findtime = 2
bantime = 60
@floreo
floreo / generate_add_vote.sh
Last active September 14, 2016 17:29
[teeworlds] Generate an add_vote for sv_map out of your maps folder (quick and dirty)
#!/bin/bash
# first, cd to your maps folder then execute this one liner
ls *.map | while read _map; do _m="$(echo $_map | awk -F '.' '{print $1}')"; echo "add_vote \"change map to $_m\" sv_map $_m"; done >> add_vote