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
![bitcoin-map-tech-2020](https://user-images.githubusercontent.com/29641364/125149146-2f533380-e105-11eb-90aa-0ccb8de1eb26.png) |
- 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"'
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "./ConfirmedOwnerWithProposal.sol"; | |
/** | |
* @title The ConfirmedOwner contract | |
* @notice A contract with helpers for basic contract ownership. | |
*/ | |
contract ConfirmedOwner is ConfirmedOwnerWithProposal { |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; | |
/** | |
* THIS IS AN EXAMPLE CONTRACT WHICH USES HARDCODED VALUES FOR CLARITY. | |
* PLEASE DO NOT USE THIS CODE IN PRODUCTION. | |
*/ | |
contract RandomNumberConsumer is VRFConsumerBase { |
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 : |
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
#!/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
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 |