Skip to content

Instantly share code, notes, and snippets.

@aliceisjustplaying
Created April 28, 2023 21:50
Show Gist options
  • Save aliceisjustplaying/4043e55a3afbff2a883a88c9b66c2bf8 to your computer and use it in GitHub Desktop.
Save aliceisjustplaying/4043e55a3afbff2a883a88c9b66c2bf8 to your computer and use it in GitHub Desktop.
#!/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/com.atproto.server.getAccountInviteCodes" | jq -r '.codes[].uses[].usedBy' | xargs -I{} -P10 curl -s 'https://plc.directory/{}' | jq -r '.alsoKnownAs[0]' | sed -e 's#at://#@#'
@xenohunter
Copy link

Thank you, it's a very neat script! Saved it to my password manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment