These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
#!/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 |
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: |