Skip to content

Instantly share code, notes, and snippets.

View stephank's full-sized avatar

Stéphan Kochen stephank

View GitHub Profile
@stephank
stephank / test-http-upgrade-nagles.js
Created August 22, 2012 14:13
Node pull #3036, test for Nagle's algorithm.
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
@stephank
stephank / README.md
Created January 18, 2012 15:49
PulseAudio homebrew formula
@stephank
stephank / keybase.md
Created October 18, 2016 13:53
keybase.md

Keybase proof

I hereby claim:

  • I am stephank on github.
  • I am stephank (https://keybase.io/stephank) on keybase.
  • I have a public key ASBiXIU3HeuKIfnkJ6R0-ipuKBQsxn3Udvg7BMyM2e2m0go

To claim this, I am signing this object:

@stephank
stephank / pub.js
Created May 13, 2014 11:16
Redis pub/sub stress test
#!/usr/bin/env node
var net = require('net');
var host = process.argv[2] || '127.0.0.1';
var port = parseInt(process.argv[3], 10) || 6379;
var len = parseInt(process.argv[4], 10) || 3000;
var msg =
'*3\r\n' +