Skip to content

Instantly share code, notes, and snippets.

Ben Acker nvcexploder

Block or report user

Report or block nvcexploder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nvcexploder on github.
  • I am benacker ( on keybase.
  • I have a public key ASBfdz0pXE7jpW_iXuJxTg35h1Y41RxAm0R-Vp58HNeP-Qo

To claim this, I am signing this object:

nvcexploder / master.vim
Created Feb 23, 2017 — forked from benjamincharity/master.vim
Master Vim with this interactive tutorial.
View master.vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)


nvcexploder / hapiExample.js
Last active Jun 7, 2018
basic hapi.js example highlighting HTTP methods and a few request parameters
View hapiExample.js
For this to run, ensure that `npm install hapi` has happened in your directory
setup whilst writing this:
iojs v. 1.0.5
hapi 8.2.0
var Hapi = require('hapi');
nvcexploder / server.js
Created Oct 21, 2014
Creating a TLS server in hapi.js
View server.js
var Hapi = require('hapi');
var Fs = require('fs');
var options = {
tls: {
key: Fs.readFileSync(your_key),
cert: Fs.readFileSync(your_cert)
nvcexploder / command line stuff
Last active Oct 19, 2016
Streaming payloads with Hapi
View command line stuff
$ npm install hapi joi
#A good way to test is this:
$ curl --form file=@lulz.png localhost:8080/selfies
nvcexploder / onreq.js
Created Aug 7, 2014
Change URL in a hapi onRequest ext point.
View onreq.js
// wherever you're setting up your server, this was within a register method for a plugin:'api').ext('onRequest', internals.onRequest);
//somewhere else in that file or whatever
var onRequest = function (request, next) {

Keybase proof

I hereby claim:

  • I am nvcexploder on github.
  • I am benacker ( on keybase.
  • I have a public key whose fingerprint is B6D0 5541 82DA F2B9 E37C 9B25 0DEF AEF7 7925 4224

To claim this, I am signing this object:

nvcexploder / route.js
Created Feb 11, 2014
Route validation config showing nested Joi configuration objects
View route.js
exports.create = {
description: 'Creates a new cart',
validate: {
payload: {
location: Joi.object({
postalCode: Joi.string().required().description('Postal Code'),
city: Joi.string().optional().description('City'),
state: Joi.string().optional().description('State or Province Code'),
country: Joi.string().optional().description('Country')
nvcexploder / hapi addresses
Created Jan 6, 2014
Address in Use Problem
View hapi addresses
var hapi = require('hapi');
var server = hapi.createServer('localhost', 8080);
var server2 = hapi.createServer('localhost', 8080);
You can’t perform that action at this time.