Skip to content

Instantly share code, notes, and snippets.

View laurengarcia's full-sized avatar

Lauren Garcia laurengarcia

  • Somewhere, everywhere.
View GitHub Profile
@laurengarcia
laurengarcia / nginx.conf
Created February 19, 2020 23:55 — forked from opaolini/nginx.conf
Mesh Example with certbot
upstream meshws {
server mesh:60559;
}
server {
listen 443 ssl;
server_name ${SERVERNAME};
ssl_certificate /etc/letsencrypt/live/${SERVERNAME}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/${SERVERNAME}/privkey.pem;
@laurengarcia
laurengarcia / eventemitter.js
Created December 12, 2019 18:08 — forked from mudge/eventemitter.js
A very simple EventEmitter in pure JavaScript (suitable for both node.js and browsers).
/* Polyfill indexOf. */
var indexOf;
if (typeof Array.prototype.indexOf === 'function') {
indexOf = function (haystack, needle) {
return haystack.indexOf(needle);
};
} else {
indexOf = function (haystack, needle) {
var i = 0, length = haystack.length, idx = -1, found = false;