Skip to content

Instantly share code, notes, and snippets.


Sophia Parafina spara

  • Count Down City
  • Twitter @spara
View GitHub Profile
# Settings: edit these as needed
# first change into TileMill code directory
cd /Applications/
# hint: use to get bounds in lon/lat
myobie / mountain-lion-brew-setup.markdown
Created Feb 18, 2012
Get Mountain Lion and Homebrew to Be Happy
View mountain-lion-brew-setup.markdown

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

View gist:1004704
curl -XPUT 'http://localhost:9200/twitter/'
curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '{
"tweet" : {
"properties" : {
"pin": {
"properties": {
"location": {
"type": "geo_point"
Import Yahoo! GeoPlanet in to MongoDB.
This creates a geoplanet collection containing documents like this:
'_id': woeid,
'name': name,
'iso': iso,
'language': language,