Skip to content

Instantly share code, notes, and snippets.

View drscream's full-sized avatar
🕶️
Focusing

Thomas Merkel drscream

🕶️
Focusing
View GitHub Profile
bg = '#000000';
black = '#282828';
red = '#cc241d'; // red
green = '#98971a'; // green
yellow = '#d79921'; // yellow
blue = '#458588'; // blue
magenta = '#b16286'; // pink
cyan = '#689d6a'; // cyan
white = '#a89984'; // light gray
lightBlack = '#928374'; // medium gray
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
REPO=$(pwd)
if [ $# -eq 1 ]; then
REPO="$1"
pkgin install isc-dhcpd
#####
cat > /opt/local/etc/dhcp/dhcpd.conf <
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet6 fdad:e34f:f1d0::/64 {
@drscream
drscream / latitude.py
Created December 7, 2012 19:12 — forked from wiedi/latitude.py
Convert a Google Latitude JSON-File to a GPX-File
#!/usr/bin/env python
import os
import simplejson
import subprocess
import datetime
f = open('latitude.json', 'r')
locdata = simplejson.loads(f.read());
fd = open('latitude.gpx', 'w')