Skip to content

Instantly share code, notes, and snippets.

View bensig's full-sized avatar
🚀
libre.org

Ben Sigman bensig

🚀
libre.org
View GitHub Profile
@bensig
bensig / publish-expo-android.md
Created August 30, 2021 19:51
Publishing an Expo App for Android

#Publishing an Expo App for Android

  1. Make sure you have the pc-api-*.json for the Google Service Account
  2. Increment "versionCode" in app.json
  3. Run eas build --platform android
  4. Run eas submit --platform android
@bensig
bensig / Transcribe_YouTube.md
Last active July 14, 2021 02:30
How to Transcribe Any YouTube Video

How to Transcribe Any YouTube Quickly and for Free

Requirements - Mac or Linux and you must have jq installed

On Mac install these via terminal:

  • brew with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • jq with brew install jq

Getting the transcription of the audio from YouTube:

  1. Open the video in Chrome or Brave - start playing
  2. Right click the background and choose "Inspect"
@bensig
bensig / committee-multisig.sh
Last active March 16, 2022 19:08
Propose MSIG on Proton for Committee Worker Proposal payments
#/bin/sh
# Set the permission of the proposing account
ACCOUNTPERM="quantumblok@active"
# Get user input
echo "You may need to set your account permission first - check the contents of this script"
echo ""
read -p "Enter the name of the proposal: " NAME
read -p "Enter the name of the account to pay: " PAYEE
@bensig
bensig / bos-rebalance-output.txt
Created July 12, 2021 06:41
bos rebalance output
bos rebalance --amount 5000000 --out SatBase.org --in lnd-37 --avoid 0309bd6a02c71f288977b15ec3ac7283cfdd3d17dde65732981d5a718aa5fb0ebc --avoid 0260fab633066ed7b1d9b9b8a0fac87e1579d1709e874d28a0d171a1f5c43bb877 --max-fee-rate 700
outgoing_peer_to_increase_inbound: SatBase.org 02bcc7d378263af7a5dca103f16f5c94ffdfb63c161433764973904f50688a9071
incoming_peer_to_decrease_inbound: LNBIG.com [lnd-37] 022c260f9ad58196af280c80a96ec9eabf6404df59ff1a7553b0f381c875a29ba0
rebalance_target_amount: 0.05000000
circular_rebalance_for: Libre [fire] 03e036c7da199f4dd1f2ea0eaedf2ba6142850553671cdc7d502ec382173ba9396
evaluating:
- 690670x884x1 ★ ★ ★ ☆
@bensig
bensig / create-proton-account.md
Last active June 30, 2021 19:00
Creating Accounts on Proton

Creating a Proton Account

Creating an account on Proton requires 3 actions that must be bundled together:

  1. Create account with new public key account: 'eosio', name: 'newaccount'
  2. Buy RAM for new account - minimum 3k - suggested 12k account: 'eosio', name: 'buyrambytes'
  3. Resource New Account in Proton users table
@bensig
bensig / btcd.service
Last active July 4, 2021 02:24
btcd systemd service example
[Unit]
Description=Bitcoin Go daemon
After=network.target
[Service]
User=<username>
Group=<username>
PIDFile=/home/<username>/.btcd/btcd.pid
ExecStart=/home/<username>/go/bin/btcd
KillMode=process
@bensig
bensig / install-btcd.sh
Last active June 21, 2021 06:09
install btcd using go
# install go
sudo snap install --classic go
mkdir ~/go
echo “export GOPATH=$HOME/go” >> .bashrc
echo “export PATH=$PATH:$GOROOT/bin:$GOPATH/bin” >> .bashrc
source .bashrc
# install btcd
cd $GOPATH/pkg/mod/github.com/btcsuite/btcd
GO111MODULE=on go install -v . ./cmd/...
@bensig
bensig / check_btcd_sync.sh
Last active October 30, 2021 09:51
simple script to check the bitcoin sync level of your btcd node
# simple script to check the bitcoin sync level of your btcd node
echo `btcctl -s localhost:8337 getbestblock|jq -r -c .height`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l
@bensig
bensig / check_bitcoind_sync.sh
Last active October 30, 2021 10:34
Check bitcoind sync level
# simple script to check the bitcoin sync level of your bitcoind node
echo `bitcoin-cli getblockcount 2>&1`/`curl -s https://blockchain.info/q/getblockcount 2>/dev/null`*100|bc -l
@bensig
bensig / install-neutrino.sh
Created June 20, 2021 23:36
installing neutrino like a boss
# clone neutrino
mkdir -d ~/go/pkg/neutrino
git clone https://github.com/lightninglabs/neutrino.git ~/neutrino
make all