Skip to content

Instantly share code, notes, and snippets.

@dskvr
dskvr / analysis.md
Last active October 30, 2024 02:11
NIP66 NIP50 relays

Issue #1

NOTICE from wss://feeds.nostr.band/: error: unknown feed

nostr.band feeds are tricky because the root domain connects like a relay, but does not actually behave like a relay. Only it's sub paths act like relays, and I'm still trying to figure out how to handle this in a way that doesn't require manual treatment. It would be better if feeds.nostr.band refused to connect.

Issue #2

NOTICE from wss://relay.noswhere.com/: internal error on filter 0

Internal issue it seems.

#!/bin/bash
if [ ! -f /usr/lib/sftp-server ]; then
ln -s /usr/lib/ssh/sftp-server /usr/lib/sftp-server
fi
uci set dropbear.@dropbear[0].PasswordAuth='on'
uci set dropbear.@dropbear[0].RootPasswordAuth='on'
uci set dropbear.@dropbear[0].Port='22'
uci commit dropbear
@dskvr
dskvr / init.d
Last active March 19, 2025 15:18
#!/bin/sh
### BEGIN INIT INFO
# Provides: basic
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts/stops basic service
# Description: A basic init script that starts, stops, and checks status
### END INIT INFO
@dskvr
dskvr / example.html
Created March 28, 2025 15:34
Radar CSS
<div class="radar"></div>
@dskvr
dskvr / gist:b9e3bbd6ad2d4150b1d31e14d00a51b7
Created May 6, 2025 19:03
for usage with @libs/qrcode
function _renderQrArrayWithQuietZone(
qrArray: boolean[][] | undefined,
borderSize: number,
lightCharPair = "\u2588\u2588",
darkCharPair = " "
): void {
if (!qrArray || qrArray.length === 0) {
log.warn("QR array is empty, cannot render.");
return;
}
@dskvr
dskvr / install-flutter.txt
Last active May 13, 2025 11:59 — forked from joaquinicolas/gist:b7d0a0869485bca5156d0d4be87820f4
Setup flutter environment in arch linux (2025, no whitespace edition)
pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -S flutter
java -version
sudo pacman -S jre8-openjdk
@dskvr
dskvr / NIP-TN.md
Last active June 11, 2025 00:50
NIP-TN

Understood. I’ll revise the NIP proposal to define a new dedicated event kind 7043 for tone events. The JSON schema will remain in the content field, and we’ll expand tag usage to include both standard t hashtags and new single-letter custom tags for structured classification—enabling better filtering per NIP-01. I’ll make those updates and notify you when the draft is ready for review.

NIP-TN - Tone Events (Sound Representation)

Preamble

draft optional author:YourName discussions-to:#music NIP: 7043 Title: Tone Events (Sound Representation)

@dskvr
dskvr / sov-eng-reading-list.md
Created July 24, 2025 06:09 — forked from calvadev/sov-eng-reading-list.md
SovEng Reading List

Reading List 📚

Society and Sovereignty

  • The Sovereign Individual: Mastering the Transition to the Information Age by James Dale Davidson and Lord William Rees-Mogg
  • The Network State by Balaji Srinivasan
  • A Lodging of Wayfaring Men by Paul Rosenberg

History and Philosophy