Skip to content

Instantly share code, notes, and snippets.

@raoulmillais
raoulmillais / gist:eff16aa9967100dc3283
Created May 21, 2014 16:50
Nested domains rethrowing errors to outer domain
var domain = require('domain');
var d = domain.create();
d.on('error', function (err) {
console.log('Outer');
console.log(err);
});
d.run(function () {
var d2 = domain.create();
@raoulmillais
raoulmillais / Example
Created March 23, 2015 16:50
Waterfall stolen from async-waterfall with multi-environment boilerplate removed
waterfall([
function createBasket(cb) {
api.Basket().create({ artistid: 1 }, function processReleases(err, res) {
if (err) { return cb(err); }
basketId = res.basket.id;
console.log('Created basket', basketId);
return cb();
});
},
function addToBasket(cb) {
'use strict';
function headerChecks(ctx) {
return {
expectHost: function (host) {
return ctx.host == host;
}
}
}
@raoulmillais
raoulmillais / index.html
Created November 22, 2018 12:28
Parcel build error
<!DOCTYPE html>
<html>
<body>
<script src="./index.js"></script>
</body>
</html>
@raoulmillais
raoulmillais / .nvmrc
Created November 24, 2018 11:53
Demonstration of isomorphic-git clone problem using parcel
10
@raoulmillais
raoulmillais / test-rbac.sh
Created March 22, 2019 09:49
Testing K8s RBAC with BATS
#!/usr/bin/env bats
# Default to sandbox
ENV=${ENV:=sandbox}
NAMESPACES=${NAMESPACES:=}
GROUP_PREFIX=${GROUP_PREFIX:=}
@test "Team namespaces can scale deployments within their own namespace" {
for n in ${NAMESPACES[@]}; do
### Keybase proof
I hereby claim:
* I am raoulmillais on github.
* I am raoulmillais (https://keybase.io/raoulmillais) on keybase.
* I have a public key ASCNvMzBkzq0MYyM31QUBBFsGNgZ5DvHCOtrn2aRQ8w8_Ao
To claim this, I am signing this object:
@raoulmillais
raoulmillais / slides.md
Created April 9, 2020 13:31
Vim / tmux / zsh show and tell
theme class backgroundColor
default
invert
black

The Vim, Tmux, Zsh Triumvirate