Enable AND
within a single tag filter by using an &
modifier in filters for indexable tags.
filters: {
"kinds": [1],
"&t": ["meme", "cat"],
"#t": ["black", "white"]
}
{ | |
"name": "gossip.events", | |
"type": "module", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"dependencies": { | |
"fast-safe-stringify": "2.1.1", | |
"node-cache": "5.1.2", | |
"nostr": "0.2.8" |
#important! | |
map $http_accept $upstream { | |
default 127.0.0.1:8080; | |
application/nostr+json 127.0.0.1:7777; | |
} | |
server { | |
...other stuff | |
location / { |
type: vertical-stack | |
cards: | |
- type: horizontal-stack | |
cards: | |
- type: custom:mushroom-title-card | |
title: Bambu Lab X1C | |
alignment: start | |
- type: custom:mod-card | |
card: | |
type: custom:mushroom-chips-card |
{ | |
"content": "{\"contact\":\"[email protected]\",\"description\":\"Damus strfry relay\",\"name\":\"damus.io \",\"pubkey\":\"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245\",\"software\":\"git+https://github.com/hoytech/strfry.git\",\"supported_nips\":[1,2,4,9,11,20,22,28,40,70],\"version\":\"0.9.2-88-g1d206d1ce9f2\"}", | |
"created_at": 1723894146, | |
"id": "3c2a8bf4f2625ad52b0f7f318a42d6c497f110ddcc3223b376513e1c4714c2fa", | |
"kind": 30166, | |
"pubkey": "9bbbb845e5b6c831c29789900769843ab43bb5047abe697870cb50b6fc9bf923", | |
"sig": "e35b240ed8c3438be0ded977eb528fb4b0490a27b63da38e478034ec0d34e7d72ae8725691de2778b2c2f486bbbb2a992ca0694237a4d43bbc411c15f336113d", | |
"tags": [ | |
[ | |
"d", |
// To parse this data: | |
// | |
// import { Convert, Nip11 } from "./file"; | |
// | |
// const nip11 = Convert.toNip11(json); | |
// | |
// These functions will throw an error if the JSON doesn't | |
// match the expected interface, even if the JSON is valid. | |
export interface Nip11 { |
export interface Types { | |
contact: string; | |
description: string; | |
fees?: Fees; | |
icon?: any; | |
language_tags?: string[]; | |
limitation?: Limitation; | |
name: string; | |
payments_url?: any; | |
posting_policy?: any; |
#!/bin/bash | |
# USAGE: | |
# fjb.sh <timestamp> | |
# returns: <blocknum> | |
TIMESTAMP=$1 | |
LOWER=0 | |
UPPER=$(bitcoin-cli getblockcount) |