Skip to content

Instantly share code, notes, and snippets.

@burningtree
Last active November 13, 2024 02:35
Show Gist options
  • Select an option

  • Save burningtree/97040eeb14bb0c83d19235bd5debb25d to your computer and use it in GitHub Desktop.

Select an option

Save burningtree/97040eeb14bb0c83d19235bd5debb25d to your computer and use it in GitHub Desktop.
#!/bin/bash
# usage: ./detect-pds.sh <handle>
curl -s https://plc.directory/$(dig +short TXT _atproto.$1 | tr -d '"' | sed 's/did=//') | jq .service[0].serviceEndpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment