Skip to content

Instantly share code, notes, and snippets.

View bouroo's full-sized avatar
🏠
Remote Working

Kawin Viriyaprasopsook bouroo

🏠
Remote Working
View GitHub Profile
@bouroo
bouroo / claude
Created November 15, 2025 18:34
ai agent cli with bunx
#!/usr/bin/env sh
if ! command -v bun &> /dev/null; then
echo "Error: Bun is not installed. Install from https://bun.sh/" >&2
exit 1
fi
exec bunx -y @anthropic-ai/claude-code "$@"
@bouroo
bouroo / clamd.md
Created July 11, 2025 14:58
Reduce clamd scan resources usage

Use systemd resource limits

sudo systemctl edit [email protected]

Edit value

[Service]
CPUQuota=50%
Nice=10
IOSchedulingClass=2
@bouroo
bouroo / project_design_expressjs.md
Last active November 24, 2025 02:50
AGENTS.md to let agentic coder better understand project and maintain context across coding sessions.
description globs alwaysApply
Express.js Project System Design Rules (with Bun)
*.ts
*.js
false

Architecture

  • Layered Architecture: Implement clean architecture with presentation, business logic, and data access layers
@bouroo
bouroo / chatbox-exported-data.json
Last active November 2, 2025 12:42
Chat Box config
{"__exported_items":["setting","copilot"],"__exported_at":"2025-11-02T12:40:50.784Z","configVersion":13,"myCopilots":[{"id":"6f015802-aecb-45e4-a558-482854b4af99:aafcd5e4-6d8b-493b-aa92-90748610119d","name":"Helpful assistant","picUrl":"","prompt":"You are Nexus, an efficient AI assistant providing accurate, actionable support.\n\n## Core Directives\n1. **Clarity & Accuracy**: Provide technically accurate, logically structured responses. Prioritize facts over speculation.\n2. **Intent Alignment**: Identify underlying needs. If unclear, ask one targeted clarifying question.\n3. **Efficiency**: Eliminate preamble and filler. Be direct and complete.\n4. **Proactivity**: Suggest relevant next steps or alternatives.\n5. **Professional Tone**: Maintain respectful, calm professionalism.\n\n## Response Structure\nUse markdown for readability:\n1. **Direct Answer**: Core solution immediately\n2. **Explanation**: Necessary context and rationale\n3. **Next Steps**: Suggest relevant actions or resources\n\n## Constraints
@bouroo
bouroo / system instructions.md
Last active September 21, 2025 00:35
AI prompts

Helpful assistant

Purpose and Goals:
- Deliver expert, clear, concise, and precisely aligned output.

Behaviors and Rules:
- Immediately seek clarification if user intent is ambiguous or information is missing.
- Proactively anticipate follow-up questions or suggest relevant improvements when beneficial and concise.
- Prioritize internal knowledge; use external research only when essential for accuracy, completeness, or current information.
@bouroo
bouroo / zed.json
Created May 27, 2025 09:05
zed config
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"features": {
@bouroo
bouroo / Disable-VBS.cmd
Created May 3, 2025 04:29
Script to disable Virtualization Based Security and Credential Guard
@Echo off
cls
Color 04
Echo ##############################################################################
Echo Script to disable Virtualization Based Security and Credential Guard
Echo Version 20250404 by Metis IT
Echo Script started at %date% %time%
Echo .
Echo DISCLAIMER:
Echo .
@bouroo
bouroo / find_by_keywords.go
Last active June 15, 2025 13:46
Find files that contains all keywords
package main
import (
"bufio"
"context"
"encoding/csv"
"fmt"
"os"
"path/filepath"
"runtime"
@bouroo
bouroo / reset_traffic.sh
Created December 22, 2024 06:43
Reset Plesk traffic for both incoming and outgoing HTTP traffic for specific domain.
#!/usr/bin/env bash
# Prompt user to enter the domain
read -p "Please enter the domain (e.g., example.com): " domain
# Get the current year and month
current_year=$(date +%Y)
current_month=$(date +%m)
# Get the first day of the current month
@bouroo
bouroo / upgrade_pg.sh
Last active November 27, 2025 06:26
pgauto docker script to update postgres database data version
#!/usr/bin/env bash
# PostgreSQL Auto Upgrade Script with Version and OS Selection
# Usage: ./upgrade_pg.sh [version] [os] [mount_type]
# Default values
DEFAULT_VERSION="18"
DEFAULT_OS="alpine"
DEFAULT_MOUNT_TYPE="bind"