Skip to content

Instantly share code, notes, and snippets.

View mlin's full-sized avatar

Mike Lin mlin

View GitHub Profile
@mlin
mlin / netclient_https_threads.ml
Created November 27, 2012 02:39
Attempting multithreaded https requests using ocamlnet netclient
(*
ocamlfind ocamlopt -o netclient_https_threads -thread -linkpkg -package threads,netclient,ssl,equeue-ssl netclient_https_threads.ml
http://docs.camlcity.org/docs/godipkg/3.12/godi-ocamlnet/doc/godi-ocamlnet/html/Https_client.html
*)
open Printf
module HTTP = Http_client
module HTTPS = Https_client
;;
@mlin
mlin / node_cluster_child_process.js
Created June 2, 2012 04:22
Cannot spawn a child process from within a cluster worker in Node v0.6.18+
/*
$ uname -a
Linux coderuler 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ node -v
v0.6.18
$ echo "console.log('foobar'); process.exit(0);" > foo.js
$ node node_cluster_child_process.js
child stderr >