Skip to content

Instantly share code, notes, and snippets.

bretton bretton

Block or report user

Report or block bretton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View blockstack
Verifying my Blockstack ID is secured with the address 1Np8AKYGHN6S4mUYVyDpMZ7xVU185W8veM https://explorer.blockstack.org/address/1Np8AKYGHN6S4mUYVyDpMZ7xVU185W8veM
@bretton
bretton / monitor-lnd-balances.md
Last active Jan 24, 2018
monitor lnd wallet and channel balances
View monitor-lnd-balances.md

Short script to monitor walletbalance and channelbalance for LND, and log to csv file for later graphing. You need a working LND, and jq installed.

first setup by editing balances.txt and add a header line

date,walletbalance,channelbalance

add the following script, edit lndbalances.sh

#!/bin/bash
@bretton
bretton / random-lightning-qrcodes.md
Last active Feb 2, 2018
Random stuff for testing with Lightning, QRCodes
View random-lightning-qrcodes.md

Random stuff on using QRCodes for testing Lightning between Mac, Linux and Android

generate a QR code on the command line for LND

sudo apt-get install qrencode
lncli newaddress np2wkh |jq -c -r .address |qrencode -t ASCII -m 5

MacOS: copy-paste an address or lightning payment request from command line into QREncoder and then scan with Eclair

@bretton
bretton / vm-backup.sh
Created Mar 5, 2018 — forked from ooZberg/vm-backup.sh
I use this script to backup my QEMU/KVM/libVirt virtual machines. The script requires KVM 2.1+ since it uses the live blockcommit mode. This means the data in the snapshot disk is rolled back into the original instead of the other way around. Script does NOT handle spaces in paths.
View vm-backup.sh
#!/bin/bash
#
BACKUPDEST="$1"
DOMAIN="$2"
MAXBACKUPS="$3"
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]"
exit 1
@bretton
bretton / README.md
Last active Mar 20, 2018 — forked from tyzbit/README.md
The Lightning Network (Testnet)
View README.md

Forked from vasturiano, with dataset and minor other changes.

Forked from tyzbit, with new dataset from four hosts, initial jq combine command added

Latest

The Lightning Network as seen from my three nodes, with tyzbit node, at about 22:00 UTC on Feb 20 2018. This data is updated manually when I feel like it.

view

@bretton
bretton / ldn-contributor-github.md
Last active Apr 3, 2018
How to fork, clone and submit pull requests for changes, to LND
View ldn-contributor-github.md

1. Fork the original code in github

Open https://github.com/lightningnetwork/lnd and while logged in, select the "Fork" option and follow any prompts.

Fork the original

2. Clone your fork to a local directory

Open terminal and type

@bretton
bretton / bech32-lnd.md
Last active Jul 13, 2018
Convert pubkey from lightning node into Bech32 format for (proposed) Bolt-12 DNS SRV record usage
View bech32-lnd.md
@bretton
bretton / contribute-lightning-dev.md
Last active Oct 9, 2018
Become a contributor to the Lightning Dev Site
View contribute-lightning-dev.md
@bretton
bretton / sarb-crypto-regs-execise.md
Last active Jan 24, 2019
Class exercise: Re-write the "Proposal for regulatory actions for crypto assets"
View sarb-crypto-regs-execise.md
You can’t perform that action at this time.