Skip to content

Instantly share code, notes, and snippets.

@travisbrown
Forked from kyhwana/blocksigners.sh
Created March 28, 2021 21:33
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 travisbrown/cec7474818ba67072dfc09bd968ed072 to your computer and use it in GitHub Desktop.
Save travisbrown/cec7474818ba67072dfc09bd968ed072 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" | 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