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 / repair-dude.md
Last active March 11, 2025 11:47
Repair Mikrotik Dude database

If you run a Mikrotik Dude instance on CHR, have a lot of devices and years of activity, problems start to arise with errors like:

server status: db failure: disk image is malformed. stop
server status: db failure: database disk image is malformed. stop

The problem might temporarily be resolved by running

#!/bin/bash
@bretton
bretton / inbound-liquidity-ln.md
Last active March 11, 2025 09:14
How to get Inbound Liquidity on the Lightning Network

How to get Inbound Liquidity on the Lightning Network

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 / lightning-maps.md
Last active January 27, 2025 10:05
Visualisers of the Lightning Network (and some other explorers)

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 / crypto-tracks.md
Last active January 7, 2025 07:53
Crypto tracks
@bretton
bretton / open-webui-freebsd-14.1.md
Last active November 10, 2024 10:08
Why won't open-webui install on FreeBSD 14.1?

Why won't open-webui install on FreeBSD 14.1?

If you try install open-webui in FreeBSD 14.1 you'll run into troubles.

1. Pip method

If using pip install --user open-webui it will crash with the following error

ERROR: Could not find a version that satisfies the requirement onnxruntime>=1.14.1 (from chromadb) (from versions: none)
@bretton
bretton / ibm-mq-podman-compose-ubuntu2404.md
Last active October 10, 2024 16:18
IBM-MQ with Podman, podman-compose and Ubuntu 24.04

IBM-MQ with Podman, podman-compose and Ubuntu 24.04

The following guide will help you get a containerised instance of IBM-MQ running on Ubuntu 24.04 with podman-compose and apparmour support.

Make sure you have the required software installed

sudo apt-get update
sudo apt-get -y install podman podman-compose podman-docker
@bretton
bretton / receive-btc-cash-out-uk.md
Last active September 1, 2024 14:59
Receive bitcoin over lightning network and cash out to UK bank account

Receive bitcoin over lightning network and cash out to UK bank account

Project Outline

The providers listed below appear to be present in the UK.

Evaluate the services for receiving payment over lightning network, and cashing out to a UK bank account.

Document the steps and pitfalls.

@bretton
bretton / ln-dashboard-list.md
Last active August 17, 2024 15:50
Dashboard tools for Lightning servers

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

@bretton
bretton / why-envoy-broken-freebsd.md
Last active August 11, 2024 15:20
Why is Envoy Proxy broken on FreeBSD?

Why is Envoy broken on FreeBSD?

Docker-style containers are live on FreeBSD via FreeBSD Container Images by Doug Rabson, also available at container registry quay.io/dougrabson

If you want to see how several containers work together, get started with the micropod-sampler playbook to setup a small consul, nomad, traefik, minio and nginx environment using FreeBSD containers on FreeBSD

When you see it working, it makes sense to expand the micropod-sampler environment to include Envoy Proxy.

There is a tutorial Envoy Consul Service Discovery Service which covers the basic concept using consul and nomad and envoy. You can also review the Hashicorp tutorial [Understanding Consul Connect](https://www.youtube.com

@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active June 26, 2024 16:08
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is aging rapidly and includes steps not necessary on newer versions of LND. As of April 2021 it is very out of date for bitcoind. As of December 2021 it is outdated for LND too.

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies