Skip to content

Instantly share code, notes, and snippets.

View chfoo's full-sized avatar

Christopher Foo chfoo

View GitHub Profile
import datetime
from distutils.version import StrictVersion
import fcntl
import os
import pty
from seesaw import item
import seesaw
from seesaw.config import NumberConfigValue
from seesaw.externalprocess import WgetDownload
from seesaw.item import ItemInterpolation, ItemValue
@chfoo
chfoo / aplayer.as
Created November 19, 2013 03:52
hyves aplayer.swf

//----------------------------------------------------------------------
//Symbol 20486 MovieClip [__Packages.com.meychi.ascrypt.Base64] Frame 0
//----------------------------------------------------------------------
class com.meychi.ascrypt.Base64
{
function Base64 () {
}
static function encode(src) {
var _local3 = 0;
#!/usr/bin/env python
import json
import logging
import os
import re
import string
import sys
import requests
from datetime import datetime
@chfoo
chfoo / README.md
Created August 7, 2014 22:14 — forked from AviDuda/README.md
traceroute -m 200 obiwan.scrye.net
traceroute to obiwan.scrye.net (204.244.252.35), 200 hops max, 52 byte packets
1 192.168.16.20 (192.168.16.20) 7.534 ms 4.420 ms 2.951 ms
2 41.161.72.225 (41.161.72.225) 6.101 ms 5.317 ms 5.075 ms
3 41.160.24.13 (41.160.24.13) 7.364 ms 9.033 ms 8.662 ms
4 * * *
5 41.160.0.243 (41.160.0.243) 10.521 ms 8.304 ms 8.235 ms
6 41.160.0.242 (41.160.0.242) 10.024 ms 9.046 ms 13.001 ms
7 ix-0-3-0-0.tcore1.jso-johannesburg.as6453.net (216.6.55.37) 53.576 ms 9.311 ms 9.040 ms
8 if-4-2.tcore1.klt-capetown.as6453.net (41.206.178.2) 183.272 ms 183.199 ms 180.528 ms
http://8ch.net/ban1/
http://8ch.net/dprk/
http://8ch.net/artifacts/
http://8ch.net/beautiful/
http://8ch.net/racesim/
http://8ch.net/dsgfhgurtf/
http://8ch.net/tnr/
http://8ch.net/pique/
http://8ch.net/woooo/
http://8ch.net/cheesepizza/
http://www.cubcentral.org/pics/AlexReynard/
http://www.cubcentral.org/pics/AllesterE.Darkflame/
http://www.cubcentral.org/pics/AnanabMasterSemaj/
http://www.cubcentral.org/pics/AnthrotechCorp/
http://www.cubcentral.org/pics/Anubis/
http://www.cubcentral.org/pics/Azadeth/
http://www.cubcentral.org/pics/BARK/
http://www.cubcentral.org/pics/BenRaccoon/
http://www.cubcentral.org/pics/BlackdragonSama/
http://www.cubcentral.org/pics/Blackraven2/
@chfoo
chfoo / fasnippet.js
Created April 15, 2015 03:35
Select the checkboxes on the session management page of a particular website
var nl = document.querySelectorAll('input[type="checkbox"]');
for (var i=100; i<nl.length; i++) {
nl.item(i).click();
}
@chfoo
chfoo / twitch_quick_reskin_userscript.js
Last active November 14, 2017 22:21
Twitch Quick Reskin Userscript
// ==UserScript==
// @name Twitch Quick Reskin
// @namespace https://gist.github.com/chfoo/28b26f8e760889408dea
// @version 1.1.4
// @description Make text and colors readable on dark theme on twitch.tv. You may need to tweak to your liking.
// @match http://www.twitch.tv/*
// @match http://go.twitch.tv/*
// @match http://twitch.tv/*
// @match https://www.twitch.tv/*
// @match https://twitch.tv/*
@chfoo
chfoo / beam_chat.py
Created January 31, 2016 19:51
Simple Beam.pro chat script
import json
import datetime
import tornado.gen
import tornado.websocket
import tornado.ioloop
@tornado.gen.coroutine
def main():