Skip to content

Instantly share code, notes, and snippets.

View ferric-sol's full-sized avatar

ferric ferric-sol

View GitHub Profile
@ferric-sol
ferric-sol / jito_tips.sh
Created December 4, 2024 03:10
jito tips
#!/bin/bash
if [ -z "$1" -o -z "$2" -o -n "$3" ]; then
echo "Usage: jito_tips.sh <epoch> <validator search phrase>"
exit 1
fi
COUNT=`solana-dekey -l "$2" | grep "Vote Account:" | wc -l`
if [ $COUNT -gt 1 ]; then
#!/bin/bash
RAW_STATUS=$(python3 ~/src/starlink-grpc-tools/dish_grpc_text.py -s 2 status)
STARLINK_CONNECTED=$(echo "$RAW_STATUS" | cut -f 5 -d',')
if [[ "${STARLINK_CONNECTED}" == "CONNECTED" ]]; then
STARLINK_CONNECTED='${color green}'"CONNECTED"'${color}'
elif [[ "${STARLINK_CONNECTED}" == "OFFLINE" ]]; then
STARLINK_CONNECTED='${color red}'"OFFLINE"'${color}'
else
STARLINK_CONNECTED='${color yellow}'"${STARLINK_CONNECTED}"'${color}'