Last active
July 18, 2024 00:57
-
-
Save lgarron/73cf22ed381ef9786739ee5abd816c59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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