Skip to content

Instantly share code, notes, and snippets.

@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
Created April 5, 2026 11:33
my minio config script
#!/usr/bin/env bash
set -e
# =========================
# Prompt Input
# =========================
read -p "MinIO Endpoint (default: http://localhost:9000): " MINIO_ENDPOINT
MINIO_ENDPOINT=${MINIO_ENDPOINT:-http://localhost:9000}
@hunzo
hunzo / .luarc.json
Last active April 3, 2026 08:32
nvim 0.12 v2
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"runtime": {
"version": "LuaJIT"
},
"diagnostics": {
"globals": ["vim"]
},
"workspace": {
"library": ["$VIMRUNTIME/lua", "$VIMRUNTIME/lua/vim/lsp"],
@hunzo
hunzo / init-nolsp.lua
Last active April 2, 2026 16:59
simple nvim 0.12 config
local opt = vim.opt
local g = vim.g
local keymap = vim.keymap
-- Basic editor settings
opt.expandtab = true -- Use spaces instead of tabs
opt.tabstop = 2 -- Number of spaces that a <Tab> in the file counts for
opt.softtabstop = 2 -- Number of spaces that a <Tab> counts for while performing editing operations
opt.shiftwidth = 2 -- Size of an indent
opt.relativenumber = true -- Show relative line numbers