Skip to content

Instantly share code, notes, and snippets.

Steve Bennett stevage

Block or report user

Report or block stevage

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stevage /
Last active Aug 29, 2015
Install Mosh on Ubuntu
sudo apt-get install -y python-software-properties && sudo add-apt-repository ppa:keithw/mosh && sudo apt-get update && sudo apt-get install -y mosh
View gist:5acad416bf43fa25b966
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAuKywKeAWFTGc0j3QFxwRbg4BEYLlZksRhp3BJengRP4bDR3r60HqFlwp+XlbB/U3Fsgh/2x1Pany/RvxFytMhDKg+Vvxdzt1MLcXC5p2/zEL4KV98ODbYb+VuOPotL5+8yM4lkX5re7wyZnngB9RgfSU1rhWb4UxuSkfmeeoOVU=
stevage / region_fid.sld
Created Aug 28, 2015
Region mapping style layer definition for TerriaJS
View region_fid.sld
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation=" StyledLayerDescriptor.xsd"
<!-- a Named Layer is the basic building block of an SLD document -->
stevage / index.html
Created Nov 7, 2015
Not just copyright
View index.html
<!DOCTYPE html>
iframe { width: 100%; height: 700px; }
body { margin: 0; padding: 0; }
<iframe src=""></iframe>
stevage / swagger.yaml
Created Nov 16, 2015
PTV realtime API swagger YAML
View swagger.yaml
swagger: '2.0'
# This is your document metadata
version: "2.1.0"
title: PTV Timetable API (community portal)
description: |
This is Open Knowledge Australia's version of Public Transport Victoria's <a href="">Timetable API</a> documentation, built with [Swagger]( It was created by <a href="">Steve Bennett</a> (, <a href="">@stevage1</a>) for Open Knowledge Australia. It was not funded or supported by PTV, but was based on the official documentation using the CC-BY licence.
The Timetable API 2.0.0 lets you find stations and stops in a given area, query the next few departures from a stop, and the stops on a given line or service. Version 2.1.0, released on 28 May 2015 adds realtime stop arrivale times for trams and some buses, and disruption data. It does not provide vehicle location tracking, spatial data other than st
View vic_abs.json
// REQUIRED (DataPackage): a url-compatible short name ("slug") for the package
"name": "Victoria-ABS",
// REQUIRED (DataPackage): a human readable title for the package
"title": "Revenue, Expenses, Assets, Liabilities for Victoria (Australia) 2005-14",
"sources": [ {
"name": "ABS",
stevage / index.html
Last active Mar 31, 2016 — forked from djtfmartin/index.html
LeafletJS and ALA occurrence layer
View index.html
<!DOCTYPE html>
<title>LeafletJS and ALA occurrence layer</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="" />
<div id="map" style="height: 800px"></div>
<script src=""></script></head>
View patchfile
--- Source/C/NCSUtil/NCSPrefsXML.cpp.ori 2016-04-08 08:28:13.365541000 +0000
+++ Source/C/NCSUtil/NCSPrefsXML.cpp 2016-04-08 08:28:58.665541000 +0000
@@ -32,7 +32,11 @@
} else {
char *pHomeDir = getenv("HOME");
if( pHomeDir ) {
+ sUserPrefsFile.Format( NCS_T("%s%ls"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
sUserPrefsFile.Format( NCS_T("%s%s"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") );
View index.html
<link rel="stylesheet" href="" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="" />
<script src=""></script>
<script src=""></script>
View index.html
.tableauPlaceholde { width: 50% !important; height: 811px; }
<body style="background:gray;">
This is...a test.
You can’t perform that action at this time.