I hereby claim:
- I am gotjoshua on github.
- I am begreen (https://keybase.io/begreen) on keybase.
- I have a public key ASA2H7IK0f8q73cfaoB1GIaInsR-M8L7N9LW9JzcJSiRvAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # usage tasks.sh BATCHES PretixOfExistingKeys SigningKeyName ToWhatAddress | |
| read -e -s -p "Keyring pass?" PP | |
| BATCHES=${1:-12} | |
| MAX_WALLET=${2:-400} | |
| BATCH_SIZE=$((MAX_WALLET / BATCHES)) |
| #!/bin/bash | |
| # | |
| # usage tasks.sh START END NewAdressesPrefix SendingKeyName | |
| read -e -s -p "Keyring pass?" PP | |
| START=${1:-0} | |
| END=${2:-380} | |
| RANGE=$(eval echo {$START..$END}) |
| #!/bin/bash | |
| # usage tasks.sh BATCHES MaxWalletNumber MinWalletNumber PrefixOfExistingKeys SigningKeyName ToWhatAddress | |
| read -e -s -p "Keyring pass?" PP | |
| BATCHES=${1:-10} | |
| MAX_WALLET=${2:-400} | |
| MIN_WALLET=${3:-0} |
| #!/bin/bash | |
| BLOCK_HEIGHT=${1:-42672} # the block with most txs during the stress test | |
| eachPage=1 | |
| # escaping syntax from https://pkg.go.dev/github.com/qredo/tendermint/rpc/core#TxSearch | |
| CMD="regen query txs --events 'tx.height=${BLOCK_HEIGHT}' --limit 100 --page=${eachPage}" | |
| echo 'First Page:' | |
| echo "$CMD | jq ." | |
| RESULT=$(eval $CMD) |
| #!/bin/bash | |
| START_HEIGHT=${1:-41500} | |
| END_HEIGHT=${2:-43200} | |
| NODE="--node http://${3:-161.35.51.84}:26657" | |
| LOOP_RANGE=$(eval echo {$START_HEIGHT..$END_HEIGHT}) | |
| RUNNING_MEMOS=() | |
| for BLOCK_HEIGHT in $LOOP_RANGE; do |
| #!/bin/bash | |
| #source profile with GO path etc | |
| . /etc/profile.d/regen.sh | |
| x=1 | |
| limit=${1:-100} | |
| while [ $x -le $limit ] | |
| do | |
| UPSTREAM_BLOCKS=$(curl -s http://161.35.51.84:26657/consensus_state | jq -r '.result.round_state."height/round/step"' | cut -d'/' -f1) |
| Moralis.Cloud.beforeConsume('Shipped', (event) => { | |
| if (!event.confirmed) return false | |
| delete event.address | |
| delete event.confirmed | |
| delete event.block_hash | |
| log(`beforeConsume - ${event}`) | |
| return true | |
| }) | |
| Moralis.Cloud.afterSave('Shipped', async (request) => { |
| const sendToDiscord = async (channelHookURL, content) => { | |
| // https://discord.com/developers/docs/resources/webhook#execute-webhook | |
| let httpResponse; let status = 'success' | |
| try { | |
| httpResponse = await Moralis.Cloud.httpRequest({ | |
| method: 'POST', | |
| url: channelHookURL, | |
| body: { | |
| flags: 1 << 2, // not working attempt to prevent links from embedding | |
| content, |
| "convert for of loop topline to use index" : { | |
| "prefix": "fc", | |
| "body": ["${TM_SELECTED_TEXT/(for \\(const )(.*) of (.*)\\) {/$1[idx, $2] of $3.entries()) {/}"], | |
| "description": "to use this snippet, select the top line of your for loop, type fc on top of it, choose snippet" | |
| }, |