Skip to content

Instantly share code, notes, and snippets.

@budiantoip
budiantoip / Proxmox CLI Cheatsheet.md
Created March 28, 2026 13:17
Proxmox CLI Cheatsheet

Search through the PMG spam spool directories for files containing the quarantine ID

# find /var/spool/pmg/spam/ -name "*A3F72B*" -o -name "*9C43D7*"
  /var/spool/pmg/spam/E5/A3F72B48C1D6F923A4E5
  /var/spool/pmg/spam/D7/A3F72B76E2A9C19C43D7
  /var/spool/pmg/spam/F1/A3F72B2D84B5E3F71CF1
  /var/spool/pmg/spam/93/A3F72B09A6C8D4B52E93
  /var/spool/pmg/spam/A8/A3F72B61F3D7E8C946A8
  /var/spool/pmg/spam/1C/A3F72B35B9E2F4A8D71C
  /var/spool/pmg/spam/6B/A3F72B1C7A4DE63F926B
@budiantoip
budiantoip / Claude_Code_JSON-to-TOON_Hook.md
Last active January 28, 2026 08:06 — forked from maman/README.md
Claude Code JSON-to-TOON Hook

Claude Code JSON-to-TOON Hook

Automatically converts JSON in your Claude Code prompts to TOON format for 30-60% token savings.

What is TOON?

TOON (Token-Oriented Object Notation) is a compact data format optimized for LLMs. Instead of repeating field names in every object, TOON declares them once and streams values as rows.

Example:

@budiantoip
budiantoip / How to speed up process (mysql).md
Last active December 12, 2025 06:39
How to speed up process (mysql)

1. Throttle the process (works everywhere)

Limit CPU

nice -n 15 ionice -c2 -n7 mysql -uUSER -p DBNAME < dump.sql

Hard limit CPU % (install cpulimit)

cpulimit -l 40 -- mysql -uUSER -p DBNAME &lt; dump.sql
@budiantoip
budiantoip / Useful_Launch_Script_for_Ubuntu.md
Last active August 25, 2025 20:43
Useful Launch Script for Ubuntu
# Run update and upgrade
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive \
     apt-get -o Dpkg::Options::="--force-confdef" \
             -o Dpkg::Options::="--force-confnew" \
     -y upgrade
@budiantoip
budiantoip / Vagrant Template.md
Last active August 3, 2025 03:18
Vagrant Template
Vagrant.configure("2") do |config|
    # Vagrant.require_version ">= 1.7"

    config.vm.box = "ubuntu/jammy64" 
    # config.vm.box_version = "4.3.8"

    # Install VirtualBox's Guest Additions CD image
    if Vagrant.has_plugin?("vagrant-vbguest") then
        # config.vbguest.auto_update = true
@budiantoip
budiantoip / Usable MacOS Terminal Utility List.md
Created August 3, 2025 03:08
Usable MacOS Terminal Utility List

A memory usage utility for macOS (similar with 'free' in Linux)

brew tap zfdang/free-for-macOS
brew install free-for-macOS

Put these in wp-config.php

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@budiantoip
budiantoip / Debug Linux Process.md
Last active May 9, 2025 07:29
Debug Linux Process

Show a list of all running nginx processes, along with their PIDs and full command lines

ps -C nginx -o pid,cmd
  • ps -C nginx: select processes with the command name nginx.
  • -o pid,cmd: show only the PID and COMMAND columns.

List the PIDs of all processes with the command name nginx, sorted by start time (oldest first).

@budiantoip
budiantoip / Email Transfer with doveadm and imapsync.md
Last active May 29, 2025 19:20
Email Transfer with doveadm and imapsync

Add a mailbox in Plesk

/usr/local/psa/bin/mail -c someone@somewhere.net -mailbox true -passwd A-Password

doveadm sync

doveadm sync -u super-user@email.com remote:target.server.com