Skip to content

Instantly share code, notes, and snippets.


Luis Faustino dublx

  • Ireland
View GitHub Profile
View stream-abort.js
var stream = require('stream');
function abort(){
setTimeout(abort, 3000);
dublx / gulpfile.js
Last active Aug 29, 2015
[nodejs:gulp] mocha watch
View gulpfile.js
//npm install --save-dev gulp gulp-mocha gulp-util
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var gutil = require('gulp-util');
gulp.task('mocha', function() {
return gulp.src(['test/**/*.js'], { read: false })
.pipe(mocha({ reporter: 'spec' }))
.on('error', gutil.log);
dublx /
Last active Nov 17, 2022
Bash - retry command N times
set -euo pipefail
function myFunction() {
return $?

(dominic: this list of papers was originally recommended to me by Brain Noguchi @bnoguchi, and was a great start to understanding distributed systems)

Here's a selection of papers that I think you would find helpful and interesting:

Time, Clocks, and the Ordering of Events in a Distributed System

The seminal paper about event ordering and concurrency. The important result is that events in a distributed system define a partially ordered set. The connection to what we're working on is fundamental, as this defines how to detect concurrent updates. Moreover, the chosen algorithm to turn the partially ordered set into a totally ordered set defines the conflict resolution algorithm.