Skip to content

Instantly share code, notes, and snippets.

View barnaclebarnes's full-sized avatar

Glen Barnes barnaclebarnes

View GitHub Profile
$ sudo ifup lo
Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).
iptables-restore v1.4.4: invalid port/service `-j' specified
Error occurred at line: 27
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Failed to bring up lo.
<?xml version="1.0"?>
<osmChange generator="linz2osm" version="0.6">
<create generator="linz2osm" version="0.6">
<node id="-3" lat="-43.8159755909" lon="-176.473930798"/>
<node id="-4" lat="-43.8157966896" lon="-176.473141293"/>
<node id="-5" lat="-43.8152545492" lon="-176.473347834"/>
<node id="-6" lat="-43.8153022873" lon="-176.473709742"/>
<node id="-7" lat="-43.8152129624" lon="-176.473940237"/>
<node id="-8" lat="-43.8150401919" lon="-176.474006327"/>
<node id="-9" lat="-43.8142596085" lon="-176.47361268"/>
<?xml version="1.0"?>
<osmChange generator="linz2osm" version="0.6">
<create generator="linz2osm" version="0.6">
<node id="-3" lat="-43.8194645349" lon="-176.479691749"/>
<node id="-4" lat="-43.8193468258" lon="-176.479587868"/>
<node id="-5" lat="-43.8193457922" lon="-176.479586946"/>
<node id="-6" lat="-43.8193447647" lon="-176.479586012"/>
<node id="-7" lat="-43.8193437432" lon="-176.479585064"/>
<node id="-8" lat="-43.8191743432" lon="-176.479426393"/>
<node id="-9" lat="-43.8191738024" lon="-176.479425884"/>
@barnaclebarnes
barnaclebarnes / Sample TourML file.xml
Created April 10, 2010 07:43
Sample TourML file created from My Tours tour.
<?xml version="1.0" encoding="UTF-8"?>
<tour xsi:schemaLocation="http://www.imamuseum.org/TourML/1.0 TourML.xsd " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.imamuseum.org/TourML/1.0">
<Title>Buildings of the Acropolis</Title>
<Description>Take the tour of the 21 buildings of the Acropolis in Athens.</Description>
<Param value="images/800px-Acropolis3.JPG_thumb_small.jpeg" key="app-icon"/>
<Param value="images/800px-Acropolis3.JPG_cover_image.jpeg" key="splash-image"/>
<!-- Maps can either bet 'slippy' (google) or images (custom) -->
<Param value="custom" key="map-type"/>
<Param value="800px-AcropolisatathensSitePlan.png" key="map-image"/>
<Param value="3:30" key="length"/>
<osmChange generator="linz2osm" version="0.6">
<create generator="linz2osm" version="0.6">
<node id="-1" lat="-43.7842178005" lon="-176.798553766">
<tag k="LINZ:source_version" v="V16" />
<tag k="attribution" v="http://wiki.osm.org/wiki/Attribution#LINZ" />
<tag k="barrier" v="cattle_grid" />
<tag k="source_ref" v="http://www.linz.govt.nz/topography/topo-maps/" />
</node>
<node id="-2" lat="-43.8162038903" lon="-176.707689322">
<tag k="LINZ:source_version" v="V16" />
opening connection to nz.ckan.net...
opened
<- "GET /api/2/rest/package/international-position HTTP/1.1\r\nConnection: close\r\nAuthorization: some_secret_key\r\nHost: nz.ckan.net\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Fri, 23 Jul 2010 10:00:17 GMT\r\n"
-> "Server: Apache/2.2.9 (Debian) mod_wsgi/2.5 Python/2.5.2\r\n"
-> "Pragma: no-cache\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Content-Type: text/html; charset=utf-8\r\n"
-> "Cache-Control: no-cache, proxy-revalidate\r\n"
@barnaclebarnes
barnaclebarnes / TourML.xml
Created October 21, 2010 18:50
TourML Asset Format
//Current
<tourml:Asset tourml:id="icon-1" xsi:type="tourml:ImageAssetType" tourml:width="32" tourml:height="32">
<tourml:Source tourml:uri="./images/icon1.jpg" tourml:format="image/jpg" />
</tourml:Asset>
//New
<tourml:Asset tourml:id="icon-1" xsi:type="tourml:ImageAssetType">
<tourml:Source tourml:uri="./images/icon1.jpg" tourml:format="image/jpg" tourml:width="512" tourml:height="512" tourml:type="original" />
<tourml:Source tourml:uri="./images/icon1.jpg" tourml:format="image/jpg" tourml:width="32" tourml:height="32" tourml:type="thumbnail" />
<tourml:Source tourml:uri="./images/icon1.jpg" tourml:format="image/jpg" tourml:width="64" tourml:height="64" tourml:type="display" />
@barnaclebarnes
barnaclebarnes / gist:3829859
Created October 3, 2012 21:09
Capistrano deploy for WordPress
require 'railsless-deploy'
set :application, "[app name]"
set :use_sudo, false
#info for GIT
set :repository, "[git repo]"
set :scm, :git
set :branch, "master"
@barnaclebarnes
barnaclebarnes / gist:5314411
Created April 4, 2013 21:13
RFP Response Instructions

h1. RFP Response Instructions

Responses should be brief. Use links to external documentation where appropriate; single paragraph answers if possible; and bullet lists if applicable. Please provide one complete electronic copy in PDF format via email to somebody@example.com. Realestate.co.nz will work with all vendors to answer any questions and clarify requirements.

We are open to any alternative approaches that may suit our requirements.

@barnaclebarnes
barnaclebarnes / RTF version
Created July 30, 2013 11:16
Pandco conversion not taking into account centre text.
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}}
{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
\widowctrl\hyphauto
{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 ABC LIMITED\par}
{\pard \ql \f0 \sa180 \li0 \fi0 company number 11111\par}
{\pard \ql \f0 \sa180 \li0 \fi0 (the {\b "Company"})\par}
{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs32 SHAREHOLDER'S RESOLUTION TO REMOVE A DIRECTOR\par}
{\pard \ql \f0 \sa180 \li0 \fi0 In terms of section 122(2) of the Companies Act 1993 (the {\b "Act"})\par}
{\pard \ql \f0 \sa180 \li0 \fi0 RESOLVED in accordance with section 156 of the Act, that BOB be removed as a director of the Company with effect on and from the date of this resolution.\par}