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
@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active Nov 27, 2019
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet
View improved-lnd-bitcoind-mainnet.md

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is ageing rapidly and includes steps not necessary on newer versions of LND

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@bretton
bretton / serverless-macos-aws.md
Last active Nov 24, 2019
Setting up serverless on a mac and updating to latest version
View serverless-macos-aws.md

The following is specific to MacOS users, however similar guides may exist for Linux, or this can be adapted accordingly.

How to setup a serverless dev environment on a mac

In order to facilitate easier management of a local copy of a website, private github repository, and S3 bucket with Lambda functions as a website we will make use of the serverless framework.

Install XCode

You may need to check you have the latest XCode dev environment installed. You can install it via the App Store.

@bretton
bretton / notakey-ubuntu-qemu-kvm.md
Created Nov 18, 2019
Notakey Authentication Appliance on Ubuntu QEMU-KVM (unsupported by vendor)
View notakey-ubuntu-qemu-kvm.md

Introduction

Setup of an instance of the Notakey Authentication appliance running on Ubuntu with QEMU-KVM.

Sign up for license

Sign up for an evaluation license at https://www.notakey.com/

Download the legacy appliance

After you've signed up you will receive an email with download links for:

  • Vmware ESXi 6.5 or newer
  • Vmware ESXi 6.0 or older
@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 / 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:

View crypto-tracks.md
@bretton
bretton / forex-scrape.md
Last active Sep 23, 2019
Scraping Forex Data
View forex-scrape.md

Scraping Forex Data

I was looking for ways to scrape forex data after fixer.io switched to a subscription model with rate-limiting, making their API useless for lots of queries.

1. Use an alternative API

One alternative API which is still free is https://exchangeratesapi.io/

It's basically a drop-in replacement for fixer.io and can be used to get all forex rates in json format at

@bretton
bretton / inbound-liquidity-ln.md
Last active Sep 8, 2019
How to get Inbound Liquidity on LN
View inbound-liquidity-ln.md

How to get Inbound Liquidity on LN

There are several ways you can find inbound liquidity on LN.

1. Wait

If your node is up 24x7 and you have some outgoing channels, the network will connect to you if you simply wait.

However, it might take a couple of weeks to get a significant amount of incoming liquidity, and ideally you want your outgoing liquidity to match too.

@bretton
bretton / fetchlunohistory.sh
Last active Aug 7, 2019
Fetch Luno trade history and save as CSV for charting purposes
View fetchlunohistory.sh
#!/bin/bash
#
# About
#
# fetchlunohistory.sh
# get date in epoch time of last trade in csv
# get trades from luno from this time
# reverse order
# append to big log of all trades
#
@bretton
bretton / ln-dashboard-list.md
Last active Aug 1, 2019
Dashboard tools for Lightning servers
View ln-dashboard-list.md

Lightning dashboards

clightning

NodeMonitor

NodeMonitor is a simple Python Django website that makes calls to Bitcoin (bitcoind) and Lightning Network (c-lightning lightningd) nodes and displays the results on a simple 'dashboard' style status page.

Zabbix clightning

You can’t perform that action at this time.