SMOLNET PORTAL home about changes
iFix j(a)q syntax in get-pleroma-instances. - gopher-lawn - The gopher lawn gopher directory project.	Err	bitreich.org	70
hgit clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/	URL:git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/	bitreich.org	70
1Log	/scm/gopher-lawn/log.gph	bitreich.org	70
1Files	/scm/gopher-lawn/files.gph	bitreich.org	70
1Refs	/scm/gopher-lawn/refs.gph	bitreich.org	70
1Tags	/scm/gopher-lawn/tag	bitreich.org	70
i---	Err	bitreich.org	70
1commit c5e45c9085eb9902c6fd140ad274e82c18f42f3b	/scm/gopher-lawn/commit/c5e45c9085eb9902c6fd140ad274e82c18f42f3b.gph	bitreich.org	70
1parent f0b1b8d0b43fe141ec73bdf335b2a5977818b426	/scm/gopher-lawn/commit/f0b1b8d0b43fe141ec73bdf335b2a5977818b426.gph	bitreich.org	70
hAuthor: Christoph Lohmann <20h@r-36.net>	URL:mailto:20h@r-36.net	bitreich.org	70
iDate:   Tue,  9 Jul 2024 21:16:24 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
iFix j(a)q syntax in get-pleroma-instances.	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M fediverse/get-pleroma-instances.sh  |       5 ++++-	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 4 insertions(+), 1 deletion(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/fediverse/get-pleroma-instances.sh b/fediverse/get-pleroma-instances.sh	/scm/gopher-lawn/file/fediverse/get-pleroma-instances.sh.gph	bitreich.org	70
i@@ -1,9 +1,12 @@	Err	bitreich.org	70
i #!/bin/sh	Err	bitreich.org	70
i+	Err	bitreich.org	70
i+JQ="jaq"	Err	bitreich.org	70
i+	Err	bitreich.org	70
i sed 's,",\\",g; s,$,\\n,' <<-EOF \	Err	bitreich.org	70
i         | tr -d '\n' \	Err	bitreich.org	70
i         | sed 's,^\(.*\)$,{"query":"\1"},' \	Err	bitreich.org	70
i         | curl -s -H'Content-Type: application/json' --data-binary @- https://api.fediverse.observer \	Err	bitreich.org	70
i-        | jaq '$1 == ".data.nodes[].domain" { print $3 }'	Err	bitreich.org	70
i+        | $JQ -r '.data.nodes[].domain'	Err	bitreich.org	70
i {	Err	bitreich.org	70
i         nodes(softwarename: "pleroma", status: "UP") {	Err	bitreich.org	70
i                 domain	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/gopher-lawn/commit/c5e45c9085...
Content-Typetext/plain; charset=utf-8