Skip to content

Instantly share code, notes, and snippets.

@jklmnn
jklmnn / load-balance.sh
Created October 4, 2016 07:57 — forked from girst/load-balance.sh
Simple Linux Load Balancing with `iproute2`
#!/bin/bash
# Load balance multiple internet connections. Requires iproute2, awk and grep.
# (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2
# Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 ))
# Not much user error checking is done - only pass working network connections
# script needs root to work and at least two connections to be useful
[ $EUID -eq 0 -a $# -ge 2 ] || {
echo "Usage (as root): $0 iface1 iface2 ..." >&2
@jklmnn
jklmnn / gist:00d4859245bc7b825bdb
Last active December 15, 2015 09:31
ParkAPI Erfurt fixes.
diff --git a/park_api/cities/Erfurt.py b/park_api/cities/Erfurt.py
index 1b78de1..fe9b673 100644
--- a/park_api/cities/Erfurt.py
+++ b/park_api/cities/Erfurt.py
@@ -1,6 +1,8 @@
from bs4 import BeautifulSoup
from park_api.geodata import GeoData
from park_api.util import convert_date
+import re
+import datetime
@jklmnn
jklmnn / gist:95a9605c060a917f5859
Last active August 29, 2015 14:16
Löve version check.
LOVE_VERSION = "0.9.1"
if love._version ~= LOVE_VERSION then
--Print error message and quit.
end