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 / lightning-maps.md
Last active November 28, 2025 07: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 / forex-scrape.md
Last active August 8, 2025 02:04
Scraping Forex Data

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 / ibm-mq-podman-compose-ubuntu2404.md
Last active July 31, 2025 05:41
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 / crypto-tracks.md
Last active June 10, 2025 10:02
Crypto tracks
@bretton
bretton / freebsd-oci-cmd-list.md
Last active May 26, 2025 10:44
FreeBSD 14.2 OCI container default commands list

List of commands available inside FreeBSD OCI containers

There are complaints that FreeBSD OCI containers have limited functionality as certain programs do not exist, like chown, which, tail, su and many others.

To help people find alternative commands to use inside the container, a list of commands is provided below.

The list was generated by performing the following steps

git clone https://github.com/bretton/temporary-micropod
cd temporary-micropod/emptyrun
@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 / 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 / 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