Refactor code for improved readability and performance

This commit is contained in:
defiQUG
2025-12-21 22:32:09 -08:00
parent 79e3c02f50
commit b45c2006be
2259 changed files with 380318 additions and 2 deletions

19
scripts/ssh-proxmox.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# SSH to Proxmox host with locale warnings suppressed
# Usage: ./scripts/ssh-proxmox.sh [command]
HOST="${PROXMOX_HOST:-192.168.11.10}"
USER="${PROXMOX_USER:-root}"
# Suppress locale warnings
export LC_ALL=C
export LANG=C
if [[ $# -eq 0 ]]; then
# Interactive SSH (suppress locale warnings)
ssh "$USER@$HOST" "export LC_ALL=C; export LANG=C; bash"
else
# Execute command (suppress locale warnings)
ssh "$USER@$HOST" "export LC_ALL=C; export LANG=C; $@"
fi