Skip to content

Instantly share code, notes, and snippets.


Mark Wubben novemberborn

View GitHub Profile
novemberborn /
Created Feb 18, 2016
Creating a PKCS#12 file from a Let's Encrypt certificate
novemberborn /
Created Jan 7, 2016
OS X Redirect ports 80 and 443 to 8080 and 8443 respectively

Changes with .dev domains in mind.

Create /etc/pf.anchors/dev, containing:

rdr pass inet proto tcp from any to any port 80 -> port 8080
rdr pass inet proto tcp from any to any port 443 -> port 8443

novemberborn /
Created Feb 17, 2016
CSR with subjectAltName on OSX

Copy /System/Library/OpenSSL/openssl.cnf to a new file.

Add the following at the end:

[ req ]
req_extensions = v3_req

[ v3_req ]
# Extensions to add to a certificate request
novemberborn /
Created Jan 7, 2016
OS X Dnsmasq setup for .dev domains

Install dnsmasq using Homebrew. Edit the dnsmasq.conf file (Homebrew will tell you where to put it) to contain:


Then make sure Dnsmasq is running (again follow Homebrew instructions).

Create the /etc/resolver/dev directory (using root) if it doesn't exist yet and create a resolver for .dev:

novemberborn / gist:6938771
Created Oct 11, 2013
Guide to setting up a local NPM registry
View gist:6938771


Install CouchDB. This guide assumes 1.3.1. Set up an admin account.

Create the database required by NPM:

curl -X PUT http://admin:password@
novemberborn /
Last active Jan 25, 2019
AVA throwsAsync transform for jscodeshift


$ npx jscodeshift -t test.js

See for further details.


Keybase proof

I hereby claim:

  • I am novemberborn on github.
  • I am novemberborn ( on keybase.
  • I have a public key ASBotTxsIgcNBdJ7414oGO7TAGHyYaUtXfNLUrR3N-maaQo

To claim this, I am signing this object:

novemberborn /
Created Nov 26, 2015
Code Coverage with Babel, Istanbul & NYC
set -e
# Shell script to compute code coverage even after the Babel transforms have
# been applied.
# Clear previous coverage.
rm -rf coverage
# Generate test coverage based on however `npm test` performs the tests.
novemberborn / gist:899634
Created Apr 2, 2011
Convert pasteboard string into JSON
View gist:899634
#!/usr/bin/env node
require("child_process").exec("pbpaste", function(_, stdout){
View .babelrc
plugins: [
['./plugin', {label: 'plugin'}],
['./plugin', {label: 'plugin'}, 'named']
overrides: [
test: 'foo.js',
extends: './extends.json5',
plugins: [