Skip to content

Instantly share code, notes, and snippets.

View joshdover's full-sized avatar

Josh Dover joshdover

View GitHub Profile
@joshdover
joshdover / shim.js
Last active August 29, 2018 20:42
Hapi v17 Shim - probably not 100% complete - not recommended for production
const Hapi = require('hapi');
const Boom = require('boom');
function installShim(server) {
/**
* Request wrapping factory that emulates Hapi v14 behavior.
*/
function handlerWrapper(originalHandler, { isPreResponse = false } = {}) {
// Leave undefined, null, and string (registered server functions) values unchanged.
@joshdover
joshdover / keybase.md
Created August 31, 2018 15:38
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@joshdover
joshdover / so_types.js
Last active July 8, 2021 16:08
Kibana Saved Object types
const TYPES_7_7_to_7_14 = [
"action",
"action_task_params",
"alert",
"api_key_pending_invalidation",
"apm-indices",
"apm-server-schema",
"apm-services-telemetry",
"apm-telemetry",
"app_search_telemetry",