Archive all projects on Github
I'm switching most code off Github to GitLab and Sourcehut. To do so I installed the Github cli, authenticated then ran:
gh repo list <username> --limit 1000 | awk '{NF=1}1' | while read in; do gh repo archive -y "$in"; done