Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get the latest version of in an automated way and convert it to proper JSON
#!/usr/bin/env bash
curl -#s "${url}" | \
base64 --decode | \
sed '/^ *\/\// d' | \
sed '/^\s*$/d' > hsts.json;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment