Skip to content

Instantly share code, notes, and snippets.

@borntyping
Forked from kyhwana/blocksigners.sh
Last active March 29, 2021 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntyping/c8e27ea98572cf0aebc5068ae374ef63 to your computer and use it in GitHub Desktop.
Save borntyping/c8e27ea98572cf0aebc5068ae374ef63 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 "<li>" | 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>" -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