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 / 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 / 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 / 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 / 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 / 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 / bump.sh
Created September 22, 2021 22:52
Simple bash script to bump the version of an xcodeproj and gradle to the same version number
#!/bin/sh
# simple bash script to update the build number to whatever is entered.
appname="yourname"
# variables
pbxproj="ios/$appname.xcodeproj/project.pbxproj";
gradle='android/app/build.gradle';
# get current versions
androidVersion=`cat $gradle |grep -m1 "versionName" | cut -d'"' -f2 | tr -d ';' | tr -d ' '`
@bensig
bensig / expoVersionUpdate.sh
Created September 23, 2021 00:46
Bash Script to Update Expo App Version Code
#!/bin/bash
# Script to bump expo.js version code
# get current versions
currentVersion=`cat app.json|jq '.[] | .android | .versionCode'`
# show current versions
echo "The current version is: $currentVersion"
# get new version from user input
@bensig
bensig / bitcoinbalance.sh
Created November 24, 2021 02:14
Script to get bitcoin balance of any BTC address
#!/bin/bash
# description: prints balance for any bitcoin address
# requirements: jq and curl
# usage: $ bitcoinbalance.sh btcaddress
curl -s https://api.blockcypher.com/v1/btc/main/addrs/$1 | jq '.balance' | awk '{print $1/100000000}'
@bensig
bensig / transaction.sh
Last active January 25, 2022 08:00
Send a transaction with a memo to a list contained in recipients.txt
#!/bin/bash
# This sends an on-chain transaction with a memo defined in the MEMO section.
#
# Usage:
# 1. Create a file such as a "recipients.txt" file where you list all of the recipients one per line
# 2. Set the account and memo under variables below - make sure your wallet is unlokced!
# Then run:
# ./transaction.sh recipients.txt
# variables
@bensig
bensig / versionUpdate.sh
Created January 17, 2022 06:18
Script to update version in Info.plist and app/build.gradle
#!/bin/sh
# bash script to update build number
# variables
PLIST=`find ./ios -name "Info.plist"`
GRADLE=`find ./android/app -name "build.gradle"`
BRANCH=`git symbolic-ref --short -q HEAD`
# announcement
echo