Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
; Firewall Rule from Context Menu
; Created by Scott Evtuch
; https://gist.github.com/ScottEvtuch/b2f2f84244af8219d7cb3be504b3c7cf
;
; MIT License
;
; Copyright (c) 2017 Scott Evtuch
;
#!/usr/bin/env bash
# https://code.google.com/p/chromium/issues/detail?id=226801
url='https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT';
curl -#s "${url}" | \
base64 --decode | \
sed '/^ *\/\// d' | \
sed '/^\s*$/d' > hsts.json;