Step-by-step guides for the work we actually do — Laravel, PHP, WordPress, MySQL, Linux servers, and the occasional rabbit hole. Every command has been run on a real machine; nothing is theoretical.
Run a Node.js application from a Windows .bat file — npm start in a one-line script, plus a robust 'cd…
Run a cron job as a non-root user with crontab -e (per user), sudo crontab -u username -e (from root),…
Reset the LiteSpeed WebAdmin Console password by running /usr/local/lsws/admin/misc/admpass.sh as root. Change takes effect immediately — no service restart needed.
Replace strings in a MySQL database with UPDATE + REPLACE(col, 'old', 'new'). Includes WordPress example, REGEXP_REPLACE pattern variant, and the…
Rename WooCommerce My Account menu items with the woocommerce_account_menu_items filter. Includes default keys, reordering, removing, and a debug dump pattern.
Remove unwanted characters from a PHP string with preg_replace and a negated character class. Includes URL-slug pattern and Unicode-safe \p{L}\p{N}…
Safely clean up MySQL binary log files (mysql-bin.*) with PURGE BINARY LOGS — never rm them directly. Includes replica-safety check…
Completely remove MariaDB on RHEL, AlmaLinux, Rocky, or CentOS: stop the service, dnf/yum remove, delete /var/lib/mysql and /etc/my.cnf, then optionally…
Remove all non-numeric characters from a PHP string with preg_replace('/\D/', '', $str) or filter_var($str, FILTER_SANITIZE_NUMBER_INT). Includes decimal & sign variants.
Reload DataTables with a new Ajax URL without reinitializing — table.ajax.url('new-endpoint').load(). Includes preserve-page reload and ajax.data filter pattern.
Sign in to your account