Skip to content

Instantly share code, notes, and snippets.

View bretton's full-sized avatar

bretton bretton

  • Cape Town, South Africa
View GitHub Profile
@bretton
bretton / blockstack
Created November 9, 2017 19:03
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 January 24, 2018 21:33
monitor lnd wallet and channel balances

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 / vm-backup.sh
Created March 5, 2018 14:17 — 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.
#!/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 / ldn-contributor-github.md
Last active April 3, 2018 12:13
How to fork, clone and submit pull requests for changes, to LND

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 July 13, 2018 15:45
Convert pubkey from lightning node into Bech32 format for (proposed) Bolt-12 DNS SRV record usage
@bretton
bretton / contribute-lightning-dev.md
Last active October 9, 2018 20:58
Become a contributor to the Lightning Dev Site
@bretton
bretton / sarb-crypto-regs-execise.md
Last active January 24, 2019 17:45
Class exercise: Re-write the "Proposal for regulatory actions for crypto assets"
@bretton
bretton / studio-monitors.md
Created April 13, 2019 18:58
studio monitors
@bretton
bretton / change-of-heart.md
Last active April 26, 2019 14:04
$obbing over a change of heart

change-of-heart

$obbing over a change of heart

A trade indicator that flashes a warning when people publicly state positions with reasoning, and then either express doubt over earlier assessment, or panic change their minds.

Input:

  • twitter feeds
  • slack channels
  • telegram