This file contains hidden or 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
shp2pgsql -s 4326 -d -g the_geom shapefilename.shp shapefilename |psql -U username --password -p 5432 -h reallylonghostnametoamazonaws.com dbname |
This file contains hidden or 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
#from ubuntu installation | |
sudo apt-get install dkms build-essential linux-headers-generic gcc make | |
#for ubuntu 14.04 it may be necessary to install the following...when prompted choose yes for new install. | |
sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11 |
This file contains hidden or 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
#upload python script here https://github.com/glw/chicagodivvybikes.git to download divvy bike station data. output it geojson file. I choose geojson so that I could re-use this script for other projects that will require geojson. | |
#geojson to shpfile | |
ogr2ogr -f "ESRI Shapefile" divvy_stations.shp divvybikestations.geojson | |
#shpfile to sql | |
shp2pgsql -s 4326 -I divvy_stations.shp divvy_stations > divvy_stations.sql | |
#Download Chicago OSM streets: XML format | |
wget http://osm-extracted-metros.s3.amazonaws.com/chicago.osm.bz2 |
This file contains hidden or 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
# recusively copy files from sub-directories into the parent | |
$ find ./recursive_search/ -name '*.txt' -exec cp --backup=numbered -t ./ {} + | |
========================================================================================================== | |
#how to create a install script http://askubuntu.com/questions/47404/how-do-i-make-post-install-scripts | |
=========================================================================================================== | |
#how to find install name |
NewerOlder