Skip to content

Instantly share code, notes, and snippets.

View hungthai1401's full-sized avatar
πŸš€
Focusing

Thai Nguyen Hung hungthai1401

πŸš€
Focusing
View GitHub Profile
@hungthai1401
hungthai1401 / .tmux.conf
Created August 12, 2025 06:56 — forked from adibhanna/.tmux.conf
.tmux.conf
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Increase scrollback buffer size
set -g history-limit 10000
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@hungthai1401
hungthai1401 / nginx.conf
Created July 16, 2025 01:50
Improve Nginx config
user nginx;
worker_processes auto;
worker_cpu_affinity auto;
# Change the default thread pool settings
thread_pool default threads=2 max_queue=16384;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {

How to Build & Run Dockerized ArogCD CLI

This quick guide shows you how to build a Dockerized argocd CLI. The advantage of this setup is that it's platform-independent. Also, I personally found the Linux installation annoying and buggy, and this proves to be a much more streamlined approach. Interestingly enough, the MacOS and the Windows installers were way less finnicky.

Dockerfile

Save the text below to Dockerfile.argocd in a folder called docker

FROM argoproj/argocd:v1.7.6 as builder
.
β”œβ”€β”€ books
β”‚Β Β  β”œβ”€β”€ handlers.go
β”‚Β Β  └── models.go
β”œβ”€β”€ config
β”‚Β Β  └── db.go
└── main.go
@hungthai1401
hungthai1401 / .roomodes.json
Created April 2, 2025 08:15 — forked from ruvnet/.roomodes.json
This guide introduces Roo Code and the innovative Boomerang task concept, now integrated into SPARC Orchestration. By following the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion) and leveraging advanced reasoning models such as o3, Sonnet 3.7 Thinking, and DeepSeek, you can efficiently break down complex proj…
{
"customModes": [
{
"slug": "sparc",
"name": "⚑️ SPARC Orchestrator",
"roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.",
"customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\nβœ… Files < 500 lines\nβœ… No hard-coded
@hungthai1401
hungthai1401 / prd_tod.txt
Created April 1, 2025 07:03 — forked from Dowwie/prd_tod.txt
Product requirement document generation using LLM task oriented dialogue
This is an LLM-assisted workflow for creating a product requirement document using LLM assistance for task completion.
It keeps track of inputs for the template and works with the user to acquire them, finally generating a completed PRD
prompt when all slots are addressed.
credit: Ian Nuttall - https://gist.github.com/iannuttall/f3d425ad5610923a32397a687758ebf2
**System-Prompt for Facilitating Chat-Based PRD Creation**
@hungthai1401
hungthai1401 / cline_custom_modes.json
Created April 1, 2025 03:46 — forked from iamhenry/custom_modes.yaml
My Roocode Custom Modes Config
{
"customModes": [
{
"slug": "code-my-lean-expirimental",
"name": "Code (My Lean Expirimental)",
"roleDefinition": "You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
"groups": [
"read",
"edit",
"browser",

MCP Server Requirements Document

You are an expert AI systems architect specializing in Model Context Protocol (MCP) server development (https://modelcontextprotocol.io/). Create a comprehensive, detailed implementation plan for the following MCP server:

Project Overview

[Provide a concise description of your MCP server concept - what it does and the primary value it delivers]

  • Example: "This MCP server enables real-time context sharing between AI models and client applications, improving response accuracy and user interaction efficiency."

Target Users & Use Cases

@hungthai1401
hungthai1401 / actionlist.vim
Created January 14, 2025 03:40 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>