Skip to content

Instantly share code, notes, and snippets.

@cs224
cs224 / README.md
Last active January 22, 2026 12:53
Nym Mixnet & dVPN: A Node Operator's Guide (2026) - Docker Compose Shadowsocks SOCKS5 proxy with NymVPN

This gist is part of Nym Mixnet & dVPN: A Node Operator's Guide (2026).

Quick notes:

  • The main entrypoint is docker-compose.yaml, which builds nymvpn-debian.dockerfile.
  • secrets.env is an example; put your real mnemonic there and keep it private.
  • The state and config live under ./config/nymvpn1/ (mapped to /etc/nym and /var/lib/nym-vpnd).

Build helpers:

  • TAG_DATE=$(date +%Y%m%d) docker compose build
  • TAG_DATE=$(date +%Y%m%d) docker compose build --no-cache
@cs224
cs224 / after-ddos-protection-fix-nym-node-harbourmaster-avoro2-orange.png
Last active January 22, 2026 07:48
Nym Mixnet & dVPN: A Node Operator's Guide (2026) - Avoro vs. netcup VPS: a debugging story - avoro2
after-ddos-protection-fix-nym-node-harbourmaster-avoro2-orange.png
@cs224
cs224 / nym-gateway-probe-152.53.122.46-netcup2.txt
Last active January 21, 2026 06:15
Nym Mixnet & dVPN: A Node Operator's Guide (2026) - Avoro vs. netcup VPS: a debugging story - netcup2
~/workspaces/nym$ ./target/release/nym-gateway-probe run-local --config-dir "$HOME/.local/share/nym-gateway-probe" --gateway-ip "152.53.122.46:8080" --min-gateway-mixnet-performance 0
2026-01-19T19:41:23.073628Z INFO nym_gateway_probe::run: Using direct IP query mode for gateway: 152.53.122.46:8080
2026-01-19T19:41:23.073652Z INFO nym_gateway_probe::nodes: Querying gateway directly at address: 152.53.122.46:8080
2026-01-19T19:41:23.097391Z INFO nym_gateway_probe::nodes: Successfully connected to gateway at http://152.53.122.46:8080
2026-01-19T19:41:23.200988Z INFO nym_http_api_client::dns: building new configured resolver
2026-01-19T19:41:23.383759Z INFO nym_gateway_probe::run: Test mode: mixnet
2026-01-19T19:41:23.383778Z INFO nym_gateway_probe::run: using the following directory for the probe config: /home/me/.local/share/nym-gateway-probe
2026-01-19T19:41:23.383792Z INFO nym_gateway_probe: Using pre-queried gateway node from direct IP query
2026-01-19T19:41:23.383849Z INFO nym_gateway_probe: connec
@cs224
cs224 / backup-create-backup.sh
Created January 14, 2026 15:14
Nym Mixnet & dVPN: A Node Operator's Guide (2026) - Backup
#!/usr/bin/env bash
set -euo pipefail
NODE_ID="${NODE_ID:-default-nym-node}"
SRC_BASE="/root/.nym"
SRC_NODE="${SRC_BASE}/nym-nodes/${NODE_ID}"
BASE="/root/nym-backup"
REPO="${BASE}/dotnym-repo"
@cs224
cs224 / minimal_decoder.py
Created December 2, 2025 13:05
otpauth migration decoder: Convert Google Authenticator data to plain otpauth links
#!/usr/bin/env python3
"""
Minimal otpauth-migration decoder using only Python standard library
Decodes Google Authenticator export data to standard otpauth URLs
"""
# https://github.com/digitalduke/otpauth-migration-decoder/issues/6
# https://www.rajashekar.org/migrate-otp/
# https://github.com/dim13/otpauth
@cs224
cs224 / Dockerfile
Last active March 13, 2025 15:35
PGP via Roman Zayde’s Trezor-agent
# Dockerfile
FROM python:3.12-slim
# Install system dependencies. You might need more packages (like gnupg2, libusb, etc.).
RUN apt-get update && apt-get install -y gnupg2 usbutils libusb-1.0-0-dev libudev-dev git curl && rm -rf /var/lib/apt/lists/*
# The working directory inside the container
WORKDIR /app
@cs224
cs224 / README.md
Created March 7, 2025 06:10
Incus/LXD as an Alternative to Vagrant for DevOps Testing
@cs224
cs224 / .env
Last active March 10, 2025 05:50
Home Server Blueprint: Rock-Solid Home Server with Unattended Reboots, Secure Disk Encryption, and Cost-Effective Offsite Backups
# .env file
# Secret (avoid storing real secrets in version control!)
KOPIA_REPOSITORY_SECRET=mysupersecret
LUKS_PASSPHRASE=abc123
# Toggle alerting
ALERT_ENABLED=false
# Pushover credentials
@cs224
cs224 / README.md
Created February 28, 2025 08:26
Nym Mixnet & dVPN: A Node Operator's Guide: Automatic Upgrades
@cs224
cs224 / Nym Harbour Master - E67dRcrMNsEpNvRAxvFTkvMyqigTYpRWUYYPm25rDuGQ - entry-gateway.html
Last active February 27, 2025 05:24
Nym Harbour Master - E67dRcrMNsEpNvRAxvFTkvMyqigTYpRWUYYPm25rDuGQ - entry and exit modes
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="cid:css-3ed9b04e-5197-4fe3-92a0-0b2b3d3c2b0d@mhtml.blink" />
<link rel="stylesheet" type="text/css" href="cid:css-8827060f-33c0-42a7-92e7-21c2edf78800@mhtml.blink" />
<link rel="stylesheet" type="text/css" href="cid:css-304d7563-0ff7-4c08-972f-d8a526275ea9@mhtml.blink" />
<link rel="stylesheet" type="text/css" href="cid:css-b4642104-7344-435d-82f5-548fb4b04a02@mhtml.blink" />
<link rel="stylesheet" type="text/css" href="cid:css-800affd0-ff9a-4d29-b5ab-f6885d55ab0d@mhtml.blink" />