Skip to content

Instantly share code, notes, and snippets.

@ThomasThoren
ThomasThoren / _README.md
Created Jan 23, 2017
QGIS keyboard shortcuts
View _README.md

Keyboard shortcuts for QGIS. These have been tested on a Mac, but should also work on Windows.

Open "Settings" -> "Configure Shortcuts..." menu to see full list.

Shortcut Action
Shift + + i Identify features tool
Shift + + h Hide all layers
Shift + + u Show all layers
Shift + + h Zoom fit current layer
@ThomasThoren
ThomasThoren / .block
Last active Dec 5, 2019
New York Times map reproduction
View .block
height: 800
@ThomasThoren
ThomasThoren / Makefile
Last active Sep 30, 2019
Shaded relief map
View Makefile
.PHONY: all clean
.SECONDARY:
# Download 90-meter SRTM tiles for Louisiana
zip/srtm_%.zip:
@mkdir -p $(dir $@)
@curl -sS -o $@.download 'http://srtm.csi.cgiar.org/SRT-ZIP/SRTM_V41/SRTM_Data_GeoTiff/$(notdir $@)'
@mv $@.download $@
View README.md

Uses a small inset map to provide context for the larger, zoomed map. The same bounding coordinates for the raster image are used to create the reference box in the inset map.

@ThomasThoren
ThomasThoren / _README.md
Last active Mar 10, 2019
Public records requests
View _README.md
View Makefile
# Default Makefile
# Save as ~/.Makefile or similar and use as starting point for new Makefiles.
PROJECT_DIR=`pwd`
# Keep intermediate files
.SECONDARY:
.PHONY: help
View _README.md

jq

Docs: https://stedolan.github.io/jq/

Download sample JSON data from the City of Austin. This contains traffic light data.

$ curl -o data.json https://data.austintexas.gov/resource/fs3c-45ge.json
View _README.md
View _README.md

AWSCLI

sync

aws s3 sync \
  /home/tom/ \
  s3://mybucket/ \
  --exclude "*.DS_Store"
You can’t perform that action at this time.