http://trac.mapnik.org/wiki/UbuntuInstallation
sudo apt-get install -y g++ cpp \
python-dev libxml2 libxml2-dev \
libfreetype6 libfreetype6-dev \
libjpeg62 libjpeg62-dev \
libltdl7 libltdl-dev \
libpng12-0 libpng12-dev \
http://trac.mapnik.org/wiki/UbuntuInstallation
sudo apt-get install -y g++ cpp \
python-dev libxml2 libxml2-dev \
libfreetype6 libfreetype6-dev \
libjpeg62 libjpeg62-dev \
libltdl7 libltdl-dev \
libpng12-0 libpng12-dev \
| /TileMill/bin/carto map.mml > map.xml | |
| python render_tiles.py map.xml .tiles/ 42.05 -88 41.6 -87.5 11 16 2 |
| server { | |
| listen 80; | |
| server_name www.opendata-map.org; | |
| root /var/www/opendata-map.org; | |
| access_log /var/log/nginx/opendata-map.access.log; | |
| error_log /var/log/nginx/opendata-map.error.log debug; | |
| # GEOSERVER PROXY & CACHE | |
| location /geoserver { | |
| proxy_pass http://127.0.0.1:8080/geoserver; |
| server { | |
| listen 80; | |
| server_name www.opendata-map.org; | |
| root /var/www/opendata-map.org; | |
| access_log /var/log/nginx/opendata-map.access.log; | |
| error_log /var/log/nginx/opendata-map.error.log debug; | |
| # GEOSERVER PROXY & CACHE | |
| location /geoserver { | |
| proxy_pass http://127.0.0.1:8080/geoserver; |
| from redistricting.apps.features.models import CensusBlock, CensusTract, CensusCounty, DataBlock | |
| from redistricting.utils import gmerc | |
| from django.http import HttpResponse, Http404, HttpResponseForbidden | |
| from django.contrib.gis.geos import GEOSGeometry | |
| from django.shortcuts import render_to_response | |
| from django.template.loader import render_to_string | |
| from django.template import RequestContext |
| L.TileLayer.TileJSON = L.TileLayer.Canvas.extend({ | |
| options: { | |
| debug: false | |
| }, | |
| tileSize: 256, | |
| initialize: function (options) { | |
| L.Util.setOptions(this, options); |
| sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev proj libjson0-dev xsltproc docbook-xsl docbook-mathml gettext postgresql-contrib-9.1 pgadmin3 | |
| sudo apt-add-repository ppa:olivier-berten/geo | |
| sudo apt-get update | |
| sudo apt-get install libgdal-dev | |
| # Its looks like: | |
| # $ gdal-config --version | |
| # 1.9.0 | |
| # $ geos-config --version |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: supervisord | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Example initscript | |
| # Description: This file should be used to construct scripts to be | |
| # placed in /etc/init.d. |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |