Skip to content

Instantly share code, notes, and snippets.

View MarkHerhold's full-sized avatar
💢

Mark Herhold MarkHerhold

💢
View GitHub Profile
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@jhoguet
jhoguet / debug.md
Created February 9, 2016 04:57
aurelia console debugger

Simply expose a global (eg in main.js)

window.au = el => {
    let aureliaNode  = el;
    // go up the structure until an element affected by aurelia is found
    while (aureliaNode !== null && aureliaNode !== undefined && aureliaNode.au === undefined) {
        aureliaNode = aureliaNode.parentNode;
    }
@kijanawoodard
kijanawoodard / bundle.js
Created November 24, 2015 03:00
aurelia bundle config
var gulp = require('gulp');
var bundler = require('aurelia-bundler');
var paths = require('../paths');
var config = {
force: true,
packagePath: '.',
bundles: {
"app/dist/app-build": {
includes: [
@alexmcpherson
alexmcpherson / circle.yml
Created July 28, 2015 23:12
CircleCI consuming private node modules
dependencies:
pre:
- |
npm login <<!
$NPM_USERNAME
$NPM_PASSWORD
$NPM_EMAIL!
@uzyexe
uzyexe / logentires-systemd
Last active June 4, 2018 20:42
systemd: Sending your CoreOS data to Logentries
[Unit]
Description=logentires.service
[Service]
Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN
ExecStart=/bin/sh -c 'journalctl -o short -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat data.logentries.com 10000'
@soheilhy
soheilhy / nginxproxy.md
Last active October 23, 2024 08:19
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@jmdobry
jmdobry / Instructions.md
Last active August 31, 2021 18:21
Nginx reverse-proxy for RethinkDB Admin UI

Start your rethinkdb instance with this flag: --bind all (or bind=all in the configuration file for your instance)

Block external access to the web UI with these two commands: sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT

Install nginx: sudo apt-get install nginx