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/python3 -u | |
# | |
# Copyright Dan Smith <dsmith+ustopo@danplanet.com> | |
# | |
# This downloads USGS topo GeoPDF maps in bulk, by default the current | |
# high-resolution 7.5-minute maps. For reference, all of Oregon comes to | |
# 96GB, all of Washington is 78G. For each state, the index will be downloaded | |
# into the root of the per-state directory, which is how you find which | |
# section map you need, by name. | |
# |
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/zsh | |
set +eux | |
# confirm you can access the internet | |
if [[ ! $(curl -Is http://www.google.com/ | head -n 1) =~ "200 OK" ]]; then | |
echo "Internet seems broken. Press Ctrl-C to abort or enter to continue." | |
read | |
fi |