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 | |
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 |
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 | |
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}' |