get-pleroma-instances.sh - gopher-lawn - The gopher lawn gopher directory project.
 (HTM) git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
       ---
       get-pleroma-instances.sh (315B)
       ---
            1 #!/bin/sh
            2 sed 's,",\\",g; s,$,\\n,' <<-EOF \
            3         | tr -d '\n' \
            4         | sed 's,^\(.*\)$,{"query":"\1"},' \
            5         | curl -s -H'Content-Type: application/json' --data-binary @- https://api.fediverse.observer/ \
            6         | jaq '$1 == ".data.nodes[].domain" { print $3 }'
            7 {
            8         nodes(softwarename: "pleroma", status: "UP") {
            9                 domain
           10         }
           11 }
           12 EOF