Documenting my ideas and insights on tech.
How to install nvm, Node.js, and npm
These are the steps I followed to install nvm, Node.js, and npm on Windows.
How to install Git and Git Bash on Windows
These are the steps I followed to install Git and Git Bash on Windows.
Calculating the number of days between two dates in PHP
Learn how to calculate the number of days between two dates in PHP.
How to change date format in PHP
Learn how to convert a date to a different format (e.g. “dd/mm/yyyy” to “yyyy-mm-dd”) in PHP.
How to fix the mysql_connect fatal error in WP-CLI
How to fix the “Call to undefined function mysql_connect()” error in WP-CLI.
[Solution] Composer: openssl and curl extensions errors
How to resolve openssl and curl errors when installing a package in Composer.
How to pass multiple parameters, along with the event object, from an event listener to an event handler.
Cloudflare Rules: Fields description
How to find out what each field in Cloudflare rules means and what kind of value it returns.
How to flush permalinks in WordPress
Refreshing WordPress permalinks is very simple to do and can solve various problems with custom post types like 404 errors.
[Solution] Cannot add more than one item to a list block in WordPress 6.1
Learn how to fix the issue where you can’t add more than one item to a list block after updating to WordPress 6.1.
Allow a PHP script to run only through CLI
How to restrict the execution of a PHP script to CLI (Command Line Interface) only (so it doesn’t run through the browser).
How to run a PHP file on a remote server (SSH) via a Bash script
Learn how to execute a PHP file remotely (using SSH) via a Bash script.
How to automatically scroll to an element on a page
Different ways to automatically scroll to a particular HTML element on a page.
Learn how to automatically scroll to an element on a page only if it’s outside the viewport or hidden behind a sticky header.
Smooth scrolling using only CSS
Learn how to create smooth auto-scroll using one simple CSS property.
How to fix auto-scroll position so the target element is not hidden behind a sticky header (using only CSS)
How to run commands on a remote server (SSH) via a Bash script
Learn how to execute (one or more) commands remotely (using SSH) via a Bash script.
How to calculate estimated reading time with PHP
Create a PHP function that retrieves the estimated reading time in minutes for a provided text. Learn how to implement this on a WordPress site.