Skip to content

Instantly share code, notes, and snippets.

#!/bin/env python
# yo dawg I heard you needed a proxy for your proxy
# this is a very slow proof of concept
import socketserver
import http.server
import urllib.request
#whatever localhost port we want to listen on
g_port = 9999
@RichardHum
RichardHum / gist:a38037d4b33d98776962
Created June 11, 2014 20:20
moc diff to add seek beginning
Index: interface.c
===================================================================
--- interface.c (revision 2652)
+++ interface.c (working copy)
@@ -1841,6 +1841,7 @@
plist_free (&plist);
free (file);
+ save_playlist_in_moc ();
}
@RichardHum
RichardHum / Hide_Secret_Question_Tangerine.user.js
Created June 10, 2014 13:12
By default, Tangerine bank doesn't hide your secret question answer, this hides it.
// ==UserScript==
// @name Hide Secret Question Tangerine
// @namespace tangerine.ca
// @description Hide the secret question answer field on Tangerine
// @include https://secure.tangerine.ca/web/Tangerine.html?command=displayChallengeQuestion
// @version 1
// @grant none
// ==/UserScript==
var field = document.getElementsByTagName("input");
@RichardHum
RichardHum / ScribdFixer.user.js
Created June 10, 2014 13:11
Remove floating frame on Scribd
// ==UserScript==
// @name ScribdFixer
// @namespace scribd.com
// @description Remove Scribd Overlay
// @include http://www.scribd.com/doc/*
// @version 1
// @grant none
// ==/UserScript==
var field = document.getElementsByClassName("page-blur-promo-overlay");
@RichardHum
RichardHum / Connection List
Created May 16, 2014 17:00
Lists the IP addresses a specified client is connected to
#!/bin/bash
# This script is for DD-WRT
# This script lists the IP addresses that a specified client is connected to.
echo -n "Username: "
read username
echo -n "Password: "
stty -echo
read password