Skip to content

Instantly share code, notes, and snippets.

@danmilon
danmilon / shell
Created Feb 19, 2013
node os.gethostname() strace
View shell
$ 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() }"
@danmilon
danmilon / README
Created Feb 6, 2013
xterm README
View 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 / client.js
Created Dec 2, 2012
node outgoing headers lowercase or uppercase
View client.js
/*
* 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',
You can’t perform that action at this time.