How to Count the Number of Files in a Folder Efficiently (Even for Large Directories)

When working with folders that contain a huge number of files, counting them efficiently becomes crucial, especially in high-performance or automated environments. In this guide, we’ll explore different ways to count files in a directory using Linux command-line tools and Perl scripting. 📌 Method 1: Using ls and wc (Fast and Simple) If you’re dealing … Continue reading How to Count the Number of Files in a Folder Efficiently (Even for Large Directories)

Ultimate Guide to Installing Software on Ubuntu 24.04

Ubuntu 24.04 is a powerful and user-friendly Linux distribution, but new users often wonder how to install software efficiently. In this guide, we’ll explore multiple ways to install applications, from traditional package managers to direct .deb installations. 1. Installing Software via APT (Recommended) APT (Advanced Package Tool) is the default package manager in Ubuntu. It’s … Continue reading Ultimate Guide to Installing Software on Ubuntu 24.04

How to Get PostgreSQL Version Using SQL Query

When working with PostgreSQL, it’s often necessary to check the version of the database server to ensure compatibility with features, extensions, and security updates. Here’s a quick guide on how to retrieve the PostgreSQL version using SQL queries. Using version() Function The simplest way to get detailed PostgreSQL version information is by running the following … Continue reading How to Get PostgreSQL Version Using SQL Query

Changing Domain from rndpwd.info to rndpwd.shkodenko.com

Random Password Generator

We are excited to announce that our service, previously accessible at https://rndpwd.info, has now moved to a new domain: https://rndpwd.shkodenko.com. Why the Change? This transition allows us to integrate our service under a unified domain, making it easier to manage and ensuring better branding consistency. All functionalities remain the same, and we are committed to … Continue reading Changing Domain from rndpwd.info to rndpwd.shkodenko.com

Extracting and Using an RSA Public Key for JWT Verification in Laravel

Introduction When working with JWT authentication in Laravel, you may encounter the error: openssl_verify(): Supplied key param cannot be coerced into a public key This typically happens when verifying an RS256-signed JWT with an incorrect or improperly formatted public key. In this guide, we’ll walk through the steps to extract and use the correct RSA … Continue reading Extracting and Using an RSA Public Key for JWT Verification in Laravel

Analyze Laravel code for upgrading PostgreSQL database version

Checking PHP Code and Laravel Migrations for PostgreSQL database version upgrade from 14 to 17 Compatibility Upgrading your PostgreSQL database from version 14 to 17 is an excellent way to take advantage of new features and performance improvements. However, ensuring that your Laravel application’s PHP code and migrations are compatible with both versions is critical … Continue reading Analyze Laravel code for upgrading PostgreSQL database version

Linux tail Command: How to Display and Track the Last Part of a File

Linux tail Command: How to Display and Track the Last Part of a File The tail command in Linux is a powerful utility that allows users to display the last part (or “tail”) of a file. It’s especially useful for monitoring log files or examining large files where only the most recent data is of interest. In this article, … Continue reading Linux tail Command: How to Display and Track the Last Part of a File

How to Undo a Commit, Pull Remote Changes, and Reapply Your Work in Git

Git

How to Undo a Commit, Pull Remote Changes, and Reapply Your Work in Git When working with Git, it’s common to encounter situations where you’ve made a local commit, but later realize you need to pull changes from the remote repository before reapplying your work. Here’s a step-by-step guide to achieve this smoothly. Step 1: … Continue reading How to Undo a Commit, Pull Remote Changes, and Reapply Your Work in Git