Markdown (yellow):
[![Tippin.me donation](https://img.shields.io/badge/donate-lightning-FDD023?logo=bitcoin&style=flat)](https://tippin.me/@meeDamian)
version: "3.7" | |
# This defines a default logging destination | |
x-logging: &default-logging | |
driver: journald | |
options: | |
tag: "{{.ImageName}}" | |
# This is the base for any utility image |
#!/bin/bash | |
RAWTX=$(bitcoin-cli createrawtransaction '[{"txid": "c09fc1b73260c5b5d0fd270de49c6c56d8fe6dc169cdfda75273c506bd1cb695", "vout": 0}]' '[{"tb1qncs4ju7gqu4hsc29ccyzvzk0dkste5xs03aaq7": 0.00000001}]' 0 true) | |
SIGNEDTX=$(bitcoin-cli signrawtransactionwithkey "${RAWTX}" '["'$(bitcoin-cli dumpprivkey tb1q9vugfwpwzac9wkzrhcq0zxfkszgy60ydsghp0f)'"]' | jq -r '.hex') | |
bitcoin-cli decoderawtransaction ${SIGNEDTX} | jq '. | del(.vout) | del(.vin)' | |
{ | |
"txid": "230de7441de94670a64dfddd141aacb117b0cb2a542451dfb4efad4ea533b6ab", | |
"hash": "a1a0168b7382bb29c503868105c07b6e8c5db21f6e96d76900f24794b9102c46", |
[ | |
{ | |
"id": null, | |
"connected": true, | |
"netaddr": [ | |
null | |
], | |
"globalfeatures": "", | |
"localfeatures": "81", | |
"channels": [ |
#!/bin/bash | |
# First, install ncat: http://nmap.org/ncat/ | |
# Usually comes with the 'nmap' package on distributions. | |
ncat -k -v -l -p 5555 -c 'ipfs refs local | gzip' | |
# To retrieve on the client machine: | |
# nc 127.0.0.1 5555 | gunzip | ipfs pin add -r |
#!/usr/bin/env bash | |
trap "exit" INT | |
HOSTS=( ln@pi-hdd lnd@pi-other ) | |
echo -e "\nCreating backups for ${#HOSTS[*]} hosts…" |
/tmp|⇒ /usr/bin/time -l 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on bitcoin-blocks.7z ~/Library/Application\ Support/Bitcoi | |
n/blocks | |
412.70 real 379.01 user 7.50 sys | |
395800576 maximum resident set size | |
0 average shared memory size | |
0 average unshared data size | |
0 average unshared stack size | |
97211 page reclaims | |
35 page faults |
#!/bin/bash | |
BLOCKCHAIN_INFO_URL="https://api.blockchain.info/charts/blocks-size?timespan=2years&format=csv" | |
VERy_BITCOIN="https://charts.bitcoin.com/bch/api/chart/blockchain-size" | |
SPLIT_DATE="2017-08-01" | |
# I use date for two days ago, as depending on your TZ, bc.info might not have the data yet | |
RECENT_DATE="$(date -v-2d +%F)" |