Skip to content

Instantly share code, notes, and snippets.

@goto5k
goto5k / setup.ps1
Last active September 6, 2025 13:56
# ===== Hetzner IPv4 /32 one-input setup + RDP + High Performance + No Disk Sleep =====
$ip = Read-Host "Enter your public IPv4 (e.g. 157.180.xx.xx)"
if (-not ($ip -match '^\d{1,3}(\.\d{1,3}){3}$')) { throw "Invalid IPv4: $ip" }
# 1) Active NIC
$if = (Get-NetAdapter | Where-Object {$_.Status -eq 'Up'} | Sort-Object ifIndex | Select-Object -First 1).Name
if (-not $if) { throw "No active network adapter found." }
Write-Host "Using interface: $if" -ForegroundColor Yellow
#!/bin/bash
# File name for saving parameters, e.g. "cosmos.log"
LOG_FILE="$HOME/alerts/nodealerts.log"
# Your node RPC address, e.g. "http://127.0.0.1:17657"
NODE_RPC="http://127.0.0.1:17657"
source
# Trusted node RPC address, e.g. "https://rpc.cosmos.network:17657"
SIDE_RPC="https://snapshot-1.euphoria.aura.network:443"
ip=$(wget -qO- eth0.me)
### Keybase proof
I hereby claim:
* I am goto5k on github.
* I am goto5k (https://keybase.io/goto5k) on keybase.
* I have a public key ASA4RTxEFkb2p_h4HAuWC2MUV0JCYjFzLfG8Fi2P6tjKvQo
To claim this, I am signing this object: