Skip to content

Instantly share code, notes, and snippets.

View willholley's full-sized avatar

Will Holley willholley

  • IBM
  • Somerset, UK
View GitHub Profile
var proxy = require('express-http-proxy');
var DATA_DIR = '~';
var PouchDB = require('pouchdb').defaults({prefix: DATA_DIR + 'core/'});
var PublicPouchDB = PouchDB.defaults({prefix: DATA_DIR + 'public/'});
var app = require('express')();
app.use('/proxy', proxy('www.google.com', {
forwardPath: function(req, res) {
@nolanlawson
nolanlawson / stuff.md
Last active May 21, 2016 01:48
Stuff I'm working on

Stuff I'm working on

Next up

  • test case for pouchdb/pouchdb#5180
  • monorepo support for GreenKeeper
  • faster watchify build for monorepo
@nickva
nickva / distbench.erl
Last active September 7, 2023 15:30
Ping-pong across dist with N parallel workers
%
% $ erl -name n1@127.0.0.1
%
% $ erl -name n2@127.0.0.1
% (n2@127.0.0.1)2> dist_perf:go('n1@127.0.0.1').
-module(distbench).
-export([go/1, go/2, go/3, stop/0, gc/0, stats/1]).