This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# setup repository | |
sudo wget -qO- http://apt.opengeo.org/gpg.key | apt-key add - | |
sudo chmod 655 /etc/apt/sources.list | |
sudo echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list | |
sudo chmod 644 /etc/apt/sources.list | |
sudo apt-get update | |
# install opengeo suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# install Geoserver on Ubuntu Maverick 10.10 | |
# note: Geoserver is proxied through apache so port 8080 is not used | |
# | |
# @spara 11/15/10 | |
# | |
# setup sources | |
sudo sh -c "echo ' ' >> /etc/apt/sources.list" | |
sudo sh -c "echo 'deb http://us.archive.ubuntu.com/ubuntu/ maverick multiverse' >> /etc/apt/sources.list" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
################################################################ | |
# | |
# Amazon EC2 PostGIS 1.5 on RAID10,f2 EBS Array Build Script | |
# | |
# Complete Rip off of: | |
# http://github.com/tokumine/ebs_raid_postgis/blob/master/build.sh | |
# http://alestic.com/2009/06/ec2-ebs-raid | |
# http://biodivertido.blogspot.com/2009/10/install-postgresql-84-and-postgis-140.html | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#install node.js | |
sudo apt-get upgrade | |
sudo apt-get -y install git | |
sudo apt-get -y install gcc g++ | |
git clone --depth 1 https://github.com/joyent/node.git | |
cd node/ | |
export JOBS=2 | |
mkdir ~/local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
states = ["AL","AK","AZ","AR","CA","CO","CT","DE","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY"] | |
states.each do |state| | |
case state | |
when "AL" | |
counties = ["Autauga"," Baldwin"," Barbour"," Bibb"," Blount"," Bullock"," Butler"," Calhoun"," Chambers"," Cherokee"," Chilton"," Choctaw"," Clarke"," Clay"," Cleburne"," Coffee"," Colbert"," Conecuh"," Coosa"," Covington"," Crenshaw"," Cullman"," Dale"," Dallas"," DeKalb"," Elmore"," Escambia"," Etowah"," Fayette"," Franklin"," Geneva"," Greene"," Hale"," Henry"," Houston"," Jackson"," Jefferson"," Lamar"," Lauderdale"," Lawrence"," Lee"," Limestone"," Lowndes"," Macon"," Madison"," Marengo"," Marion"," Marshall"," Mobile"," Monroe"," Montgomery"," Morgan"," Perry"," Pickens"," Pike"," Randolph"," Russell"," Shelby"," St. Clair"," Sumter"," Talladega"," Tallapoosa"," Tuscaloosa"," Walker"," Washingt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"place" : { | |
"properties" : { | |
"geometry": { | |
"properties": { | |
"coordinates": { | |
"type": "geo_point" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first geo_point mapping: map1.json | |
"place" : { | |
"properties" : { | |
"geometry": { | |
"properties": { | |
"coordinates": { | |
"type": "geo_point" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# converts a shapefile to an elasticsearch geo_point type with this mapping: | |
# | |
# { | |
# "zipcode" : { | |
# "properties" : { | |
# "geometry": { | |
# "properties": { | |
# "coordinates": { | |
# "type": "geo_point" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"category":"Administrative", | |
"category_id":"10100100", | |
"type":"Region", | |
"subcategory":"Consolidated City" | |
}, | |
{ | |
"category":"Administrative", | |
"category_id":"10100101", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
OlderNewer