stateDiagram-v2
state BisqMusigProtocol {
[*] --> SigningOfTxs
SigningOfTxs --> [*]: Cancelled
state "DepositTxBroadcast w/ Seller's deposit & trade amount [TR key spend: P'] and Buyer's deposit [TR key spend: Q']" as DepositTxBroadcast
SigningOfTxs --> DepositTxBroadcast
DepositTxBroadcast --> TradersExchangeSecretKeysForP'
DepositTxBroadcast --> SellerBroadcastsSwapTx
DepositTxBroadcast --> SellerOrBuyerBroadcastWarningTxstateDiagram-v2
state BuyerAsTaker {
[*] --> TakerSentTakeOfferRequest
TakerSentTakeOfferRequest --> TakerReceivedOfferResponse: Option 1 - Buyer receives take offer response, then account details can be exchanged in any order.
TakerReceivedOfferResponse --> BuyerSentBtcAddress: Option 1.1 - Buyer sends btc address first, then seller sends account data.
TakerSentTakeOfferRequest --> TakerDidNotReceiveOfferResponse: Option 2 - Buyer takes offer and sends btc address right after that. Then receives take offer response and finally seller's account data.
TakerReceivedOfferResponse --> BuyerReceivedAccountData: Option 1.2 - Seller sends account data first, then buyer sends btc address.
BuyerReceivedAccountData --> BuyerSentBtcAddressAndReceivedAccountData
BuyerSentBtcAddress --> BuyerSentBtcAddressAndReceivedAccountData
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Individual wallets | |
| SELECT wallets.name AS wallet_name, SUM(apipayments.amount - ABS(apipayments.fee)) AS balance FROM apipayments | |
| INNER JOIN wallets ON apipayments.wallet = wallets.id | |
| WHERE ((wallets.deleted = FALSE) OR (wallets.deleted IS NULL)) AND | |
| (((apipayments.status = 'success') AND (apipayments.amount > 0)) OR | |
| ((apipayments.status IN ('success', 'pending')) AND (apipayments.amount < 0))) | |
| GROUP BY wallets.name; | |
| -- Total | |
| SELECT SUM(COALESCE(apipayments.amount, 0) - COALESCE(ABS(apipayments.fee), 0)) AS total_balance FROM apipayments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| [[ "${1^^}" == "GET" || "${1^^}" == "POST" ]] && [[ "${2}" =~ ^/.*$ ]] || exit 2 | |
| urlencode () { | |
| [[ -n "${1}" ]] && echo -n "${1}" | perl -p -e 's/([^A-Za-z0-9-._~])/sprintf("%%%02X", ord($1))/seg' | |
| } | |
| #oauth1 vars | |
| consumer_key="..." |
Vigdis Hjorth - If Only (2001) {352pp / 9h58m} [Goodreads link]
Neurotic romance (which we have not read a lot of) written by a Norwegian (thus, locally sourced) novelist, which asks, can passion be mistaken for love? It then proceeds by documenting the destruction of a decade defined by such a misconstruction can yield on a life. Supposedly melds the yearning, doomed potency of Annie Ernaux's A Simple Passion with the scale and force of Anna Karenina.
Wendy Erskine - The Benefactors (2025) {321pp / 9h44m} [Goodreads link]
A novel about intimate histories, class and money - and what being a parent means. A daring, polyphonic presentation of modern-day Northern Ireland that ought also be funny.
Mieko Kawakami - Sisters in Yellow (2023) {448pp / 15h27m} [Goodreads link]
A pacy and thrilling novel, a Japanese Breaking Bad, in which a group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function pdmn-ps() { | |
| # With this one can do like, given a container called tor-client, | |
| # kill -HUP $(pdmn-ps tor-client | \ | |
| # grep -F ' tor -f /config/torrc --defaults-torrc /config/torrc.custom.default' | \ | |
| # awk '{ print $2 }') | |
| # Useful for when one has both a client and a relay, and has a smaller overhead than exec-ing into the container. | |
| local container_pid | |
| [[ -n "${1}" ]] && podman container exists "${1}" && { \ | |
| container_pid=$(podman inspect --format '{{.State.Pid}}' "${1}") | |
| ps -o 'user,pid,%cpu,%mem,vsz,rss,tty,stat,lstart,time,command' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Intermittently, the routing of WireGuard datagrams seem to become confused, leading to temporarily hung connections. | |
| # This script aims to remedy this - assuming that the OpenWRT system is a | |
| # WireGuard peer that uses the port(s) listed in WG_PORTS. E.g. (/etc/config/network): | |
| # config interface 'wg0' | |
| # option proto 'wireguard' | |
| # option listen_port '51820' | |
| # ... | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ln-fee-info() { | |
| pgrep -u lightning -f '^/usr/bin/lightningd\s.*' &> /dev/null && { \ | |
| function o() { | |
| if [[ "${1}" =~ ^.*1$ ]]; then echo "st" | |
| elif [[ "${1}" =~ ^.*2$ ]]; then echo "nd" | |
| elif [[ "${1}" =~ ^.*3$ ]]; then echo "rd" | |
| else echo "th"; fi | |
| } | |
| local -i M N f n p x; local percentile j j_c t x_v; local -A T | |
| local b=$(/usr/bin/timeout -k 35s 30s /usr/bin/lightning-cli --rpc-file=/run/lightning/lightningd.rpc getinfo | jq -r .blockheight) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "# version": "23.05-gentoo-r0", | |
| "conf": "/etc/lightning/lightningd.conf", | |
| "lightning-dir": "/var/lib/lightning", | |
| "network": "bitcoin", | |
| "allow-deprecated-apis": true, | |
| "rpc-file": "/run/lightning/lightningd.rpc", | |
| "plugins": [ | |
| { | |
| "path": "/usr/bin/clboss", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ipc-namespace | |
| dbus-user.talk org.freedesktop.portal.Fcitx | |
| dbus-user.talk org.freedesktop.portal.Background | |
| dbus-user.talk org.freedesktop.Notifications | |
| dbus-user.talk org.kde.StatusNotifierWatcher | |
| dbus-user.own org.kde.* | |
| env SIGNAL_DISABLE_GPU=0 | |
| env SIGNAL_DISABLE_GPU_SANDBOX=0 |
NewerOlder