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.
Configure Nginx to serve a subdirectory like example.com/api/ alongside WordPress — alias, try_files, nested PHP-FPM location, and the SCRIPT_FILENAME pitfall.
Comment in a .gitignore file by starting the line with #. The # must be the first character — inline…
Check your Ubuntu version with lsb_release -a (clean), cat /etc/os-release (scriptable), cat /etc/issue, hostnamectl, or Settings → About on the…
Check the Linux OS name and version from the command line — cat /etc/os-release (universal), lsb_release -a, hostnamectl, and uname…
Check if an element is hidden in jQuery with $(el).is(':hidden') or :visible. What they cover, what they miss (visibility/opacity), and…
Check if a checkbox is checked with jQuery — .prop('checked') for boolean, .is(':checked') for readability, $('input:checked').length for any-checked.
Check if a Bootstrap modal is open or closed with jQuery — $('#m').is(':visible') for snapshot, show.bs.modal/shown.bs.modal events for reactive code.
Check the HTTP referrer in JavaScript with document.referrer — match against social-media sources, and the reasons it's often empty in…
Change the default SSH port on Linux (AlmaLinux, Ubuntu, Debian) without locking yourself out — firewall, SELinux semanage, sshd_config, systemctl…
Change the default sort order in DataTables with the `order: [[col, 'desc']]` option. Server-side request format and how to disable…
Sign in to your account