❯ mise upgrade
gpg: WARNING: server 'keyboxd' is older than us (2.4.9 < 2.5.18)
gpg: WARNING: server 'keyboxd' is older than us (2.4.9 < 2.5.18)
gpg: Signature made Wed Mar 25 04:38:51 2026 CST
gpg: using RSA key 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4
gpg: WARNING: server 'keyboxd' is older than us (2.4.9 < 2.5.18)
gpg: Can't check signature: No public key
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| log() { printf '\033[1;32m[INFO]\033[0m %s\n' "$*"; } | |
| warn() { printf '\033[1;33m[WARN]\033[0m %s\n' "$*"; } | |
| err() { printf '\033[1;31m[ERR ]\033[0m %s\n' "$*" >&2; } | |
| require_root() { | |
| if [ "${EUID:-$(id -u)}" -ne 0 ]; then | |
| err "請用 sudo 執行:sudo bash $0" |
This file contains hidden or 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
| echo "=== 1. Hostname & IP ===" | |
| hostname | |
| ip -4 addr show | grep inet | grep -v 127.0.0 | |
| echo "" | |
| echo "=== 2. Default route ===" | |
| ip route show default | |
| echo "" | |
| echo "=== 3. Outgoing connectivity ===" |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| OUT="/tmp/teampcp_triage_$(hostname)_$(date +%F_%H%M%S).txt" | |
| IOC='checkmarx\.zone|scan\.aquasecurity\.org|models\.litellm\.cloud|litellm\.cloud|tpcp\.tar\.gz|docs-tpcp|tpcp-docs|sysmon\.py|sysmon\.service|litellm_init\.pth' | |
| { | |
| echo "## host" | |
| hostname | |
| date |
This file contains hidden or 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
| [Unit] | |
| Description=Update scanner and malicious IP blocklists | |
| After=network-online.target | |
| Wants=network-online.target | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/local/sbin/block-scanners.sh input-only | |
| TimeoutStartSec=30min | |
| Nice=10 |
This file contains hidden or 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
| sudo apt-get remove --purge -y grub-cloud-amd64 || true | |
| sudo dpkg --configure -a | |
| sudo apt-get install -f -y | |
| dpkg -l | grep grub-cloud-amd64 || true | |
| dpkg --audit || true | |
| apt update; apt upgrade -y | |
| apt -y autoremove --purge; | |
| update-grub; |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| export DEBIAN_FRONTEND=noninteractive | |
| DNSDIST_CHANNEL="${DNSDIST_CHANNEL:-21}" # default 21 https://repo.powerdns.com/ | |
| APT_DIR="/etc/apt" | |
| SOURCES_DIR="/etc/apt/sources.list.d" | |
| PREF_DIR="/etc/apt/preferences.d" | |
| KEYRING_DIR="/etc/apt/keyrings" |
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
NewerOlder