Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.