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 / improved-install.md
Last active Nov 15, 2019
updated & improved guide to installing LND, BTCD, on Ubuntu 16.04 Server on testnet
View improved-install.md

2018-03-18: Updating of this guide is taking a backseat to the mainnet version at

Intro

This guide is specific to btcd, lnd, on testnet, running on an ubuntu 16.04 server host.

It does not address mainnet, or using bitcoind, or neutrino.

Original installation guide is here:

@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 / improved-lnd-bitcoind-install.md
Last active Feb 26, 2019
updated & improved guide to installing LND, Bitcoind, on Ubuntu 16.04 Server on testnet
View improved-lnd-bitcoind-install.md

2018-03-18: Updating of this guide is taking a backseat to the mainnet version at

Intro

This guide is specific to getting LND and bitcoind running on ubuntu 16.04 LTS for testnet.

It does not address mainnet, or using btcd, or neutrino.

Original installation guide:

@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 / lightning-maps.md
Last active Nov 16, 2019
Visualisers of the Lightning Network (and some other explorers)
View lightning-maps.md

A (mostly) visual collection of the Lightning Network

Disclaimer

Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.

These network views, or network maps, have been termed 'visualisers' by the LN community.

Screenshots may reflect older visual styles, and are dated accordingly.

@bretton
bretton / testnet-stores.md
Last active Apr 14, 2019
List of Testnet Stores for Lightning
View testnet-stores.md
@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 / ln-provider-za.md
Last active Apr 24, 2019
Scenario Planning for a Lightning Provider
View ln-provider-za.md

WIP 2018-02-08

Scenario Planning for a Lightning Provider

This gist is an outline of a likely scenario within South Africa, a developing country with a strong interest in Bitcoin & blockchain technologies.

Although it is expected within the LN community that users & merchants will run their own nodes, and fund their own channels, this approach seems to require a level of familiarity with the concepts and technology beyond the comprehension of the average joe, along with a level of access to bitcoin for channel funding purposes that is outside the financial reach of most in this country.

It's far more likely that mainstream adoption will come via parallels to existing widespread usage models, such as:

  • buying and loading prepaid airtime, via cash & EFT
@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
You can’t perform that action at this time.