This is companion code to this guide.
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 | |
# Inspired by an earlier version of Matthieu Petiteau's scripts at https://github.com/smallwat3r | |
echo "------------------------------------------------------" \ | |
"\nThis script is intended for Ubuntu/Debian Linuxes." \ | |
"\nIt needs to be run as root, on the server which DOMAIN points at." \ | |
"\nIt installs the letsencrypt client and gets/renews a certificate" \ | |
"\nfor the specified domain and email address." \ | |
"\n------------------------------------------------------" | |
export EMAIL=you@mailbox.org |
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 | |
usage() | |
{ | |
cat << EOF | |
usage: view_geojson.sh -f geojson_file.geojson | |
This script views a geojson file in a browser (default is google-chrome) | |
EOF | |
} |
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
""" | |
Read graphs in Open Street Maps osm format | |
Based on osm.py from brianw's osmgeocode | |
http://github.com/brianw/osmgeocode, which is based on osm.py from | |
comes from Graphserver: | |
http://github.com/bmander/graphserver/tree/master and is copyright (c) | |
2007, Brandon Martin-Anderson under the BSD License | |
""" |
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
""" | |
Read graphs in Open Street Maps osm format | |
Based on osm.py from brianw's osmgeocode | |
http://github.com/brianw/osmgeocode, which is based on osm.py from | |
comes from Graphserver: | |
http://github.com/bmander/graphserver/tree/master and is copyright (c) | |
2007, Brandon Martin-Anderson under the BSD License | |
""" | |
import xml.sax |
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 OR REPLACE FUNCTION voronoi(table_name text,geom_col text) returns SETOF record as $$ | |
############################################################################# | |
# | |
# Voronoi diagram calculator/ Delaunay triangulator | |
# Translated to Python by Bill Simons | |
# September, 2005 | |
# | |
# Additional changes by Carson Farmer added November 2010 | |
# |