Skip to content

Instantly share code, notes, and snippets.

View AnotherDroog's full-sized avatar
📠
decreasing local entropy

Another Droog AnotherDroog

📠
decreasing local entropy
  • Chiang Mai
View GitHub Profile
@meeDamian
meeDamian / arm64bits
Last active September 18, 2019 08:22
This file has been truncated, but you can view the full file.
#!/usr/bin/env bash
trap "exit" INT
HOSTS=( ln@pi-hdd lnd@pi-other )
echo -e "\nCreating backups for ${#HOSTS[*]} hosts…"
@alexbosworth
alexbosworth / inotify-channel-backup.md
Last active March 29, 2024 01:33
Backup channel.backup file using systemd and inotify

LND backup script for channel.backup using inotify

Install inotify

sudo apt install inotify-tools

Create script to watch for changes and copy on change

@meeDamian
meeDamian / 10-uname
Last active September 7, 2018 07:42
This is a MOTD for a raspberry pi running bitcoind and either lnd or lightning (or both). To install, download and execute `install.sh` file.
#!/bin/sh
. /usr/local/lib/metrics/colors.sh
. /usr/local/lib/metrics/board.sh
echo
echo -n "${WHITE}Raspberry Pi ($(get_host), $(get_public_ip), $(get_local_ip))${RESET_STYLE} " && uname -rm
uptime
@meeDamian
meeDamian / bitcoind.sh
Last active September 21, 2018 07:12
This is a series of utility functions to interface with RBP metrics, bitcoind, lnd and lightningd. To install, download and execute `install.sh` file.
#!/bin/sh
. /usr/local/lib/metrics/utilities.sh
# BITCOIN CORE
# ------------
#
# * assumes default ~/.bitcoin folder location
# * tries to detect bitcoin-cli path
# * tries to determine user running bitcoind
@harding
harding / bitcoin-fediverse-best-practices.md
Created August 8, 2018 17:50
Suggestions for how to best get along with other Bitcoiners on the Fediverse (Mastodon/GNU Social/Pleroma/ActivityPub/Etc)

Price toots

Some people really don't want to hear about the price! But this is other people's favorite topic. If you adhear to the following two rules whenever talking about price, or something related to the price like altcoin prices, we should all be able to continue interacting about our common interests in Bitcoin:

  1. Use a Content Warning (the CW in the Mastodon user interface) to allow people to opt-into seeing your price-related information and images. Note that replies to CW-content are also automatically wrapped in the same CW.

Scriptless Script for DLC

Scriptless Script

Assumptions

pk_script
<witness version 0x0X> <public key / EC point : P >

@DenisFromHR
DenisFromHR / RPi_I2C_driver.py
Last active December 1, 2023 21:05
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
"""
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
Made available under GNU GENERAL PUBLIC LICENSE
# Modified Python I2C library for Raspberry Pi
# as found on http://www.recantha.co.uk/blog/?p=4849
# Joined existing 'i2c_lib.py' and 'lcddriver.py' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)