Created
January 25, 2025 04:11
-
-
Save guessi/017f5c5adf138b1d4766d14bc9fb32bc to your computer and use it in GitHub Desktop.
Purge image cached by Github
This file contains hidden or 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 | |
# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls | |
REPO_URL="https://github.com/guessi/cloudtrail-cli" | |
curl -fsSL ${REPO_URL} | \ | |
sed -n '/<script .*>/,/<\/script>/p' | \ | |
grep -oE 'https?://camo.githubusercontent.com/[a-f0-9]+/[a-f0-9]+' | \ | |
xargs -n 1 curl -X PURGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment