Skip to content

Instantly share code, notes, and snippets.

@lgarron
Last active July 18, 2024 00:57
Show Gist options
  • Save lgarron/73cf22ed381ef9786739ee5abd816c59 to your computer and use it in GitHub Desktop.
Save lgarron/73cf22ed381ef9786739ee5abd816c59 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Setup script for a checkout of the Chromium HSTS preload list.
# Source -> medium.com/p/8c8896f5cef3 and gist.github.com/hemanth/7611535
echo "---- Creating folder and initializing a git repository. ----"
mkdir chromium-hsts && cd chromium-hsts
git init
echo "---- Adding chromium remote and initializing sparse checkout of /net/http. ----"
git remote add origin https://chromium.googlesource.com/chromium/src
git config core.sparsecheckout true
echo net/http >> .git/info/sparse-checkout
echo "---- Pulling Code ----"
git pull origin master --depth 1
echo "See https://www.chromium.org/developers/contributing-code"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment