Skip to content

Instantly share code, notes, and snippets.

View Max-Sum's full-sized avatar

Max Sum Max-Sum

  • Pentas Vision Pte.
  • Singapore
View GitHub Profile
@Max-Sum
Max-Sum / setup-ssh-sync.sh
Last active October 21, 2025 09:45 — forked from hayd1n/setup-ssh-sync.sh
🔐 Auto-installer for ssh-key-sync with systemd timer on Linux. Automatically detects OS and architecture, downloads the correct binary, and sets up periodic GitHub SSH key syncing.
#!/bin/bash
set -e
# === CONFIGURATION ===
VERSION="1.7.3"
SSH_DIR="${HOME}/.ssh"
GITHUB_USER="Max-Sum" # <--- Your GitHub username here
# === Detect OS ===
@Max-Sum
Max-Sum / taskset.sh
Last active February 5, 2019 06:56 — forked from ayufan/taskset.sh
KVM CPU pinning for Proxmox VE
#!/bin/bash
set -eo pipefail
VMID=200
cpu_tasks() {
expect <<EOF | sed -n 's/^.* CPU .*thread_id=\(.*\)$/\1/p' | tr -d '\r' || true
spawn qm monitor $VMID
expect ">"