Skip to content

Instantly share code, notes, and snippets.

@Firefishy
Firefishy / SACRS.md
Created September 7, 2016 09:04 — forked from gubuntu/SACRS.md
southern African coordinate reference systems (CRS) definitions in proj4 and WKT

Use this file to get the CRS definitions you need in southern Africa, particularly South Africa, Lesotho, Swaziland and Zimbabwe.

Most GIS software now implements the South African CRS (SACRS; incorrectly but popularly known as the "LO" system) which is based on south-oriented (or south-facing) transverse mercator (TMSO). The EPSG codes for these are:

  • odd numbers from 22275 to 22293 for the Cape datum
  • all numbers from 2046 to 2055 for the Hartebeesthoek94 or WGS84 datum.

If you have data in one of these south-oriented CRSs it will draw upside down and back to front in its native CRS but if you have on-the-fly transformation enabled, your layers will overlay your other data perfectly in whatever project CRS you choose. This feature request will result south-oriented coordinates and visualisation being more intutitive to GIS users.

Note on datums: Although there are a few metres difference between the WGS84 and Hartebeethoek94 datums, for all intents and purpos

#!/bin/bash
set -e
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der
wget https://letsencrypt.org/certs/letsencryptauthorityx2.der
@Firefishy
Firefishy / -
Last active August 29, 2015 14:12 — forked from anonymous/-
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start unicorn at boot time
# Description: Run input app server
### END INIT INFO
#!/bin/bash
set +e
tc qdisc del dev em1 root
tc qdisc add dev em1 root handle 1: htb default 10
tc class add dev em1 parent 1: classid 1:1 htb rate 1070kbps ceil 1070kbps #Overall Speed
tc class add dev em1 parent 1:1 classid 1:10 htb rate 1000kbps ceil 1000kbps #Default
tc class add dev em1 parent 1:1 classid 1:11 htb rate 60kbps ceil 100kbps # Slower
tc class add dev em1 parent 1:1 classid 1:12 htb rate 10kbps ceil 10kbps # Slowest
tc qdisc add dev em1 parent 1:10 handle 100: fq_codel #fq_codel on default
tc qdisc add dev em1 parent 1:11 handle 110: fq_codel #fq_codel on slower
@Firefishy
Firefishy / tail.php
Last active August 29, 2015 14:04 — forked from deizel/tail.php
<?php
if (isset($_GET['ajax'])) {
$sessionID = 'log'.$_GET['s'];
session_id($sessionID);
session_start();
$handle = fopen('/private/var/log/system.log', 'r');
if (isset($_SESSION['offset'])) {
$data = stream_get_contents($handle, -1, $_SESSION['offset']);
echo nl2br($data);
} else {