Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"io/ioutil"
"log"
"math"
"strconv"
"strings"
)
@victorgs
victorgs / unfollow-github.sh
Last active July 1, 2020 12:14
Unfollow everyone who you currently follow on GitHub
# it does not manage pagination
# just run it until you do not see more unfollowing messages
# token needs user:follow permissions
TOKEN=$1
USER_LIST=$(curl -sS -H "Authorization: token $TOKEN" https://api.github.com/user/following | grep login | awk NF | awk -F'"' '{print $4}')
for user in $USER_LIST; do

Keybase proof

I hereby claim:

  • I am victorgs on github.
  • I am victorgs (https://keybase.io/victorgs) on keybase.
  • I have a public key whose fingerprint is BFDE AC3C B36A 83E1 A3DC EBF0 0E84 79DF 1780 05AB

To claim this, I am signing this object:

#262627,#1a1a1a,#FFFFFF,#262627,#1A1A1A,#FFFFFF,#FFFFFF,#262627
for i in $(curl http://www.missoulapubliclibrary.org/index.php/resources/online-resources/317-linux |grep 'ftp/LinuxJournal' |sed -n 's/.*href="\([^"]*\).*/\1/p'); do curl -O http://www.missoulapubliclibrary.org$i; done