Skip to content

Instantly share code, notes, and snippets.

## In order to use this script download the following link:
## http://lucifer.phiral.net/socks.py
## and put it in the same directory where you save this script.
## written mainly by some random guy from /b/
import socks
import socket
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9050, True)
socket.socket = socks.socksocket
import httplib

Discussion on reddit.

Each of these commands will run an ad hoc http static file server in your current (or specified) directory. Use this power wisely.

Python 2.x

$ python -m SimpleHTTPServer 8000
//---------------------------------- get Elements by Class Name (ALPHA) ----------------------------------
/**
*
* @param obj
*/
function $$$$(obj) {
if (document.getElementsByClassName) {