commit ae1630c43b66d73e5927dbf3a49babe676bc519f from: Oliver Lowe date: Fri Jul 18 09:06:21 2025 UTC lemmyverse: delete fediverse doesn't really work well enough commit - 49ca4a901102ed9fccd46eb810f2271299b4227b commit + ae1630c43b66d73e5927dbf3a49babe676bc519f blob - e8883cff4096081b1cb191ac3aa62a543f442cb4 blob + 8706010e3ce8fee727f9da2677bea9885fdafd49 --- README +++ README @@ -9,7 +9,6 @@ The following commands are provided: - hits - count web traffic - hlsget - download the contents of a HLS playlist - jsfmt - format javascript source code -- lemmyverse - find lemmy communities - llm - chat with a remote large language model - precis - summarise text - rfc - read IETF RFC documents blob - 2d3c8b46c63e53ceb5c60b24659eed31db011cc1 (mode 755) blob + /dev/null --- bin/lemmyverse +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -usage='usage: lemmyverse pattern' -if test $# -ne 1 -then - echo $usage - exit 2 -fi - -cachedir=$HOME/.cache/lemmyverse -if test -n "$XDG_CACHE_HOME" -then - cachedir=$XDG_CACHE_HOME/lemmyverse -fi -mkdir -p $cachedir - -# thousands of spam/bot communities at lemmy.world? -# badnames='enoweiooe' - -cd $cachedir -if ! test -f communities -then - curl --compressed https://lemmyverse.net/data/community.full.json | \ - tr ',' '\n' | \ - tr -d '"{}[]' | \ - grep -E '(^baseurl)|(^name)|(^desc)' > communities -fi - -awk -F : ' -$1 == "baseurl" { instance = $2 } -$1 == "name" { name = $2 } -$1 == "desc" { desc = $2 } -NR % 3 == 0 { printf "%s@%s\t%s\n", name, instance, desc }' communities | sort | grep "$@" blob - 47b5dd548d4f7f79a2edee8e852417c139128c82 (mode 644) blob + /dev/null --- man/lemmyverse.1 +++ /dev/null @@ -1,54 +0,0 @@ -.Dd -.Dt LEMMYVERSE 1 -.Sh NAME -.Nm lemmyverse -.Nd find lemmy communities -.Sh SYNOPSIS -.Nm -.Ar pattern -.Sh DESCRIPTION -.Nm -finds Lemmy communities indexed by -.Pa lemmyverse.net -using the given regular expression as interpreted by -.Xr grep 1 . -Both the names and descriptions of the communities are searched. -.Pp -On first run, a local community database must be generated. -The full community index is downloaded from -.Pa https://lemmyverse.net -using -.Xr curl 1 , -transformed, -then stored in the user cache directory. -To regenerate the database, -remove the file and run -.Nm -again. -.Sh FILES -.Bl -tag -width Ds -.It Pa communities -Community database from lemmyverse.net. -.El -.Sh ENVIRONMENT -.Nm -uses the following environment variables: -.Bl -tag -width Ds -.It Ev XDG_CACHE_DIR -The directory to store the community database. -If unset, -.Pa $HOME/.cache/lemmyverse -is used. -.El -.Sh EXAMPLES -Find communities for the Plan 9 operating system: -.Dl lemmyverse '(plan9)|(Plan 9)' -.Pp -List all communities from the instance lemmy.sdf.org: -.Dl lemmyverse '@lemmy.sdf.org' -.Sh EXIT STATUS -.Ex -.Sh SEE ALSO -.Xr grep 1 , -.Xr curl 1 , -.Lk https://lemmyverse.net