diff options
Diffstat (limited to '')
-rwxr-xr-x | home/.local/bin/masto | 12 | ||||
-rwxr-xr-x | home/.local/bin/mins | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/home/.local/bin/masto b/home/.local/bin/masto new file mode 100755 index 00000000..9fdbfdf1 --- /dev/null +++ b/home/.local/bin/masto @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +outbox=$1 +pattern=$2 + +jq -r " + .orderedItems[] | + select(.object | type == \"object\") | .object | + select(.content | test(\"${pattern}\")) | + \"\\(.content)\\n\\(.url)\\n\" +" "$outbox" | dehtml diff --git a/home/.local/bin/mins b/home/.local/bin/mins new file mode 100755 index 00000000..9cbd5fa8 --- /dev/null +++ b/home/.local/bin/mins @@ -0,0 +1,4 @@ +#!/bin/sh +exec dc <<EOF +$1 60~rn[h]nn[m]p +EOF |