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 | |
set -e | |
SEED=$(( RANDOM + 30000 )) | |
BITCOIN_DIRS=(/tmp/regtest-{$(( SEED + 50 )),$(( SEED + 51 ))}) | |
BITCOIN_PORTS=($(( SEED + 10 )) $(( SEED + 11 ))) | |
BITCOIND_RPC=($(( SEED + 20 )) $(( SEED + 21))) | |
export DIR=/tmp/regtest-haskoin-$(( SEED + 40 )) |
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
#!/usr/bin/env stack | |
{- stack | |
--resolver lts-16.28 | |
--nix | |
--nix-packages "secp256k1 pkg-config zlib" | |
script | |
--package haskoin-core | |
--package entropy | |
--package bytestring | |
--package text |
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
#!/usr/bin/env stack | |
{- stack | |
--resolver lts-16.28 | |
--nix | |
--nix-packages "secp256k1 pkg-config zlib" | |
script | |
--package haskoin-core | |
--package bytestring | |
--package text | |
--extra-dep haskoin-core-0.18.0 |
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 | |
set -xe | |
yaml_value() { | |
local thing="$1" | |
perl -lnE "say if s/^\\s*$thing:\\s*([^\\s]+)\\s*\$/\\1/" package.yaml | |
} | |
if [[ ! -f package.yaml ]] |
OlderNewer