Skip to content

Instantly share code, notes, and snippets.

Matt Tagg wamatt

  • Palo Alto, California
Block or report user

Report or block wamatt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nodejs-cluster-zero-downtime.md

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)

@wamatt
wamatt / dabblet.css
Created Jan 17, 2013
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(35deg, #f06, yellow);
min-height: 18%;
background-repeat: no-repeat;
cursor: url(http://www.google.com/intl/en_ALL/mapfiles/closedhand.cur);
View gist:3810181
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
View gist:3038929
$host nodejitsu.com
nodejitsu.com has address 165.225.130.235
nodejitsu.com has address 165.225.131.4
nodejitsu.com has address 165.225.130.240
nodejitsu.com has address 165.225.130.237
nodejitsu.com has address 165.225.131.5
nodejitsu.com has address 165.225.130.241
nodejitsu.com has address 165.225.129.253
nodejitsu.com has address 165.225.130.239
nodejitsu.com has address 165.225.130.238
You can’t perform that action at this time.