Dealing with Binary Files in the Console: A Quick Fix for Common Issues – using reset command

Viewing binary files through the console can occasionally lead to unexpected and disruptive issues. You might have experienced situations where the console seems to ‘break’— displaying strange characters, replacing normal text with incomprehensible hieroglyphs, and even triggering unexpected sound alerts or bizarre color blends. These anomalies can render the console practically unusable, disrupting your workflow. … Continue reading Dealing with Binary Files in the Console: A Quick Fix for Common Issues – using reset command

Exploring Array Syntax in Shell Scripting: A C-Like Approach

Shell scripting provides a versatile way to automate tasks in Unix-like systems. For programmers familiar with C or languages with similar syntax, the following pattern can be particularly intuitive: In this script, we define an array named arr with three string elements: ‘foo’, ‘bar’, and ‘baz’. We then iterate over the array using a for … Continue reading Exploring Array Syntax in Shell Scripting: A C-Like Approach

Linux find search for files changed in date range

Introduction In this quick guide, we’ll explore some useful bash commands to find files modified within a specific time frame. This is especially useful for system administrators and developers. Finding Files Modified Today To find all files in a directory that were modified today, you can use the following command: This command searches for files … Continue reading Linux find search for files changed in date range

Some useful composer options we are use for production Docker setup in Laravel apps

Composer logo

As a part of our Docker production setup of Laravel web application we are using the following composer install with some options described below: –optimize-autoloader or -o: This flag tells Composer to optimize the autoloader for better performance. Autoloading is a mechanism in PHP that automatically loads classes when they are needed. Optimizing the autoloader … Continue reading Some useful composer options we are use for production Docker setup in Laravel apps

Git – copy few branches from old repository to a new one

Sometimes, then you need to transfer few Git branches from existing repository to a new one you could run the following commands: This command will create a new folder new-repo-folder with a .git folder inside, but without any files from branches. Change to the repository folder: Adding the necessary branches: Now you need to do … Continue reading Git – copy few branches from old repository to a new one