Skip to content

Instantly share code, notes, and snippets.

View tommybananas's full-sized avatar

Tom Juszczyk tommybananas

View GitHub Profile
@tommybananas
tommybananas / socksTest.js
Created May 11, 2016 16:15
http-proxy socks agent test
var http = require('http'),
httpProxy = require('http-proxy'),
SocksProxyAgent = require('socks-proxy-agent');
var socksagent = new SocksProxyAgent('socks://127.0.0.1:9050'); // hangs
var httpagent = new http.Agent(); // works great
var proxy = httpProxy.createServer({
target:'http://mnultimate.org',
'agent': httpagent
@tommybananas
tommybananas / DeepCopy.h
Created November 29, 2015 23:28
ARC iOS Category for a NSArray and NSDictionary deep copy implementations
//
// DeepCopy.h
//
//
#import <Foundation/Foundation.h>
// Deep -copy and -mutableCopy methods for NSArray and NSDictionary
@interface NSArray (DeepCopy)