Last active
June 21, 2023 11:41
-
-
Save kyhwana/73161a50d1b5019b18e3965b55a1a192 to your computer and use it in GitHub Desktop.
Block RMS support letter signers
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
#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