Skip to content

Instantly share code, notes, and snippets.

View wilfredallyn's full-sized avatar

wilfredallyn

View GitHub Profile
@etemiz
etemiz / read_strfry_db.py
Last active November 16, 2023 02:01
Read the strfry database using Python
import lmdb
lmdb_folder = '/path/to/strfry-db/'
lmdb_env = lmdb.open(lmdb_folder, max_dbs=10)
dbpl = lmdb_env.open_db(b'rasgueadb_defaultDb__EventPayload')
dbid = lmdb_env.open_db(b'rasgueadb_defaultDb__Event__id')
# read one event
with lmdb_env.begin(db=dbid) as txn:
with lmdb_env.begin(db=dbpl) as tpl:
#!/bin/bash
# Mirrors notes from one nostr relay to another.
#
# Example usage:
# nostr-mirror.sh wss://source.relay.example wss://target.relay.example
# Source relay to fetch events from (wss://...).
SOURCE=$1
# Target relay to send these events to (wss://...).
TARGET=$2
@martijnvermaat
martijnvermaat / nixos.md
Last active April 27, 2025 13:05
Installation of NixOS with encrypted root