Skip to content

Instantly share code, notes, and snippets.

View secretsquirrel's full-sized avatar
💭
👨‍💻 New updates to BDF-ng

midnite_runr secretsquirrel

💭
👨‍💻 New updates to BDF-ng
View GitHub Profile
@mubix
mubix / browserloop.js
Created July 23, 2014 18:28
Fun with NodeJS
var http = require('http');
function parseSwitch(req){
var list = {},
rc = req.headers.cookie;
rc && rc.split(';').forEach(function( cookie ) {
var parts = cookie.split('=');
list[parts.shift().trim()] = unescape(parts.join('='));
});
return list;
@somic
somic / udp_hole_punch_tester.py
Created November 3, 2009 04:13
UDP Hole Punching test tool
#!/usr/bin/env python
#
# udp_hole_punch_tester.py - UDP Hole Punching test tool
#
# Usage: udp_hole_punch_tester.py remote_host remote_port
#
# Run this script simultaneously on 2 hosts to test if they can punch
# a UDP hole to each other.
#
# * remote_port should be identical on 2 hosts.