Skip to content

Instantly share code, notes, and snippets.

View LinusU's full-sized avatar
😅
Up to a few hundred notifications again, working thru them...

Linus Unnebäck LinusU

😅
Up to a few hundred notifications again, working thru them...
View GitHub Profile
@LinusU
LinusU / grunt-cluster.js
Last active August 29, 2015 14:15
Node.js cluster together with Grunt
var os = require('os');
var async = require('async');
var cluster = require('cluster');
if (cluster.isWorker) {
process.on('message', function (msg) {
// Do the Phantom JS stuff
@LinusU
LinusU / mongodb.diff
Last active August 29, 2015 14:04
Diff to get mongodb to compile on newer OS X 10.10
diff --git a/src/third_party/s2/util/endian/endian.h b/src/third_party/s2/util/endian/endian.h
index 9def73f..9de7ab0 100755
--- a/src/third_party/s2/util/endian/endian.h
+++ b/src/third_party/s2/util/endian/endian.h
@@ -178,14 +178,5 @@ class LittleEndian {
};
-// This one is safe to take as it's an extension
-#define htonll(x) ghtonll(x)