Skip to content

Instantly share code, notes, and snippets.

View STEVLTH's full-sized avatar
💭
ї-bash

STEALTH STEVLTH

💭
ї-bash
View GitHub Profile
#!/bin/bash
set -euo pipefail
echo "This script will install/update Jito Solana."
echo "Current version:"
solana -V
@STEVLTH
STEVLTH / solana-validator-auto-swap-identity.sh
Created June 4, 2025 10:24
A universal script that runs in the background on both the primary and secondary servers and automatically switches staked identity if delinquent status is detected, even if the connection is lost.
#!/bin/bash
# A universal script that runs in the background on both the primary and secondary servers and automatically switches staked identity if delinquent status is detected, even if the connection is lost.
# Usage: Run this script in the background on both validators.
# Solana validator should always start with UNSTAKED identity on both servers. The script will switch to STAKED identity automatically.
#
# BUGS STILL CAN OCCUR. USE IT AT YOUR OWN RISK.
#
# Author: STEALTH
# Validator ID: 93Q99nhdKjuSe6WNXgMBbC3s8QVQEAoHKt91PNRkUkMn
@STEVLTH
STEVLTH / windows-advanced-power-settings-to-markdown.ps1
Created January 22, 2024 21:06 — forked from raspi/windows-advanced-power-settings-to-markdown.ps1
List Windows advanced power settings as MarkDown
# List Windows advanced power settings as MarkDown
# Use:
# this-script.ps1 | Out-File power.md
# Use powercfg to show hidden settings:
# powercfg -attributes <Group GUID> <GUID> -ATTRIB_HIDE
# example:
# powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 06cadf0e-64ed-448a-8927-ce7bf90eb35d -ATTRIB_HIDE
# (c) Pekka "raspi" Järvinen 2017-
$powerSettingSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingSubgroup | Where-Object {$_.ElementName -ne $null}
#!/bin/bash
VLDTRS=$(solana validators --output json-compact)
FOUNDATION_WITHDRAWER="4ZJhPQAgUseCsWhKvJLTmmRRUV74fdoTpQLNfKoekbPY"
commissionRUG=$(jq -r '.validators[] | select(.commission == 100) | .identityPubkey' <<<$VLDTRS)
count=$(echo "$commissionRUG" | wc -l)
echo "Validators with 100% commission: $count"
echo "_______________________________________"
#!/bin/bash
# Solana validator remote identity transfer script v1.0
#
# Before starting, both validators must be running and caught up.
# For the best experience, use ssh keys without a password.
#
# Created: 30 Sep 2023 by STEVLTH
# Discord: .stevlth
# Telegram: https://t.me/STEVLTH
@STEVLTH
STEVLTH / solana-validator threads
Last active September 10, 2023 12:59
solana-validator threads list
solana-validato
solSigUsr1
solMetricsAgent
solAdminRpcEl
solAdminRpcEl
solAdminRpcEl
solAdminRpc
solRayonGlob00
solRayonGlob01
solRayonGlob02