Skip to content

Instantly share code, notes, and snippets.

View rrudolph's full-sized avatar

Rocky Rudolph rrudolph

View GitHub Profile
@rrudolph
rrudolph / Decode COVID smart health card data string.py
Last active September 8, 2021 18:27
For decoding the base64-encoded smart health card string from the COVID vaccine digital record qr code.
'''
Want to know exactly what is in your covid vaccine QR code issued to you?
Decode it with a QR code reader and paste it into the qr_data variable and run.
Credit to this post for the detailed explaination.
source: https://marcan2020.medium.com/reversing-smart-health-cards-e765157fae9
'''
import re
import base64
import zlib
@rrudolph
rrudolph / Export fire READ maps DDP individual pdf export.py
Created August 26, 2019 18:54
Automate map production with custom inset extents
# Purpose: to generate a mapbook for Channel Islands National Park. Originally this is for fire resource advisor maps,
# but can be adapted to any mapbook purpose. The main thing this script does beyond a normal data driven pages output
# is custom zooming to the island extent in the inset map. Without the custom zooming to each island, the inset map would
# be too small and would not make for a useable inset to reference where the user was looking at each grid cell.
# This script looks up the island three digit code within the page name of the data driven pages and zooms to that island
# based off the three digit code.
# Author: Rocky Rudolph, GISP, GIS Specialist, Channel Islands National Park, rocky_rudolph@nps.gov
# Date: 12/15/2017
print("Importing modules")