Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / example.html
Created March 28, 2025 15:34
Radar CSS
<div class="radar"></div>
@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
#!/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 / 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.

@dskvr
dskvr / opensats-badge.md
Last active September 23, 2024 16:32
opensats.org badge

OpenSats.org Badge

Easy way to flag OpenSats. Gigi tell me which casing is preferred please. While OpenSats is "correct," badges tend to be all lower. Let me know.

Standard Label / rgb(249,115,22)

opensats.org

[![opensats.org](https://img.shields.io/badge/%3E__-opensats-rgb(249,115,22))](https://opensats.org)
@dskvr
dskvr / fjb.sh
Last active September 5, 2024 23:54
find bitcoin block number with a provided timestamp
#!/bin/bash
# USAGE:
# fjb.sh <timestamp>
# returns: <blocknum>
TIMESTAMP=$1
LOWER=0
UPPER=$(bitcoin-cli getblockcount)
@dskvr
dskvr / nip11.types.ts
Created August 30, 2024 15:21
types generated with NIP-11
export interface Types {
contact: string;
description: string;
fees?: Fees;
icon?: any;
language_tags?: string[];
limitation?: Limitation;
name: string;
payments_url?: any;
posting_policy?: any;