Skip to content

Instantly share code, notes, and snippets.

View wizardishungry's full-sized avatar
🐫
Copyright 1987-2013, Larry Wall

Jon Williams wizardishungry

🐫
Copyright 1987-2013, Larry Wall
View GitHub Profile
#!/bin/sh
# Convert ANSI (terminal) colours and attributes to HTML
# Licence: LGPLv2
# Author:
# http://www.pixelbeat.org/docs/terminal_colours/
# Examples:
# ls -l --color=always | ansi2html.sh > ls.html
# git show --color | ansi2html.sh > last_change.html
This file has been truncated, but you can view the full file.
étui
études
étude
étagères
étagère
épées
épée
émigrés
émigré
élan

Download and convert data from NYC open data portal

curl -o nynta.zip "https://nycopendata.socrata.com/api/geospatial/cpf4-rkhq?method=export&format=Shapefile"
cd nynta_12c

ogr2ogr can't deal with the projection directly. Replace content of nynta.prj with the following projection string:

PROJCS["NAD_1983_StatePlane_New_York_Long_Island_FIPS_3104_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["lambert_conformal_conic_2sp"],PARAMETER["False_Easting",984250.0],PARAMETER["False_Northing",0.0],PARAMETER["longitude_of_center",-74.0],PARAMETER["Standard_Parallel_1",40.66666666666666],PARAMETER["Standard_Parallel_2",41.03333333333333],PARAMETER["latitude_of_center",40.16666666666666],UNIT["Foot_US",0.3048006096012192]]

@wizardishungry
wizardishungry / tag.rb
Created March 26, 2014 01:24
Ruby glue to commit and tag a bunch of tarballs
#!/usr/bin/env ruby
#usage:
# un-tar mpsh tars to directories and then
# ./tag.rb mpsh-1.0 mpsh-1-1 mpsh-1-2 mpsh-1-2-1 mpsh-1-3 mpsh-1-3-1 mpsh-1-4
dir = "mpsh"
author = "Dave Fischer <dave@cca.org>"
ARGV.each do|a|
a = a.sub /\/$/, ''
if File.directory?(a) then
<?php
namespace Money;
class Bitcoin {
#const BITCOIN_NODE = '173.224.125.222'; // w001.mo.us temporary
const BITCOIN_NODE = '50.97.137.37';
static private $pending = array();
public static function update() {
<?php
$username = 'xxxxx';
$password = 'xxxxx';
$url = "xxxx/rest/api/2/issue/";
$data = array(
'fields' => array(
Aphex Twin - Didgeridoo
Ashra - Sunrain
Basic Channel (Cyrus) - Enforcement
Black Dice - This Dream is Going Down
Boredoms - Super Going
Brian Eno - The True Wheel
Can - Bel Air
Chris & Cosey - Walking Through Heaven
Daniel Wang - Let's Go To Mars
Don Cherry - Brown Rice
@wizardishungry
wizardishungry / puns.txt
Created October 29, 2013 15:29
Puns that my boss makes about UNIX commands.
"Suffering from Cron's disease"
"That's what she sed"
@wizardishungry
wizardishungry / 2013-10-23-sitebag.md
Last active December 26, 2015 06:59
notes for sitebag dump1090 talk
@wizardishungry
wizardishungry / commands.sh
Created October 23, 2013 02:06
list of new commands in OSX Mavericks
/usr/bin/a2p5.16
/usr/bin/afida
/usr/bin/btmmdiagnose
/usr/bin/c2ph5.16
/usr/bin/config_data5.16
/usr/bin/corelist5.16
/usr/bin/cpan2dist5.16
/usr/bin/cpan5.16
/usr/bin/cpanp-run-perl5.16
/usr/bin/cpanp5.16