Skip to content

Instantly share code, notes, and snippets.

View jaonoctus's full-sized avatar

João Dias jaonoctus

View GitHub Profile

Linux Mint - LUKS encryption

You should create encryption on an empty Disk.

You can convert the existing unencrypted system to encrypted, but this is not trivial. (You should use live system to copy all of your old data to the new encrypted partitions...) Example:

#!/bin/bash
PENDRIVE_UUID="1a62326e-a62a-42d7-8836-50717257008a"
PENDRIVE_MOUNTPOINT="/mnt/pendrive"
LUKS_KEY_FILE="luks.key"
LUKS_UUID="e499077a-7040-4a4f-a668-60bcdfbc1a06"
LUKS_MOUNTPOINT="/mnt/storage"
DEVICES_FOLDER="/dev/disk/by-uuid/"
# check if pendrive is attached
https://bitcoin-snapshots.jaonoct.us/
@jaonoctus
jaonoctus / SHA256SUM
Last active April 18, 2024 14:40
Umbrel 09/15/2023
e1da1d315a7e142661b541a681c4914fcbe9f0d797de7fe863b93c2bc49318f2 install_umbrel.sh

BTCPayServer + LNDg

How to install LNDg into your BTCPayServer

Steps

  1. Log into your server via ssh
  2. Clone respository git clone https://github.com/cryptosharks131/lndg.git
  3. Change directory cd lndg
  4. Copy and replace the contents of the docker-compose.yaml with the below:
@jaonoctus
jaonoctus / queryBlockByDate.sh
Last active May 11, 2022 04:12
query a bitcoin block by date / timestamp
#!/bin/bash
# USAGE
# bash queryBlockByDate.sh "06/13/2018 07:30:00"
function bitcoincli () {
bitcoin-cli $@
}
function getBlockTimestamp () {
Collect together concerns (alphabetical order by name) made public about premature BIP 119 activation speculation in https://github.com/JeremyRubin/rubin.io/pull/2
Adam Back: <https://twitter.com/adam3us/status/1477958056776540164?s=20>
AJ Towns: <https://twitter.com/ajtowns/status/1478053356337655808?s=20>
alpacasw: <https://twitter.com/alpacasw/status/1517131243611201537?s=20&t=Jpz4sQywu9dd31sfE32LxQ>
andhans_jail: <https://github.com/JeremyRubin/utxos.org/issues/44>
@jaonoctus
jaonoctus / docker-compose.yml
Created April 20, 2022 06:38
UMBREL USING NAS NFS MOUNTING POINT FOR BITCOIN
version: '3.7'
services:
tor_proxy:
container_name: tor
image: lncm/tor:0.4.5.7@sha256:a83e0d9fd1a35adf025f2f34237ec1810e2a59765988dce1dfb222ca8ef6583c
user: toruser
restart: on-failure
volumes:
- ${PWD}/tor/torrc-proxy:/etc/tor/torrc

Keybase proof

I hereby claim:

  • I am jaonoctus on github.
  • I am jaonoctus (https://keybase.io/jaonoctus) on keybase.
  • I have a public key ASBTpO830Sk6tHjen-S2e8siUnNs4bWdWO12ujF7ibmJCgo

To claim this, I am signing this object:

#! /usr/bin/env python3
import argparse
import json
from decimal import Decimal, ROUND_DOWN
from random import randrange
COIN = 100000000
SATOSHI = Decimal(0.00000001)
KILO = 1000