Skip to content

Instantly share code, notes, and snippets.

@lsm
lsm / stdio-2.js
Created January 22, 2016 00:49 — forked from isaacs/stdio-2.js
/*
In a child process, each of the stdio streams may be set to
one of the following:
1. A new file descriptor in the child, dup2'ed to the parent and
exposed to JS as a Stream object.
2. A copy of a file descriptor from the parent, with no other
added magical stuff.
3. A black hole - no pipe created.

Keybase proof

I hereby claim:

  • I am lsm on github.
  • I am lsm (https://keybase.io/lsm) on keybase.
  • I have a public key ASBpGnftcilmP_g7XoeQkY4v2zyOLF9vafd8a8yy_5pTmAo

To claim this, I am signing this object:

@lsm
lsm / app.js
Last active July 14, 2016 18:59
express -> micromono
var app = require('express')()
app.set('views', path.join(__dirname, 'views'))
app.set('view engine', 'pug')
app.use(express.static(path.join(__dirname, 'public')))
app.get('/', function(req, res){
res.render('index.pug')
})
@lsm
lsm / Dockerfile
Created December 17, 2017 07:29 — forked from kenfehling/Dockerfile
Docker: Ubuntu 16.04 with Node 6.10.2, Selenium Standalone, Chrome Headless
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
apt-transport-https \
openjdk-8-jre-headless \
curl \
xz-utils \
unzip \
bzip2 \