Skip to content

Instantly share code, notes, and snippets.

View awkaplan's full-sized avatar

Alex Kaplan awkaplan

  • San Francisco, CA
View GitHub Profile
@awkaplan
awkaplan / campfire_permit.sh
Last active November 16, 2016 20:09
Get a CA campfire permit
#!/usr/bin/env
FN="your_firstname"
LN="your_lastname"
ADDR="your_address"
CITY="your_city"
ST="your_state"
ZIP="your_zip"
URL="http://www.preventwildfireca.org/pages/permit.aspx"
PERMIT=$(curl -s "${URL}" --data "&first_name=${FN}&last_name=${LN}&address=${ADDR}&city=${CITY}&state=${ST}&zip=${ZIP}&step=2" | grep pid | awk -F '"' '{print $6}')
PDF=$(curl -s "${URL}" --data "&step=4&pid=${PERMIT}" | grep pbox-print-input | awk -F '"' '{print $6}')

Keybase proof

I hereby claim:

  • I am awkaplan on github.
  • I am awkaplan (https://keybase.io/awkaplan) on keybase.
  • I have a public key ASCpbHjWMfSs1eM5QNGpRkgJYPT_UGQtihIC6IpdD_YEOwo

To claim this, I am signing this object: