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
OPENAI_API_KEY=beans2000 | |
GH_TOKEN=beans2001 |
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 | |
# Initialize options | |
follow_redirects=false | |
show_headers_only=false | |
silence_output=false | |
# Process options | |
while getopts "LsI" opt; do | |
case $opt in |
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
import argparse | |
import subprocess | |
import json | |
import re | |
# You need to have the `twitch-cli` installed and configured | |
# Define ANSI color codes | |
colors = { |
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
#!/usr/bin/env bash | |
source <(curl -sL bashmenu.sh) | |
echo "Which protocol would you like to use?" | |
proto_opts=$(echo -e "https\nssh") | |
readarray -t protocols < <(echo "$proto_opts") | |
singleselect "false" result protocols -1 | |
protocol="$result" | |
echo "You have selected: $protocol" |
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
#!/usr/bin/env bash | |
function cavemanget() { | |
local URL=$1 | |
if [ "$URL" = "" ]; then | |
echo "A caveman version of wget" | |
echo "Usage: $0 \"URL\"" | |
return 1 | |
fi |
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
#!/usr/bin/env bash | |
INPUT=$1 | |
NWAIT="${INPUT:-1}" | |
start_block_height=$(chia rpc full_node get_blockchain_state | jq -r '.blockchain_state.peak.height') | |
start_time=$(date +%s) | |
synced_state=$(chia rpc full_node get_blockchain_state | jq -r '.blockchain_state.sync.synced') | |
fakewatch() { |
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
########################### | |
# Easy archive extraction! | |
########################### | |
extract() { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xvjf $1 ;; | |
*.tar.gz) tar -I pigz -xvzf $1 ;; | |
*.tar.zst) tar -I "zstd -T0" -xvf $1 ;; | |
*.bz2) bunzip2 $1 ;; |
Test Case | blspy 1.0.16 | blspy 2.0.2 | blspy 2.0.2 (ADX) |
---|---|---|---|
Signing: 5000 runs (avg) | 2462ms (0.4924ms) | 1246ms (0.2492ms) | 1070ms (0.214ms) |
Verification: 10000 runs (avg) | 16063ms (1.6063ms) | 7605ms (0.7605ms) | 6443ms (0.6443ms) |
Public key validation: 100000 runs (avg) | 13047ms (0.13047ms) | 3769ms (0.03769ms) | 3484ms (0.03484ms) |
Signature validation: 100000 runs (avg) | 14251ms (0.14251ms) | 5522ms (0.05522ms) | 4781ms (0.04781ms) |
Aggregation: 100000 runs (avg) | 147ms (0.00147ms) | 122ms (0.00122ms) | 103ms (0.00103ms) |
Batch verification: 100000 runs (avg) | 68266ms (0.68266ms) | 24965ms (0.24965ms) | 21186ms (0.21186ms) |
PopScheme Aggregation |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
download_dir="." | |
TMPOUT=$(mktemp /tmp/tmpXXXXXXXXXX) | |
while getopts ":d:v" opt; do | |
case ${opt} in | |
d) | |
download_dir=$OPTARG |
NewerOlder