Skip to content

Instantly share code, notes, and snippets.

@aliceisjustplaying
Last active April 30, 2023 20:20
Show Gist options
  • Select an option

  • Save aliceisjustplaying/45d974bf4b454033f5b55dfa7bcfe086 to your computer and use it in GitHub Desktop.

Select an option

Save aliceisjustplaying/45d974bf4b454033f5b55dfa7bcfe086 to your computer and use it in GitHub Desktop.

Revisions

  1. aliceisjustplaying revised this gist Apr 28, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion list-muted-people.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,5 @@
    #!/bin/bash
    curl -s -H "Authorization: Bearer $(curl -s --json '{"identifier": "aliceisjustplaying.bsky.social", "password": "letmein"}' https://bsky.social/xrpc/com.atproto.server.createSession | jq -j ".accessJwt")" "https://bsky.social/xrpc/app.bsky.graph.getMutes" | jq -r '.mutes | .[] | .did' | xargs -I{} -P10 curl -s 'https://plc.directory/{}' | jq -r '.alsoKnownAs[0]' | sed -e 's#at://#@#' | sort
    #
    # the first 100, anyways
    #
    curl -s -H "Authorization: Bearer $(curl -s --json '{"identifier": "aliceisjustplaying.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
  2. aliceisjustplaying created this gist Apr 28, 2023.
    2 changes: 2 additions & 0 deletions list-muted-people.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/bin/bash
    curl -s -H "Authorization: Bearer $(curl -s --json '{"identifier": "aliceisjustplaying.bsky.social", "password": "letmein"}' https://bsky.social/xrpc/com.atproto.server.createSession | jq -j ".accessJwt")" "https://bsky.social/xrpc/app.bsky.graph.getMutes" | jq -r '.mutes | .[] | .did' | xargs -I{} -P10 curl -s 'https://plc.directory/{}' | jq -r '.alsoKnownAs[0]' | sed -e 's#at://#@#' | sort