Skip to content

Instantly share code, notes, and snippets.

View bobbynewmark's full-sized avatar

Andrew Cox bobbynewmark

  • civet-labs.com
  • Wellington, New Zealand
View GitHub Profile
@bobbynewmark
bobbynewmark / server.js
Created January 26, 2017 00:10
Simple Hapi Server to query Octopus for deploy stats
'use strict';
const Hapi = require('hapi');
const rp = require('request-promise');
const Boom = require('boom');
const m = require('moment');
const mkOctopusOptions = function(loc) {
var url = loc.indexOf("/") == 0 ? process.env.OCTOPUS_URL + loc : process.env.OCTOPUS_URL + '/' + loc;
return {
uri: url,
Verifying that +andrewcox is my openname (Bitcoin username). https://onename.io/andrewcox