Skip to content

Instantly share code, notes, and snippets.

@igorbrigadir
Forked from aliceisjustplaying/list-muted-people.sh
Last active April 28, 2023 22:40
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 igorbrigadir/f6970a71aac62e2ce35db127fd24a5bc to your computer and use it in GitHub Desktop.
Save igorbrigadir/f6970a71aac62e2ce35db127fd24a5bc to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# the first 100, anyways
#
curl -s -H "Authorization: Bearer $(curl -s -X POST -H "Content-Type: application/json" -d '{"identifier": "me.bsky.social", "password": "letmein"}' "https://bsky.social/xrpc/com.atproto.server.createSession" | jq -j ".accessJwt")" "https://bsky.social/xrpc/app.bsky.graph.getMutes?limit=100" | jq -r '.mutes | .[] | .did' | xargs -I{} -P10 curl -s 'https://plc.directory/{}' | jq -r '.alsoKnownAs[0]' | sed -e 's#at://#@#' | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment