Tutorials for Developers & Sysadmins

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.

How to Configure Nginx for a Subdirectory

Configure Nginx to serve a subdirectory like example.com/api/ alongside WordPress — alias, try_files, nested PHP-FPM location, and the SCRIPT_FILENAME pitfall.

how7o

How to Comment in a .gitignore File

Comment in a .gitignore file by starting the line with #. The # must be the first character — inline…

how7o

How to Check Your Ubuntu Version

Check your Ubuntu version with lsb_release -a (clean), cat /etc/os-release (scriptable), cat /etc/issue, hostnamectl, or Settings → About on the…

how7o

How to Check the Linux OS Name and Version from the Command Line

Check the Linux OS name and version from the command line — cat /etc/os-release (universal), lsb_release -a, hostnamectl, and uname…

how7o

How to Check if an Element Is Hidden or Visible with jQuery

Check if an element is hidden in jQuery with $(el).is(':hidden') or :visible. What they cover, what they miss (visibility/opacity), and…

how7o

How to Check if a Checkbox Is Checked with jQuery

Check if a checkbox is checked with jQuery — .prop('checked') for boolean, .is(':checked') for readability, $('input:checked').length for any-checked.

how7o

How to Check if a Bootstrap Modal Is Open or Closed with jQuery

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.

how7o

How to Check the HTTP Referrer with JavaScript

Check the HTTP referrer in JavaScript with document.referrer — match against social-media sources, and the reasons it's often empty in…

how7o

How to Change the Default SSH Port on Linux

Change the default SSH port on Linux (AlmaLinux, Ubuntu, Debian) without locking yourself out — firewall, SELinux semanage, sshd_config, systemctl…

how7o

How to Change the Default Sort Order in DataTables

Change the default sort order in DataTables with the `order: [[col, 'desc']]` option. Server-side request format and how to disable…

how7o