Skip to content

Instantly share code, notes, and snippets.

Avatar
public key cryptography is pretty neat 🔑 🔐

Brian Liotti bliotti

public key cryptography is pretty neat 🔑 🔐
View GitHub Profile
View gist:bad62854fe47031858fdbe9597de5f33
# 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 :
@bliotti
bliotti / docs.chain.link...samples...VRF...RandomNumberConsumer.sol
Last active Oct 10, 2021
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=
View docs.chain.link...samples...VRF...RandomNumberConsumer.sol
@bliotti
bliotti / .deps...npm...@chainlink...contracts...src...v0.8...ConfirmedOwner.sol
Created Oct 10, 2021
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=
View .deps...npm...@chainlink...contracts...src...v0.8...ConfirmedOwner.sol
@bliotti
bliotti / alias-list.md
Last active Aug 14, 2021
alias list for bitcoind, bitcoin-cli, lnd, lncli
View alias-list.md

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 / README.md
Created Jul 10, 2021 — forked from omundy/README.md
Remove Sophos from a Mac with tamper protection
View README.md

Sophos Anti Virus hogging your processor? Can't remove it because of tamper protection?


# change into preferences
cd /Library/Preferences

# confirm locations of sophos files
ls com.sophos.*
@bliotti
bliotti / bitcoin-map-tech-2020.jpg
Last active Jul 10, 2021
Map of Bitcoin 2020
View bitcoin-map-tech-2020.jpg
![bitcoin-map-tech-2020](https://user-images.githubusercontent.com/29641364/125149146-2f533380-e105-11eb-90aa-0ccb8de1eb26.png)
View bitcoin-map-tech-2020.jpeg
����ExifMM*��C 
  $.' ",#(7),01444'9=82<.342��C  2!!22222222222222222222222222222222222222222222222222���"��
���}!1AQa"q2���#B��R��$3br�
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz���������������������������������������������������������������������������
���w!1AQaq"2�B���� #3R�br�
$4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������� ?��(��
(��
(��
(��
(��
@bliotti
bliotti / LinkedList.js
Created Jul 9, 2021 — forked from BretCameron/LinkedList.js
The full LinkedList implementation from this tutorial: https://bit.ly/2mihZac
View LinkedList.js
class LinkedListNode {
constructor(value, next) {
this.value = value;
this.next = next || null;
}
}
class LinkedList {
constructor(value) {
this.size = 0;
View 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