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 / bitcoin-map-tech-2020.jpg
Last active July 10, 2021 02:42
Map of Bitcoin 2020
![bitcoin-map-tech-2020](https://user-images.githubusercontent.com/29641364/125149146-2f533380-e105-11eb-90aa-0ccb8de1eb26.png)
@bliotti
bliotti / map of bitcoin.md
Created July 10, 2021 02:44
map of bitcoin 2021

image

@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 / .deps...npm...@chainlink...contracts...src...v0.8...ConfirmedOwner.sol
Created October 10, 2021 04:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
@bliotti
bliotti / docs.chain.link...samples...VRF...RandomNumberConsumer.sol
Last active October 10, 2021 05:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
# https://unix.stackexchange.com/questions/334382/find-out-what-scripts-are-being-run-by-bash-at-login
# prepends the given path(s) to the supplied PATH variable
# ex. add_to_path 'PATH' "$(go env GOPATH)/bin"
function add_to_path() {
# (P)1 path is expanded from $1
# ##: Removes leading :
local -x pth="${(P)1##:}"
# (s.:.) splits the given variable at :

Install MongoDB and Python wrapper (Ubuntu Linux)

sudo apt-get install -y mongodb-org
pip install pymongo
pip3 install pymongo

Start MongoDB daemon

alias lncli0='docker exec -it playground-lnd-0 lncli --macaroonpath /root/.lnd/data/chain/bitcoin/signet/admin.macaroon '
alias lncli1='docker exec -it playground-lnd-1 lncli --macaroonpath /root/.lnd/data/chain/bitcoin/signet/admin.macaroon '
alias lncli2='docker exec -it playground-lnd-2 lncli --macaroonpath /root/.lnd/data/chain/bitcoin/signet/admin.macaroon '
@bliotti
bliotti / go.sh
Last active February 2, 2023 01:17
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# docker run -it -v "$(pwd)":/mnt --name ordy debian
# Debian GNU/Linux 11 (bullseye)
# apt update && apt install curl
set -x
@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