Skip to content

Instantly share code, notes, and snippets.

@m3dwards
m3dwards / runnercost.md
Created March 12, 2025 17:03
Estimated Runner Costs on Warpbuild
Current Runner Job Monthly Minutes CPUs used now Price per minute Cost per month
Cirrus 32-bit CentOS, dash, gui 196 2x 0.004 0.784
Cirrus ARM, unit tests, no functional tests 4162 2x ARM 0.003 12.486
Cirrus CentOS, depends, gui 12398 2x 0.004 49.592
Cirrus MSan, depends 22770 2x 0.004 91.08
Cirrus TSan, depends, gui 22572 4x 0.008 180.576
Cirrus Win64, unit tests, no gui tests, no functional tests 181 2x 0.004 0.724
Cirrus Win64-cross 5919 2x 0.004 23.676
Cirrus fuzzer,address,undefined,integer, no depends 42529 4x 0.008 340.232
@m3dwards
m3dwards / guix-sigs-mac-docker.md
Last active April 17, 2024 18:04 — forked from hebasto/guix-sigs.md
The `bitcoin-core/guix.sigs` Repository Workflow on Mac with docker
@m3dwards
m3dwards / core-lightning.service
Last active September 18, 2023 13:57
Core Lightning CLN systemd service unit (/etc/systemd/system/core-lightning.service)
[Unit]
Description=Core Lightning
After=network.target
[Service]
ExecStart=/usr/local/bin/lightningd --alias myalias --rbg 000000 --network bitcoin --daemon --pid-file /run/lightningd/lightningd.pid --log-file /home/bitcoin/.lightning/debug.log --proxy 127.0.0.1 --fee-base=0 --fee-per-satoshi=25
PermissionsStartOnly=yes
RuntimeDirectoryMode=0775
RuntimeDirectory=lightningd
RuntimeDirectoryPreserve=yes
@m3dwards
m3dwards / cln-backup.service
Last active September 15, 2023 11:41
CLN static channel (emergency.recover) backup to Backblaze when changes
[Unit]
Description=Core Lightning Backup
After=network.target
[Service]
ExecStart=/opt/lightning/backup.sh
User=bitcoin
Group=bitcoin
Restart=on-failure
RestartSec=20
@m3dwards
m3dwards / bitcoind-start.sh
Last active September 6, 2023 13:02 — forked from jeffrade/bitcoind-start.sh
bitcoind systemd service and start script.
#!/bin/bash
# Just a simple wrapper to start bitcoind.
#
# If using systemd, simply create a file (e.g. /etc/systemd/system/bitcoind.service)
# from example file below and add this script in ExecStart.
# https://raw.521000.best-/bitcoin/bitcoin/76deb30550b2492f9c8d9f0302da32025166e0c5/contrib/init/bitcoind.service
#
# Then run following to always start:
# systemctl enable bitcoind
@m3dwards
m3dwards / delete-branches-containing.sh
Created January 12, 2017 13:29
Deletes all local git branches containing a keyword
#! /bin/bash
git branch | grep "LPA" | xargs git branch -D
#!/bin/bash
# Tune fsync perf for docker mac per
# https://github.com/docker/for-mac/issues/668
# NB: You must be on Docker 1.12.2-rc1-beta27 or greater
cd ~/Library/Containers/com.docker.docker/Data/database/
f="com.docker.driver.amd64-linux/disk/full-sync-on-flush"
git reset --hard
cat $f
@m3dwards
m3dwards / git-pull-all.sh
Created January 3, 2017 11:27
Git checkout master and pull on all immediate directories within current directory.
#! /bin/sh
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git checkout master && echo && git pull && echo)' \;
@m3dwards
m3dwards / ssh_config
Created April 22, 2016 13:10
Connect to github over 443 while using connect.c and cntlm
Host github.com
Hostname ssh.github.com
Port 443
ProxyCommand connect -H 127.0.0.1:3128 %h %p
@m3dwards
m3dwards / gitadd.sh
Created April 22, 2016 12:31
Better git add
function ga {
{ git ls-files -o --exclude-standard --full-name | while read -r file; do
read -u 3 -n 1 -p "Do you wish to add new file \"$file\"? (y/n) " answer
if echo "$answer" | grep -iq "^y" ;then
git add $file
echo $'\nAdded file\n'
else
echo $'\nSkipping file\n'
fi
done; } 3<&0