Skip to content

Instantly share code, notes, and snippets.

View MateoV's full-sized avatar

Matt Greene MateoV

  • West Bloomfield, MI
View GitHub Profile
@ian29
ian29 / macpg.sh
Last active December 21, 2015 22:49
easiest way to install postgres (and postgis) on mac os x
# !/bin/bash
# make sure homebrew is up-to-date and install some stuff
brew update
brew install postgres || brew upgrade postgres
brew install postgis || brew upgrade postgis
# if you dont have brew on your path yet
echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile
source ~/.bash_profile
@tristen
tristen / commands.sh
Last active March 9, 2021 20:07
topojson merge
ogr2ogr \
-f GeoJSON \
subunits.json \
nameofshapefile.shp
ogr2ogr \
-f GeoJSON \
boundaries.json \
nameofshapefile.shp
@tmcw
tmcw / fix.css
Created November 6, 2012 18:39
.marker-tooltip {
-webkit-transform:translate(0,0) !important;
position:absolute;
right:0px;
top:10px;
z-index:9999;
}
.marker-tooltip>div {
top:20px !important;
right:0px;
@tmcw
tmcw / reload.js
Created April 15, 2012 17:32
minimal live-reload server in node
// A super, super minimal LiveReload implementation in node.
// Relies on polling.
//
// Run as
//
// node reload.js ~/your/project/dir
//
// Add to your HTML like
//
// <script src='http://127.0.0.1:1337/'></script>
@alperdincer
alperdincer / wax_leaflet
Created February 20, 2012 06:56
Leaflet and Wax on Multiple Layer Interaction problem with IE 7 and 8
var MKN = {};
MKN.Globals = {};
MKN.Map.startMapping = function () {
var baseMapJson = {
tilejson: '1.0.0',
scheme: 'xyz',
tiles: ['http://10.211.55.2/_temp_service/tiles/basemap/{z}/{x}/{y}.png']
};
@lucasallan
lucasallan / install_postgis_osx.sh
Created September 6, 2011 21:03 — forked from klebervirgilio/install_postgis_osx.sh
Installing PostGIS on Mac OS X and Ubuntu
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
@juniorz
juniorz / install_postgis_osx.sh
Created July 14, 2011 03:49
Installing PostGIS on Mac OS X and Ubuntu
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"