CLI arsenal

หน้านี้จะค่อย ๆ เพิ่ม ไม่ใช่ลิสต์ “top 10” — แต่เป็น ลิสต์จริง ที่อยู่ใน shell history, aliases, และ containers ของผม

  • ezals ที่แสดง git status และ icons
  • fdfind เร็ว ๆ ที่มี defaults ที่พอใช้
  • ripgrep (rg) — grep เร็ว ignore .gitignore
  • batcat ที่มี syntax highlighting
  • fzf — fuzzy finder สำหรับทุกอย่าง

Process & resource

  • htop — interactive process viewer
  • btop — สวยกว่า
  • glances — web-based สำหรับ monitor แบบไม่ใช้ Grafana
  • lsof -i :8080 — ใครใช้ port นี้

Networking

  • dogdig สำหรับมนุษย์
  • cURL — ยังใช้อยู่
  • httpiecurl สำหรับมนุษย์ JSON-aware
  • mtrtraceroute + ping ในตัวเดียว
  • nmap — สำหรับ port scan บางโอกาส

Server ops

  • docker + docker compose — containers แน่นอน
  • caddy — reverse proxy + auto HTTPS
  • restic — encrypted, deduplicated backups
  • fail2ban — (หรือ CrowdSec)
  • ufw — firewall

Monitoring

  • netdata — dashboard สวยต่อ host single Docker container
  • prometheus + grafana — สำหรับ setup จริงจัง
  • uptime-kuma — self-hosted status pages
  • vnstat — bandwidth tracker (long-term trends)

Inside the shell

  • fish — shell ของผม Autosuggestions ในตัว
  • starship — prompt เร็วและ minimal
  • tmux — terminal multiplexer
  • zoxide — smart cd ที่เรียนรู้ habits

Reading config

  • deltagit diff ที่ไม่ทำร้ายสายตา
  • lazygit — TUI สำหรับ git เวลาต้องการ

Aliases ที่ขาดไม่ได้

# ~/.config/fish/config.fish (บางส่วน)
alias ll "eza -l --git --icons"
alias la "eza -la --git --icons"
alias cat "bat --plain"
alias grep "rg"
alias k "kubectl"
alias dc "docker compose"
alias dps "docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"
alias dlog "docker logs -f --tail 100"
alias top "btop"

มีอะไรที่ผมพลาดไหม? บอกได้ — ผมมองหา tool ใหม่ ๆ อยู่เสมอ