Skip to content

Instantly share code, notes, and snippets.

View dtuominen's full-sized avatar

Dylan Tuominen dtuominen

  • Minneapolis, MN
View GitHub Profile
#!/bin/sh
DEMODIR="/home/csgoserver/serverfiles/csgo/demos"
CSGODIR="/home/csgoserver/serverfiles/csgo"
find $CSGODIR -xdev -type f -name '*dem' | xargs -I {} mv {} $DEMODIR
#! /bin/bash
##################################################################################
# #
# Counter-Strike : Global Offensive Server Launcher #
# #
# Author: Cr@zy #
# Contact: http://www.crazyws.fr #
# Related post: http://goo.gl/HFFGy #
@dtuominen
dtuominen / gist:7943983
Last active December 31, 2015 05:49
grips buyscript
///////// BUYSCRIPT STUFF
// ------------------------------------
// WEAPON ALIASES
alias "m4a1/ak47" "buy m4a1;buy ak47"
alias "aug/sg556" "buy aug;buy sg556"
alias "galilar/famas" "buy galilar;buy famas"
alias "g3sg1/scar20" "buy g3sg1; buy scar20"
alias "vesthelm/vest" "buy vesthelm;buy vest"
alias "incgrenade/molotov" "buy incgrenade;buy molotov"
alias "glock" "give weapon_glock; buy glock"
#include <stdio.h>
int main()
{
char c;
while ((c=getchar())!=EOF){
putchar(c);
}
return 0;
}
#include <stdio.h>
int main()
{
char c;
char string[];
while ((c=getchar())!=EOF){
putchar(c);
}
return 0;
#!/usr/bin/env python
"""GoonPUG-stats log handling daemon"""
from __future__ import absolute_import, division
import os
import sys
import argparse
import threading
import SocketServer
import datetime
'''
***
Modified generic daemon class
***
Author: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
www.boxedice.com
License: http://creativecommons.org/licenses/by-sa/3.0/
http://astroman.us/player/28
get request to http://api.goonpug.com/[LAST 4 of STEAMID?]
should return:
{
"stats": {
"rws": "25",
"kills": "420",
"deaths": "10"
},
http://astroman.us/player/28
get request to http://api.goonpug.com/[LAST 4 of STEAMID?]
should return:
{
"playerinfo": {
"steam_id": "steam_1:1:1234",
"name": "griP^",
}
Pug Server Commands
.invite <name> - Invite players to your current server
.start - Open your Custom Pug to the public
.ready - Set yourself as ready to pug
.need <1-13> - Message mutual buddies that you need help filling a server
.stats pug - View current pug stats
.stats <name> - View a specific player's stats or your own if no name is provided
.stats prizes - View the current prize leaders
.rank <pug|csdm|aim|...> - View your ranking for a specific type of stats