Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am chrisguida on github.
  • I am chrisguida (https://keybase.io/chrisguida) on keybase.
  • I have a public key ASAVkeLlBust0YCIZnZvkt45qRGMScxKttlpPS4E6oOq_wo

To claim this, I am signing this object:

@chrisguida
chrisguida / setup_clightning.md
Last active July 1, 2019 21:20 — forked from Stadicus/setup_clightning.md
Setup c-lightning on Digital Ocean

E-Commerce c-lightning node on Digital Ocean

Prerequisites

  • based on small Digital Ocean VPS (1CPU / 1GB RAM) with Ubuntu 16.04
  • SSH keys are recommended, but not described here
  • (sub) domain name necessary for SSL certificate

UFW & basic stuff

Login as "root"

@chrisguida
chrisguida / cln-macos-m1.md
Last active July 23, 2024 18:43
Notes for installing Core Lightning on MacOS M1

Notes for installing Core Lightning on MacOS M1 (tested on M1 Max)

Keep in mind that the instructions are designed for Intel, so /usr/local needs to be replaced by /opt/homebrew in most places.

Make sure native rust toolchain is installed for rust stuff

install nightly-aarch64-apple-darwin toolchain to get rid of errors about wrong arch lib linked

@chrisguida
chrisguida / ln-symmetry-demo.md
Last active January 24, 2024 17:31
LN-symmetry settlement tx broadcast on inquisition signet

The following is one way to broadcast an LN-symmetry (formerly eltoo) settlement tx on inquisition signet, using instagibbs' original APO eltoo implementation on CLN.

  1. build and install inquisition signet, you will need this fork of bitcoind for support of APO, ephemeral anchors, and taproot annex blobs
git clone https://github.com/bitcoin-inquisition/bitcoin
cd bitcoin
./autogen.sh
./configure
make -j$(( $(nproc) - 1))
sudo make install
@chrisguida
chrisguida / nixos-rpi4-ssd.md
Last active June 8, 2024 03:40
Installing NixOS on a Raspberry Pi 4B with an SSD as the boot drive

Installing NixOS on a Raspberry Pi 4B with an SSD as the boot drive

You will need:

  • A Pi 4B
  • A USB-C power supply (probably the official one)
  • An ethernet cable
  • A microsd card
  • An SSD, I used the Samsung T7 2TB
  • A powered USB hub (THIS IS ABSOLUTELY REQUIRED OR YOU WILL HAVE TOTALLY UNPREDICTABLE FAILURES AND CORRUPTION)

Installing nix-bitcoin on a OnePlus 6 (enchilada)

Build the image

(See the README for up-to-date instructions)

git clone https://github.com/chrisguida/mobile-nixos-oneplus-enchilada-template -b cguida/nix-bitcoin
cd mobile-nixos-oneplus-enchilada-template
@chrisguida
chrisguida / covenants-rationale.md
Created December 13, 2024 19:00
Rationale for Covenants Support Wiki Page

Rationale for the Covenants Support Wiki Page

Intro

This document is the result of many conversations with many bitcoin devs over the last several years. My positions on these topics are constantly evolving as I learn more information. Since, up till now, I am not a bitcoin core contributor, my review of the actual code has been rather sparse and I am mostly relying on the opinions of others to inform my views as to the technical soundness of the actual implementations. Thus, this document takes a more high-level, "Concept ACK/Concept NACK" approach than an "ACK/NACK" one.

Reasons we must update bitcoin:

  • payments and custody centralizing
  • blocks are too small for all the coffees, Lightning is hard to use (for various reasons)
@chrisguida
chrisguida / tiny-lightning-shop-node-tutorial.md
Last active February 4, 2025 14:55
Tiny Lightning node for shops

How to build a tiny self-custodial node to accept Lightning in your shop

A tutorial for installing Phoenixd and LNBits on an OrangePi Zero 2W and using Zeus Wallet as the PoS app

Cost:

  • USA: US$69
  • Brazil: US$66

Cost breakdown

  • Parts: US$44 if in USA, US$41 if in Brazil
@chrisguida
chrisguida / boltz-mutinynet.md
Last active March 28, 2025 17:47
Deploy boltz-backend and boltz-web-app for mutinynet on debian

prerequisites

make sure you have rust, postgresql17, some other dev libs, and bitcoin/CLN running on mutinynet

rust

google rustup install, follow instructions, then make sure rustc --version does something

postgresql17, libssl-dev, libpq-dev, rsync