Skip to content

Instantly share code, notes, and snippets.

@danmilon
danmilon / client.js
Created December 2, 2012 01:37
node outgoing headers lowercase or uppercase
/*
* Run tcpdump to capture outgoing HTTP headers first eg:
* "sudo tcpdump -vs 1024 -l -A dst www.google.com" (might need -i <interface>)
*
*/
var http = require('http')
var options = {
hostname: 'www.google.com',
@danmilon
danmilon / README
Created February 6, 2013 01:56
xterm README
-- $XTermId: README,v 1.3 2007/05/24 19:49:19 tom Exp $
-- Below is the original README for xterm from 1991, for your amusement.
-- For a better overview, see http://invisible-island.net/xterm/
-------------------------------------------------------------------------------
Abandon All Hope, Ye Who Enter Here
This is undoubtedly the most ugly program in the distribution. It was one of
the first "serious" programs ported, and still has a lot of historical baggage.
Ideally, there would be a general tty widget and then vt102 and tek4014
@danmilon
danmilon / shell
Created February 19, 2013 20:03
node os.gethostname() strace
$ node -p -e 'process.versions'
{ http_parser: '1.0',
node: '0.8.19',
v8: '3.11.10.25',
ares: '1.7.5-DEV',
uv: '0.8',
zlib: '1.2.3',
openssl: '1.0.1c' }
$ strace -e uname node -e "for (var i = 0; i < 15; i++) { require('os').hostname() }"