Skip to content

Instantly share code, notes, and snippets.

@hunzo
hunzo / wifi-info.sh
Created September 18, 2026 03:07
wifi infomation script
#!/usr/bin/env bash
# ============================================================
# wifi-info.sh
# Wi-Fi Information for Arch Linux + NetworkManager
#
# Shows:
# - Interface / SSID / BSSID
# - Wi-Fi 4 / 5 / 6 / 6E / 7
# - PHY: HT / VHT / HE / EHT
@hunzo
hunzo / .env
Created September 15, 2026 02:41
kong and konga config
# Host bindings. Database/Kong secrets.
ADMIN_HTTP_PORT=18001
ADMIN_HTTPS_PORT=18444
PROXY_BIND_IP=0.0.0.0
PROXY_HTTP_PORT=80
PROXY_HTTPS_PORT=443
# KONGA_BIND_IP=0.0.0.0
KONGA_PORT=1337
KONGA_IMAGE=pantsel/konga:latest
@hunzo
hunzo / nvidia-dkms.md
Created September 5, 2026 03:23
NVIDIA DKMS Troubleshooting Runbook

Arch Linux — NVIDIA DKMS Troubleshooting Runbook

Runbook สำหรับแก้ปัญหา NVIDIA Driver บน Arch Linux เมื่อพบ:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.

Environment

@hunzo
hunzo / fix-proxmox-10g.md
Created September 2, 2026 03:53
Proxmox Aquantia 10GbE (atlantic) Troubleshooting & Configuration

Proxmox Aquantia 10GbE (atlantic) Troubleshooting & Configuration

ปัญหา

หลังจาก Restart Proxmox พบว่า Network ไม่ขึ้น

อาการที่พบ:

  • PCI ตรวจพบ Network Card
  • ใช้ Driver atlantic
#!/bin/bash
# ==========================================
# Configuration
# ==========================================
DOMAIN="http://localhost:4000"
LITELLM_KEY="sk-1234xxxx" # เปลี่ยนเป็น API Key ของคุณ
# Colors
GREEN='\033[0;32m'
@hunzo
hunzo / local-mcp.json
Last active August 3, 2026 02:27
mcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"filesystem": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"."
@hunzo
hunzo / .env
Last active July 1, 2026 08:41
LiteLLM docker
LITELLM_MASTER_KEY=lite-llm-master-key
@hunzo
hunzo / opencode.json
Last active June 30, 2026 06:38
opencode exmaple config
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "orchestrator",
"compaction": {
"auto": true,
"prune": true,
"reserved": 4096
},
"provider": {
"litellm-local": {
@hunzo
hunzo / cloud-init.sh
Last active September 10, 2026 08:15
proxmox image cloud-init
#!/usr/bin/env bash
set -Eeuo pipefail
if [[ "${DEBUG:-0}" == "1" ]]; then
set -x
fi
VMID="${VMID:-9001}"
STORAGE="${STORAGE:-local-lvm}"
RELEASE="${RELEASE:-noble}"
@hunzo
hunzo / compose.yaml
Created May 6, 2026 01:45
llama.cpp example
services:
llama-cpp:
image: ghcr.io/ggml-org/llama.cpp:server-cuda
container_name: llama-cpp
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./models:/models
command: