This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -N GETSTATUS_CHECK | |
iptables -A INPUT -p udp -m length --length 42 -j GETSTATUS_CHECK | |
iptables -A GETSTATUS_CHECK -m recent --name longudp --rcheck --rsource --hitcount 20 -j DROP | |
iptables -A GETSTATUS_CHECK -m recent --name longudp --rsource --set -j RETURN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat nginx-access.log | grep pingback | sed -r s/\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\)\\s-\\s-\\s\\[\(.*\)\\]\\s.*/\\1/g | sort | uniq -c | sort -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### keeagent | |
export KEEAGENT_SOCK="/mnt/c/Users/dom/keeagent_msys.socket" | |
ssh_auth_tmpdir=`mktemp --tmpdir --directory keeagent-ssh.XXXXXXXXXX` | |
export SSH_AUTH_SOCK="${ssh_auth_tmpdir}/agent.$$" | |
PIDFILE="${ssh_auth_tmpdir}/pid.$$" | |
echo $PIDFILE | |
echo $KEEAGENT_SOCK | |
echo $SSH_AUTH_SOCK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pingwatcher | |
// Author: D4edalus | |
// Date: 09/12/17 | |
// Kicks player with sucky pings, players get only kicked if server is 80% full. Only kicks one player every 10 seconds | |
// Used metric is average + stddev (yeah I know that is statistical nonesense, but hey it works quite well) | |
#include maps\mp\gametypes\eventhandler; // the eventhandler from the duffman scripts thats floating around in the ether | |
init() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init() | |
{ | |
if(getdvar("scr_showspawns") == "") | |
setdvar("scr_showspawns", "0"); | |
precacheItem("defaultweapon_mp"); | |
thread addTestClients(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
findPlayerByNumber( entityNumber ) | |
{ | |
foundPlayer = undefined; | |
// Search for the player | |
for ( index = 0; index < level.players.size; index++ ) | |
{ | |
player = level.players[index]; | |
// Check if this the player we are looking for |