Skip to content

Instantly share code, notes, and snippets.

View nbomberger's full-sized avatar

Nathaniel Bomberger nbomberger

View GitHub Profile
@nbomberger
nbomberger / README.md
Created October 20, 2016 03:23 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@nbomberger
nbomberger / clear.txt
Created October 10, 2017 01:10 — forked from EQuimper/clear.txt
React-Native clear Watchman + Cache
watchman watch-del-all && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
@nbomberger
nbomberger / struct_vs_inheritance.swift
Created January 1, 2018 20:20 — forked from AliSoftware/struct_vs_inheritance.swift
Swift, Struct & Inheritance: How to balance the will of using Struct & Value Types and the need for Inheritance?
// #!Swift-1.1
import Foundation
// MARK: - (1) classes
// Solution 1:
// - Use classes instead of struct
// Issue: Violate the concept of moving model to the value layer
// http://realm.io/news/andy-matuschak-controlling-complexity/
@nbomberger
nbomberger / macosx-configure-postfix-as-relay.md
Created September 20, 2018 12:28 — forked from loziju/macosx-configure-postfix-as-relay.md
Configure postfix as relay for OS X
@nbomberger
nbomberger / dlf-detect-intent.js
Created November 17, 2018 19:08 — forked from nvtuan305/dlf-detect-intent.js
Detect Dialogflow intent that supports multiple agents using API v2
'use strict';
// @ts-ignore
const dialogflow = require('dialogflow');
const fs = require('fs');
/**
* Detect dialogflow intent
* @param {String} botId
* @param {String} sessionId