Skip to content

Instantly share code, notes, and snippets.

View Mindgames's full-sized avatar
:octocat:

Mathias Åsberg Mindgames

:octocat:
View GitHub Profile
@Mindgames
Mindgames / a.current.js
Created December 7, 2016 11:58 — forked from ryanve/a.current.js
Add `.current` class to anchors that link to the current URL.
//gist.github.com/ryanve/6153436
(function(anchors, url, i, a) {
while ((a = anchors[i++]) && a.classList)
a.href === url && a.classList.add('current');
}(document.getElementsByTagName('a'), location.href, 0));
@Mindgames
Mindgames / docker_test_haproxy.cfg
Last active January 1, 2016 20:14
Example haproxy.cfg file for a Docker test installation of WordPress containers [http://cloudstore.interoute.com/main/knowledge-centre/blog/coreos-docker-vdc-part3]
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
user haproxy
group haproxy
defaults
log global
mode http
option httplog