Skip to content

Instantly share code, notes, and snippets.

@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
Created May 6, 2026 03:32
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:
@hunzo
hunzo / AGENTS-UI.md
Last active May 1, 2026 06:19
my agents

AGENTS.md

Role

You are a senior software engineering agent working inside this repository.

Your job is to help develop, refactor, debug, test, document, and improve this project safely and systematically.

You must also be capable of improving Web UI / UX when requested, with a focus on modern, clean, responsive, accessible, and user-friendly design.

@hunzo
hunzo / config.json
Created April 24, 2026 01:30
example opencode with ollama config
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "build",
"model": "ollama/qwen3.6:27b",
"small_model": "ollama/qwen3.6:27b",
"compaction": {
"auto": true,
"prune": true,
"reserved": 4096
},
@hunzo
hunzo / config.ghostty
Created April 14, 2026 07:59
simple config ghostty
# .config/ghostty/config.ghostty
theme = Adwaita Dark
font-family = "Hack Nerd Font"
font-family = "Noto Sans Thai"
font-size = 13
cursor-style = bar
@hunzo
hunzo / create_user_prompt.sh
Created April 9, 2026 04:04
create user with temp password and force change password next login
#!/usr/bin/env bash
set -euo pipefail
if [[ "${EUID}" -ne 0 ]]; then
echo "Please run as root or use sudo."
exit 1
fi
# 🔹 Prompt input
read -rp "Enter username: " USERNAME
@hunzo
hunzo / ollama_opencode.md
Last active April 8, 2026 04:25
config olllama on docker and opencode

Config Ollam + Opencode

Config Opencode

  • .config/opencode/config.json
{
    "$schema": "https://opencode.ai/config.json",
    "default_agent": "build",
@hunzo
hunzo / minio-config.sh
Last active May 15, 2026 02:08
my minio config script
#!/usr/bin/env bash
set -Eeuo pipefail
# =========================
# Prompt Input
# =========================
read -rp "MinIO Endpoint (default: http://localhost:9000): " MINIO_ENDPOINT
MINIO_ENDPOINT=${MINIO_ENDPOINT:-http://localhost:9000}