This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
var SlowBuffer = require('buffer').SlowBuffer; | |
var ITER = 1e5, SIZE = 65536, cntr = 0; | |
var t = process.hrtime(); | |
(function runner() { | |
if (++cntr > ITER) return print(); | |
new SlowBuffer(SIZE); | |
setImmediate(runner); | |
}()); |
measure = (t, f) -> | |
s = new Date() | |
s = s.getTime() | |
ret = f() | |
e = new Date() | |
console.log t, e.getTime() - s, ret | |
test1 = -> | |
r = 0 | |
for x in a |
var rrdjs = require('rrdjs'); | |
var start = 0; | |
var end = start; | |
var i = 0; | |
step = 10; | |
var sources = [ "DS:test:GAUGE:1:0:U", "RRA:MAX:0.5:10:6" ]; | |
rrdjs.create('test.rrd', 1, start, sources, created); |
var util = require("util"); | |
var i = 0; | |
function echoI() { | |
util.log("interval " + ++i); | |
} | |
var t = 0; | |
function echoT() { |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
I hereby claim:
To claim this, I am signing this object:
<?php | |
//Found on http://www.alternateinterior.com/2007/05/multi-threading-strategies-in-php.html | |
//Modified by http://www.php-code.net | |
//Modified: add executor | |
class Thread { | |
var $pref ; // process reference | |
var $pipes; // stdio | |
var $buffer; // output buffer | |
var $output; | |
var $error; |
From https://gist.github.com/3050224
From http://blog.smartcore.net.au/smartos-the-basics/
git clone https://github.com/steida/este.git | |
cd este | |
npm install | |
npm list |
[alias] | |
cl = !git clone --separate-git-dir=/tmp/repos/${2-$(printf $1 | grep -oEi '([a-zA-Z0-9_.-]+)$')} |