Skip to content

Instantly share code, notes, and snippets.

@nulltask
Created June 13, 2012 07:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nulltask/2922475 to your computer and use it in GitHub Desktop.
Save nulltask/2922475 to your computer and use it in GitHub Desktop.
var urandom = require('fs').createReadStream('/dev/urandom');
process.on('uncaughtException', function(e) {
console.log(e);
});
require('net').createServer(function(socket) {
urandom.pipe(socket);
}).listen(10101);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment