Skip to content

Instantly share code, notes, and snippets.

View xanoni's full-sized avatar
🐱
I'm a cat

Linus Xanoni xanoni

🐱
I'm a cat
View GitHub Profile
@chris-belcher
chris-belcher / privacy-liquidity-divisibility.md
Last active June 3, 2021 07:13
How Wasabi Wallet and Samourai Wallet slightly degrade the divisibility of bitcoin

How Wasabi Wallet and Samourai-Wallet-Whirlpool slightly degrade the divisibility of bitcoin

December 2018

I made this claim on twitter recently and many people wanted me to go into more detail.

Lots of privacy tech in bitcoin like coinjoin, coinswap, tumblebit and Lightning Network require many entities to come together to agree to make certain kinds of transactions. This creates a requirement that the right resources (coins) have to be in the right place,

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlemail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=+lkRo0xHq0A5qPt4Ud4bXvNaQX2AJTwdlR5UthC+VcY=;
b=jau+o2hGzSHgRaoPfJe9eMaxU4Lh7DsSbtV8wQehOE8xaULsl+CoYhZHxXzm8Dr0KW
H5H6up8OANeXTFyBnW35FWBqr6cdCiPbzHCKslHnurBb0/CQ4yinWjahpIbsu35gxfOM
hc1q8r02ahsVyfXrpegxHxv2TjmKEniO0WiXa5ybooZngNJEUdxLwHgPiK7Nnwm7eA8N
/hP1vCBspeaTT2muu22srZkwVygeJiuxUJTewc9bT57LRFQQQ75YELEKIbrL6wwtE7Hf
EGzqdNHJpFvAttioPpSCf54YALz2rKuvrCmEBkFXRa+gyBX2CIDIeqQdzbrRHKiZ10nM
i/Lw==
@Jorijn
Jorijn / lnd-watchtower-over-tor.md
Last active July 1, 2021 07:21
Instructions to enable the LND watchtower over TOR

Create a TOR hidden service

In configuration file /etc/tor/torrc add:

HiddenServiceDir /var/lib/tor/hidden_service/lnd_watchtower
HiddenServiceVersion 3
HiddenServicePort 9911 127.0.0.1:9911

Now reload the TOR daemon with systemctl reload tor. Inspect the hostname TOR has assigned to your secret service with:

@xanoni
xanoni / scp-delete-during-transfer.sh
Last active August 3, 2021 06:59
scp-delete-during-transfer.sh: for when you're running out of disk space and need to scp a file out while deleting chunks of it
#! /usr/bin/env -S bash -e
SSH_USERHOST="user@host"
REMOTE_PATH="/tmp/disk_backup.img"
OUT_PATH="./$(basename ${REMOTE_PATH})"
TMP_PATH="/tmp/ssh-big-copy"
SLICES=200
echo -e "\nGetting from ${SSH_USERHOST}: ${REMOTE_PATH}\n"
@xanoni
xanoni / monerod-i2p.conf
Last active August 19, 2021 08:20
monerod: configure inbound I2P tunnel
# File: ~/.bitmonero/monerod.conf
[...]
tx-proxy=i2p,127.0.0.1:4447,25 # to send transactions via I2P
pad-transactions=1 # anti traffic analysis
# Get tunnel address for below line from /var/lib/i2pd/destinations
anonymous-inbound=<TUNNEL_ADDR>.b32.i2p:18084,127.0.0.1:18084,25
[...]
@xanoni
xanoni / rebalance-autopilot.sh
Last active November 15, 2021 03:48
lnd: rebalance channel autopilot
#! /usr/bin/env bash
PCT_INIT=100
PCT_MIN=25
PCT_DROP=25
MIN_AMOUNT=10000 # don't rebalance below this amount (def: 10k)
MIN_LOCAL=1000000 # min outbound sats per chan (def: 1M)
MIN_REMOTE=1000000 # min inbound sats per chan (def: 1M)
FEE_FACTOR=0.95 # (def: 1.0)
@kristapsk
kristapsk / odroid-hc4-raspibolt-notes.md
Last active December 2, 2021 00:58
Odroid HC4 RaspiBolt installation notes

Odroid HC4 RaspiBolt installation notes

Upgrading

Upgrading kernel will make it unbootable.

# apt update
# apt-mark hold linux-odroid-c4
linux-odroid-c4 set on hold.
@mrphs
mrphs / testobfs4.py
Last active January 16, 2023 18:12
testing obfs4 performance
#!/usr/bin/env python
import csv
import datetime
import os
import os.path
import re
import sys
import time
import urllib2
@lene
lene / socat_socks_proxy.sh
Last active October 7, 2023 07:52
Using tor as SOCKS proxy with SOCAT
socat TCP-LISTEN:<localport> SOCKS4A:localhost:<host>:<remoteport>,socksport=9050
# for example, to ssh into secret.shell.server.org via tor, do:
$ socat TCP-LISTEN:22222 SOCKS4A:localhost:secret.shell.server.org:22,socksport=9050 &
$ ssh localhost -p 22222
@chris-belcher
chris-belcher / financial-mathematics-of-joinmarket-fidelity-bonds.md
Last active November 7, 2023 02:24
Financial mathematics of joinmarket fidelity bonds