Skip to content

Instantly share code, notes, and snippets.

@guessi
Created January 25, 2025 04:11
Show Gist options
  • Save guessi/017f5c5adf138b1d4766d14bc9fb32bc to your computer and use it in GitHub Desktop.
Save guessi/017f5c5adf138b1d4766d14bc9fb32bc to your computer and use it in GitHub Desktop.
Purge image cached by Github
#!/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