Skip to content

Instantly share code, notes, and snippets.

View ottonet's full-sized avatar

Jean-Paul Otto ottonet

View GitHub Profile
@ottonet
ottonet / gist:3335d30ed464bc720c31
Created January 11, 2016 11:08
nginx route to different php processors, you could have some php processing done by v5, some by v7 and even some by hhvm if you'd want that.. .
# Default is to use pool 1
set $custom_php_pool "1";
# If is /admin, we use pool 2
if ($uri ~* "^/index.php/admin/") {
set $custom_php_pool "2";
}
if ($uri ~* "^/qbonline/") {
set $custom_php_pool "2";
}
@ottonet
ottonet / syncthing.conf
Created January 14, 2016 15:56 — forked from wethinkagile/syncthing.conf
.config/upstart/syncthing.conf
#
# Upstart Configuration File for Ubuntu 14.10 - to run syncthing
#
# Created 27 Dec 2014 - initial file written based on version from
# Syncthing forums here:
# https://forum.syncthing.net/t/keeping-syncthing-running-ubuntu-upstart/30
#
#
# BEFORE USE: change:
#
@ottonet
ottonet / external.links.js
Last active November 17, 2016 15:10
Automatically add target="_blank" to external links with jQuery