Skip to content

Instantly share code, notes, and snippets.

View bliotti's full-sized avatar
public key cryptography is pretty neat 🔑 🔐

Brian Liotti bliotti

public key cryptography is pretty neat 🔑 🔐
View GitHub Profile
@bliotti
bliotti / copy-ssd.sh
Last active February 6, 2023 08:58
copy ssd raspibolt
sudo systemctl stop btcrpcexplorer
sudo systemctl stop bos-telegram.service
sudo systemctl stop rtl
sudo systemctl stop thunderhub
sudo systemctl stop electrs
sudo systemctl stop lnd
sudo systemctl stop bitcoind
sudo systemctl disable btcrpcexplorer.service
sudo systemctl disable bos-telegram.service
@bliotti
bliotti / alias-list.md
Last active August 14, 2021 17:32
alias list for bitcoind, bitcoin-cli, lnd, lncli

These can be added to your .bashrc or .zshrc

some cmd's require jq tool.
  • linux - sudo apt-get install jq
  • mac - brew install jq
alias btcinfo='bitcoin-cli getwalletinfo | egrep "\"balance\""; bitcoin-cli getnetworkinfo | egrep "\"version\"|connections"; bitcoin-cli getmininginfo | egrep "\"blocks\"|errors"'
@bliotti
bliotti / QR Codes on LND.md
Created July 7, 2021 01:01
QR codes on LND.md

create QR codes on LND

sudo apt-get install qrencode jq
lncli newaddress np2wkh | jq -c -r .address |qrencode -t ASCII -m 5
@bliotti
bliotti / monitor-pi.sh
Created June 7, 2021 21:11
Monitors Ras Pi temp.
#!/bin/bash
Counter=14
DisplayHeader="Time Temp CPU Core Health Vcore PMIC"
while true ; do
let ++Counter
if [ ${Counter} -eq 15 ]; then
echo -e "${DisplayHeader}"
Counter=0
fi
Health=$(perl -e "printf \"%19b\n\", $(vcgencmd get_throttled | cut -f2 -d=)")
@bliotti
bliotti / cluster-issuer.yaml
Last active May 15, 2021 03:00 — forked from lvnilesh/cluster-issuer.yaml
DNS acme cluster-issuer.yaml - third time is a charm
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-staging
namespace: cert-manager
spec:
acme:
email: brian@liotti.io
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
@bliotti
bliotti / cloudSettings
Last active March 4, 2020 17:50
Visual Studio Code Settings Sync Gist WINDOWS
{"lastUpload":"2020-03-04T17:50:36.301Z","extensionVersion":"v3.4.3"}
@BretCameron
BretCameron / LinkedList.js
Created September 30, 2019 09:16
The full LinkedList implementation from this tutorial: https://bit.ly/2mihZac
class LinkedListNode {
constructor(value, next) {
this.value = value;
this.next = next || null;
}
}
class LinkedList {
constructor(value) {
this.size = 0;
@bliotti
bliotti / cloudSettings
Last active November 17, 2019 11:59
Visual Studio Code Settings Sync Gist OSX
{"lastUpload":"2019-11-17T11:59:30.763Z","extensionVersion":"v3.4.3"}
[Application Options]
lnddir=/home/bitcoin/lnd_data
maxpendingchannels=10
alias=YOURALIAS
rpclisten=0.0.0.0:10009
[Bitcoin]
bitcoin.active=1
bitcoin.mainnet=1
bitcoin.node=bitcoind
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.