Skip to content

Instantly share code, notes, and snippets.

View cspanring's full-sized avatar

Christian Spanring cspanring

View GitHub Profile
#!/bin/bash
cd ./node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext
npm install 'git+https://github.com/facebook/regenerator.git#45829598be68fa4cb10f86b5ca13aa7284aa6bc8'
# easy_install boto
# You will also need:
# - A .pem keyfile generated using the Amazon web interface to create new instances
# - The secret and access keys created from the
# The only pre-reqs are having created a keypair (.pem file)
# via the amazon web interface and knowing the AWS key and secret
#
# Usage:
# export AWS_ACCESS_KEY_ID='blahblah'
# export AWS_SECRET_ACCESS_KEY='blebleble'
{
category : "category_name", // Required Single category from (http://opencivicdata.com/#categories-wg)
meta : { // Optional: Simple Dublin Core Metadata Element Set
title : "",
creator : "",
subject : "",
description : "",
publisher : "",
contributor : "",
date : "",
@springmeyer
springmeyer / mapnik-linux-fonts.txt
Created November 27, 2012 21:25
default fonts available on stock ubuntu
$ node
> require('mapnik').fonts()
[ 'DejaVu Sans Bold',
'DejaVu Sans Bold Oblique',
'DejaVu Sans Book',
'DejaVu Sans Condensed',
'DejaVu Sans Condensed Bold',
'DejaVu Sans Condensed Bold Oblique',
'DejaVu Sans Condensed Oblique',
'DejaVu Sans ExtraLight',
server {
listen 80;
server_name mydomain.edu localhost;
location /static {
alias /www/geonode/src/GeoNodePy/geonode/static_root;
}
#GEOSERVER
@bmount
bmount / qgis_libs.sh
Created February 7, 2013 00:05
reminder about installing QGIS build from here: http://qgis.dakotacarto.com/ with a combination of libraries from source and homebrew. Leave a comment if you notice something barbaric (or just bad.)
sudo mkdir -p /Library/Frameworks/GDAL.framework/Versions/1.9/
sudo ln -s /usr/local/lib/libgdal.dylib /Library/Frameworks/GDAL.framework/Versions/1.9/GDAL
sudo mkdir -p /Library/Frameworks/PROJ.framework/Versions/4/
sudo ln -s /usr/local/Cellar/proj/4.8.0/lib/libproj.dylib /Library/Frameworks/PROJ.framework/Versions/4/PROJ
# did not work: sudo ln -s `pwd`/libgeos.dylib /Library/Frameworks/GEOS.framework/Versions/3/GEOS
# did work:
# $PWD is /usr/local/Cellar/geos/3.3.6/lib
sudo ln -s `pwd`/libgeos_c.1.dylib /Library/Frameworks/GEOS.framework/Versions/3/GEOS
sudo mkdir -p /Library/Frameworks/SQLite3.framework/Versions/3/
sudo ln -s /usr/local/Cellar/sqlite/3.7.15/lib/libsqlite3.0.8.6.dylib /Library/Frameworks/SQLite3.framework/Versions/3/SQLite3
@wycats
wycats / app.js
Last active February 11, 2016 16:08
App.Router.map(function() {
this.resource('post', { path: '/posts/:post_id' });
});
App.PostRoute = Ember.Route.extend({
model: function(params) {
return this.store.find('post', params.post_id);
}
});
@boazsender
boazsender / open-civic-data.json
Created February 5, 2011 23:29
Concept for open civic data scheme for describing geospacial and temporal civic data (crime, weather, protests, public spaces, public housing projects, public transportation paths, public transportation schedules, etc).
{
category : "", // Required Single category from (http://opencivicdata.com/#categories-wg)
properties : {} // Required Common bin for domain specific properties from from (http://opencivicdata.com/#properties-wg)
start : "", // Optional RFC3339DateTime optional start date
end : "", // Optional RFC3339DateTime optional end date
geometry : {} // Optional Geojson location feature (http://geojson.org/geojson-spec.html)
}
@max-mapper
max-mapper / readme.md
Last active August 8, 2016 18:45
simple 4mb buffer proxy benchmarks

simple 4mb buffer proxy benchmarks

the goal: to do fast virtual host routing, e.g. to have a single process on a machine listening on port 80 and proxying data based on HTTP Host to other non-port-80 web processes on the same machine

many people use nginx for this because nginx is faster than node is currently for data-heavy applications (see below)

about these benchmarks

they use the JS proxies from https://github.com/substack/bouncy/tree/master/bench

@cspanring
cspanring / python.rb
Created October 13, 2016 18:16
Python 2.7.10 homebrew formula
class Python < Formula
desc "Interpreted, interactive, object-oriented programming language"
homepage "https://www.python.org"
head "https://hg.python.org/cpython", :using => :hg, :branch => "2.7"
url "https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz"
sha256 "eda8ce6eec03e74991abb5384170e7c65fcd7522e409b8e83d7e6372add0f12a"
revision 2
bottle do
revision 3