Skip to content

Instantly share code, notes, and snippets.

View msharp's full-sized avatar

max sharples msharp

  • Melbourne, Australia
View GitHub Profile
/*
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod
May contain errors where latitude and longitude are off. Use at own non-validated risk.
*/
SET NAMES utf8;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS postcodes_geo;

tmux cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@msharp
msharp / pingdom_downtime_calculator.rb
Created August 24, 2011 04:19 — forked from mattfitzgerald/gist:1167255
pingdom downtime calculator
def calculate_downtime_minutes
check_id = 387085
user = "alerts@admin.mysquawkbox.com"
pass = "***"
key = "***"
today = DateTime.now.to_date
last_sunday = today - today.wday