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
[ | |
{ | |
"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 |
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
possible Shmoocon January 27-29 - no tickets | |
flight/hotel booked Strata February 28-March 1st - done | |
longshot SXSW Interactive March 9-13 - nope | |
flight/hotel booked WhereConf April 2-4 - presentation accepted | |
AR Standards Meeting March 19-20, Austing - purchased | |
flight/hotel booked FOSS4G North America April 10-12 - presentation accepte/moderating panel | |
definite ARE2012 May 8-9 - Ignite talk accepted | |
definite Google I/O June 27-29 | |
flight/hotel booked HOPE Number Nine July 13-15 | |
longshot FOSS4G Beijing??? August/Sept |
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
CREATE TABLE geo_header_staging(data text); | |
copy geo_header_staging FROM '/path/to/dcgeo2010.sf1' DELIMITER AS '|'; |
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
paste <(awk '{print $1;}' gtemp) <(cut -f1 gfields) |
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
awk '{total+=$0}END{print total}' file |
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
awk '{total+=$0}END{print total}' file |
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
sed -i '' -e's/apples/oranges/' file.txt |