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
class RouteDumper extends \Slim\Router { | |
public static function getAllRoutes($app) { | |
return $app->getContainer()->get('router')->routes; | |
} | |
} | |
// Pass instance of \Slim\App() to function | |
$routes = RouteDumper::getAllRoutes($app); |
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
import vdf | |
import sqlite3 | |
import os | |
# Prereq: | |
# pip install vdf | |
GAME_DIR = r'/path/to/tf' | |
LANGUAGE_DB = GAME_DIR + '/addons/sourcemod/data/sqlite/language-db.sq3' |
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
; koth_vanguard_rc1.ugc510126304.cfg -- Fixes control point not capturing. | |
modify: | |
{ | |
match: | |
{ | |
"hammerid" "11142821" | |
} | |
insert: | |
{ |
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
#!/usr/bin/python3 | |
# This script allows slightly easier management of nginx vhosts. | |
import sys, os, argparse, subprocess | |
SUDO_BIN = '/usr/bin/sudo' | |
NGINX_CONF = '/etc/nginx/' | |
SITES_AVAILABLE = 'sites-available/' |
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
#!/bin/bash | |
tar cvf - -C / /srv/ 2>&1 > /dev/null | less |
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
$ ./master_query.py | |
430 servers to query, hoo boy | |
('45.32.72.105', 27035) 0/24 b'EVGA Gaming | Capture The Flag | LA' | |
('199.230.104.4', 27015) 0/24 b'NewbsTF2.com #05 NO CLASS LIMITS (24/7 2Fort) [Koans Kingdom]' | |
('24.4.131.124', 27084) 0/24 b'USA.VM4GAME.COM_TF2_ORIGINAL_#84' | |
('74.91.118.10', 27015) 0/32 b'Jadatness Gaming' | |
('174.29.191.67', 27015) 0/24 b"Kraken's Breath" | |
('66.150.214.212', 27015) 0/24 b'Cafe of Broken Dreams' | |
('24.4.131.124', 27083) 0/24 b'USA.VM4GAME.COM_TF2_ORIGINAL_#83' |
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
#pragma semicolon 1 | |
#include <sourcemod> | |
#include <tf2itemsinfo> | |
#pragma newdecls required | |
#define PLUGIN_VERSION "0.0.0" | |
public Plugin myinfo = { | |
name = "[TF2] TF2ItemsInfo Tests", |
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
/** | |
* Adds another punch angle to the player view. | |
* | |
* Equivalent to CBasePlayer::ViewPunch(const QAngle &angleOffset)??? | |
*/ | |
stock void AddPlayerViewPunch(int client, const float vecAngleOffset[3]) { | |
float vecAnglePlayer[3], vecAngleAdditive[3]; | |
GetEntPropVector(client, Prop_Data, "m_vecPunchAngleVel", vecAnglePlayer); | |
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
BEGIN { | |
output_filename=""; | |
} | |
match($0, /^[A-Za-z0-9_]+ - [A-Za-z0-9_]+$/) { | |
output_filename= ($0 ".txt"); | |
print ("Starting dump of " $0); | |
} | |
{ | |
if (output_filename != "") { | |
print $0 > output_filename; |
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
/** | |
* Disables the spray command. | |
*/ | |
#pragma semicolon 1 | |
#include <sourcemod> | |
#include <sdktools_hooks> | |
#pragma newdecls required |
OlderNewer