This file contains 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 | |
# Requires `psql`. The script effectively wraps a `psql` invocation. | |
# This is what I use for installing psql: `apt update && apt install postgresql-contrib -y`. | |
# Checks Postgres's tx counter, then blocks until ctrl-c is pressed, then checks tx counter again, | |
# prints difference, and exits. Start it before performing some database interactions, then press | |
# Ctrl-C to get the number of transaction commits that were performed since starting script. | |
# | |
# Should be called with the psql command as argument: |
This file contains 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
#!/usr/bin/env bats | |
daoSetup_localFile="dao-setup.zip" | |
download-dao-setup-if-needed() { | |
local daoSetup_remoteUrl="https://github.com/bisq-network/bisq/raw/master/docs/dao-setup.zip" | |
test ! -f $daoSetup_localFile \ | |
&& wget -O $daoSetup_localFile $daoSetup_remoteUrl | |
} |
This file contains 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
vim: shiftwidth=2 | |
---- MODULE DecidePeerSourcing ---- | |
UNDEFINED == "" | |
\* BaseCurrencyNetwork | |
NetParams(btcMode) == | |
CASE btcMode = "BTC_MAINNET" -> "MainNetParams" | |
[] btcMode = "BTC_TESTNET" -> "TestNet3Params" | |
[] btcMode = "BTC_REGTEST" -> "RegTestParams" |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am dmos62 on github. | |
* I am dmos (https://keybase.io/dmos) on keybase. | |
* I have a public key ASAsoUMlnE8qzbYFGGZIGH8EL4jmw1ooqQKp7C25nIaFvAo | |
To claim this, I am signing this object: |
This file contains 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
/* | |
Usage looks like this: | |
``` | |
$ node auto-patch.js get \ | |
--original node_modules/epub.js/build/epub.js \ | |
--changed epubjs.changed > patches/epubjs.patch | |
$ node auto-patch.js apply patches/epubjs.patch | |
``` |