Skip to content

Instantly share code, notes, and snippets.

@oeon
oeon / Ubuntu s3fs install
Created November 1, 2012 20:53 — forked from matthewhudson/Ubuntu s3fs install
Ubuntu s3fs install & dependencies.
# Install prerequisites before compiling:
apt-get install build-essential
apt-get install libfuse-dev
apt-get install fuse-utils
apt-get install libcurl4-openssl-dev
apt-get install libxml2-dev
apt-get install mime-support
# Download and Install
wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz
@oeon
oeon / gist:3040136
Created July 3, 2012 14:39 — forked from zhm/gist:2005091
gdal configure
./configure \
--with-local=yes \
--prefix=/usr/local/gdal191 \
--with-threads \
--with-libtool \
--with-libtiff=internal \
--with-geotiff=internal \
--with-pcraster=internal \
--with-pcidsk=internal \
--with-bsb \
@oeon
oeon / gist:1263089
Created October 4, 2011 22:52 — forked from frewsxcv/gist:1262862
San Luis Obispo translation file (ogr2osm)
def translateAttributes(attrs):
if not attrs:
return
tags = {}
if int(attrs['SPD_PST']) > 0:
tags.update({'maxspeed':attrs['SPD_PST'] + ' mph'})
if attrs['FULLNAME']:
tags.update({'name:fullname':attrs['FULLNAME'],'source:maxspeed':'sign' })