This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fix either in bash | |
# ~/.bashrc | |
bind '"\C-H":backward-kill-word' | |
# or in wt.exe (Windows Terminal) | |
# // %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json | |
{ | |
"actions": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Brian Liotti", | |
"label": "Software Guy", | |
"image": "", | |
"email": "bliotti@protonmail.com", | |
"phone": "(317) 213-0886", | |
"url": "https://coinguy.io", | |
"summary": "Software Developer and Engineer, Bitcoin source code dev/contributor", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
const generateCardImage = async (cardNumber, cardChoices) => { | |
const canvas = createCanvas(format.width, format.height); | |
const ctx = canvas.getContext("2d"); | |
console.log("Creating #", cardNumber) | |
ctx.clearRect(0, 0, format.width, format.height); | |
ctx.globalAlpha = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Copyright (c) 2017-2022 The Bitcoin Core developers | |
# Distributed under the MIT software license, see the accompanying | |
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | |
"""An example functional test | |
The module-level docstring should include a high-level description of | |
what the test is doing. It's the first thing people see when they open | |
the file and should give the reader information about *what* the test | |
is testing and *how* it's being tested |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ~/.ssh -name '*.pub' | xargs -I _ ssh-keygen -l -E sha256 -f _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run these once, to set aliases to git | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.sw switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 : |
NewerOlder