Skip to content

Instantly share code, notes, and snippets.

View jwalgran's full-sized avatar

Justin Walgran jwalgran

  • Element 84
  • Phoenix, Arizona, USA
View GitHub Profile
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
var UploadToolbarItemIdentifier = @"UploadToolbarItemIdentifier";
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
var UploadToolbarItemIdentifier = @"UploadToolbarItemIdentifier";
/*
* AppController.j
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
var UploadToolbarItemIdentifier = @"UploadToolbarItemIdentifier";
$ ./utils/run
Apache CouchDB 0.11.0a811576 (LogLevel=info) is starting.
=CRASH REPORT==== 4-Sep-2009::20:17:46 ===
crasher:
initial call: couch_event_sup:init/1
pid: <0.79.0>
registered_name: []
exception exit: {{badmatch,
{'EXIT',
@jwalgran
jwalgran / postgis-dev-provision.sh
Last active December 15, 2015 07:29
A shell script to provision the PostGIS 2.0 dependencies on Ubuntu 12.04.
apt-get install -y build-essential autoconf libtool subversion git curl wget
apt-get install -y openssh-server
apt-get install -y python-software-properties
add-apt-repository -y ppa:keithw/mosh
apt-get update
apt-get install -y mosh
# Postgres
@jwalgran
jwalgran / cdg2mp4.sh
Created February 1, 2014 15:39
ffmepg command to make an mp4 form a csg
ffmpeg -threads 2 -i purplerain.cdg -i purplerain.mp3 -b:v 1200k -vcodec mpeg4 -acodec libfaac -preset slower -qp 0 -b 450k -sws_flags print_info+neighbor -s 640x480 -r 30 -y purplerain.mp4
@jwalgran
jwalgran / Cons.scala
Last active August 29, 2015 13:56
A proposed addition to geotrellis.logic
package geotrellis.logic
import geotrellis._
object Cons {
def apply[A](opList:Op[List[A]], op:Op[A]):Op[List[A]] = {
for (l <- opList;
a <- op) yield a :: l
}
@jwalgran
jwalgran / fzip.py
Last active August 29, 2015 14:03
Linewise merge multiple files
#!/usr/bin/env python
import argparse
from glob import glob
def unique_file_list(*glob_strings):
file_lists = map(glob, glob_strings)
return list(set([item for sublist in file_lists for item in sublist]))
@jwalgran
jwalgran / keybase.md
Created October 2, 2014 00:33
Keybase proof

Keybase proof

I hereby claim:

  • I am jwalgran on github.
  • I am jwalgran (https://keybase.io/jwalgran) on keybase.
  • I have a public key whose fingerprint is 47D7 2769 469F 5A31 7C70 EDA8 997C FC66 D67F 2779

To claim this, I am signing this object:

@jwalgran
jwalgran / nlcd_2011_to_arg.yml
Created April 16, 2015 06:14
An Ansible playbook that downloads the 2011 National Land Cover Database and converts it to Azavea Raster Grid format
# Requires about 40GB of available disk space under /var
---
- name: Install tools
apt: pkg={{ item }} state=present
with_items:
- "zip"
- "unzip"
- name: Install Geospatial libraries
apt: pkg={{ item }} state=present