Skip to content

Instantly share code, notes, and snippets.

EnableSSOnThruICAFile=On
@jdecaron
jdecaron / gist:753868
Created December 24, 2010 03:31
chatzilla.bat
@ECHO OFF
taskkill /F /IM chatzilla.exe
cd %homepath%\Bureau\chatzilla
del chatzilla.jar
"%programfiles%\7-Zip\7z.exe" a chatzilla.jar content locale skin
copy "%homepath%\Bureau\chatzilla\chatzilla.jar" "%programfiles%\chatzilla\chrome" /Y
"%programfiles%\ChatZilla\chatzilla.exe
@jdecaron
jdecaron / gist:888938
Created March 27, 2011 05:20
item_whitelist.txt
// This is an example tournament mode item whitelist. Rename the file to item_whitelist.txt to allow the game to find it.
// Note that the whitelist is only updated when a map is loaded, or the mp_tournament_restart command is issued.
//
// To find a list of definition names, use the "item_show_whitelistable_definitions" console command.
//
// If the game finds the whitelist file, all non-base TF items are marked as illegal by default.
// You can specify the following optional parameter to make it so that items are legal by default:
// "unlisted_items_default_to" "1"
//
// Then provide a list of item names in this format:
runas /user:mumble "C:\Program Files\Mumble\mumble.exe \"-m\""
http://www.pythonprasanna.com/Papers%20and%20Articles/Sockets/tcpserver.c
#include <stdio.h>
#include <windows.h>
#define AF_INET 2
#define SOCK_STREAM 1
#define IPPROTO_TCP 6
#define INVALID_SOCKET (SOCKET)(~0)
#define SOCKET_ERROR (-1)
#define DEFAULT_BUFLEN 512
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int incomingByte = 0;
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
Serial.begin(9600);
import serial
import socket
import string
import struct
import zlib
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind(('', 7050))
mreq = struct.pack("=4sl", socket.inet_aton("230.0.0.1"), socket.INADDR_ANY)
win_ratio | games_played | nick
-----------+--------------+--------------------------------
63 | 121 | Orzo
35 | 163 | Tormented_Soul
34 | 105 | Big`D
22 | 44 | daniel`
20 | 114 | cMw
19 | 94 | thursday`
18 | 28 | Kodyl
16 | 36 | CowPimp
@jdecaron
jdecaron / gist:1614970
Created January 15, 2012 07:54
banning atf2.org users
*!~6252f8fc*@*