jb55 on Nostr: was trying to remember a command I posted to nostr... local search ftw $ ndb query -a ...
was trying to remember a command I posted to nostr... local search ftw
$ ndb query -a $JB55 --limit 1 --search notmuch
user search changes everything. you can write ndb scripts to find notedeck-received notes. notedeck gui search interface soon!
nostr becoming a useful offline-first information storage and retrieval system 👀
ndb (nostrdb command line tool) is a lot like notmuch, which is a similar tool for email. nostr is more structured.
one liner to get the subtotal from my inbox:
notmuch show --format=raw subject:invoice and from:daniel and tag:inbox | grep -A1000 "Content-Type: application/octet-stream" - | grep -v -e "^--" -e "Content-" | base64 -d | gpg -d | yq .subtotal
Published at
2025-01-15 16:16:11Event JSON
{
"id": "5b4be1018b7ac8cdf70ef4e703075bc48083bb8d0740232c7c5ee620435d9415",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1736957771,
"kind": 1,
"tags": [
[
"client",
"Damus Notedeck"
]
],
"content": "was trying to remember a command I posted to nostr... local search ftw\n\n$ ndb query -a $JB55 --limit 1 --search notmuch\n\nuser search changes everything. you can write ndb scripts to find notedeck-received notes. notedeck gui search interface soon!\n\nnostr becoming a useful offline-first information storage and retrieval system 👀\n\nndb (nostrdb command line tool) is a lot like notmuch, which is a similar tool for email. nostr is more structured.\n\nnostr:note1fm4c9nsjs9s9memzcyy4nwanx85w7kazltcq0p8qall888cjavmq2ng5r3",
"sig": "08b278281c5f4c6592ca450b847d70086626e356f6797d79bf60fb6fd5c95b71052e71e2d163737342b6cc6d6e59f15ace2c81b049a86d9e36ed0d89c8974eaf"
}