Skip to content

Instantly share code, notes, and snippets.

View wswoodruff's full-sized avatar
🐢
all the way down

wswoodruff

🐢
all the way down
View GitHub Profile
'use strict';
const Schmervice = require('schmervice');
const internals = {};
module.exports = class DisplayService extends Schmervice.Service {
companyBasic(companies) {
'use strict';
const Hoek = require('@hapi/hoek');
const Wreck = require('@hapi/wreck');
const Schmervice = require('schmervice');
module.exports = class MailchimpService extends Schmervice.Service {
constructor(server, options) {
// lib/expose/commands.js
// See a list of hpal commands via 'hpal run --list'
'use strict';
const internals = {};
module.exports = (server, options) => ({
// Run this command via 'hpal run my-project:recent-jobs'
@wswoodruff
wswoodruff / node-nginx-box-setup
Created October 6, 2019 22:25
Setup notes for Ec2 amazon_linux box
================================
Administrative
================================
INFO:
---------------
$ uname -a
Linux ip-xxx-xx-xx-xx.ec2.internal 4.14.138-114.102.amzn2.x86_64 #1 SMP Thu Aug 15 15:29:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
---------------
'use strict';
const Fs = require('fs');
const Util = require('util');
const Xml2js = require('xml2js');
const XmlNodes = require('xml-nodes');
const Miss = require('mississippi');
const internals = {};
@wswoodruff
wswoodruff / browser-detection.md
Last active August 12, 2016 20:39
Non- user agent sniffing browser-detection

#1 Goal: AVOID user agent sniffing as much as possible.

See this link for a necessary evil at times 😅 browser detection: Browser Hacks

var browser;

if(!!window.opera || navigator.userAgent.indexOf(' OPR/') > -1) {
  // Opera 8.0+ (UA detection to detect Blink/v8-powered Opera)