Skip to content

Instantly share code, notes, and snippets.

@kyhwana
Last active June 21, 2023 11:41
Show Gist options
  • Save kyhwana/73161a50d1b5019b18e3965b55a1a192 to your computer and use it in GitHub Desktop.
Save kyhwana/73161a50d1b5019b18e3965b55a1a192 to your computer and use it in GitHub Desktop.
Block RMS support letter signers
#replace "<PAT TOKEN>" with your github PAT token, tested with "Update ALL user data" PAT token.
curl -q https://rms-support-letter.github.io/ | grep "href" | grep "github.com" | grep -v "\/\[" | awk -F "https://github.com/" '{ print $2 }' | awk -F "\"\>" '{ print $1 }' | sed 's/\///g' | sed '/^$/d' | xargs -I USER curl -i -X PUT -H "Authorization: token <pat token here>" -H "Accept: application/vnd.github.v3+json" https://api.github.com/user/blocks/USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment