Shell - Temporary e-mail blog !

Dive into the world of knowledge without taking yourself too seriously. From the demystification of complex subjects to jokes that defy convention, we're here to rattle your brain and bring a wry smile to your face. đŸ€“đŸ€Ł

Resolving Port 3000 Locking Issues on macOS
Daniel Marino
12 July 2024
Resolving Port 3000 Locking Issues on macOS

This guide provides solutions for resolving port conflicts on macOS, specifically for port 3000 often used by Rails and Node.js applications. The issue arises when ports remain occupied even after processes have stopped, causing errors like Errno::EADDRINUSE. Various scripts in Bash, Ruby, and Node.js are provided to help identify and terminate these processes, ensuring smooth operation of your development environment.

Resolving Git Merge Conflicts: Aborting a Merge and Keeping Pulled Changes
Daniel Marino
5 July 2024
Resolving Git Merge Conflicts: Aborting a Merge and Keeping Pulled Changes

Encountering a merge conflict during a Git pull can be challenging. This guide provides step-by-step solutions to abort a conflicted merge and keep only the pulled changes. Detailed scripts using shell and Python commands are offered to automate and simplify the process, ensuring a clean and conflict-free codebase.

Copying Folders and Files from Remote to Local Using SCP
Lina Fontaine
2 July 2024
Copying Folders and Files from Remote to Local Using SCP

This guide explains how to use SCP for copying files and folders from a remote server to a local machine. It covers different scripting methods, including shell scripts, Python scripts, and Ansible playbooks, each providing a detailed approach to automate and streamline file transfers.

How to List All Files in a Specific Git Commit
Mia Chevalier
30 June 2024
How to List All Files in a Specific Git Commit

Listing all files in a Git commit can be efficiently achieved using various commands and scripts. By utilizing git diff-tree with specific options, users can generate a clean list of files without the extra diff information. Additional approaches involve Python and Node.js scripts that execute Git commands programmatically.

Understanding Git Cherry-Pick: What It Is and How It Works
Arthur Petit
29 June 2024
Understanding Git Cherry-Pick: What It Is and How It Works

Cherry-picking in Git allows developers to apply specific changes from one branch to another without merging the entire branch. The command git cherry-pick is used to incorporate specific commits, making it valuable for hotfixes and feature integration.

Connecting Nginx in Docker to Localhost MySQL on Host Machine
Alice Dupont
28 June 2024
Connecting Nginx in Docker to Localhost MySQL on Host Machine

Connecting Nginx running inside a Docker container to a MySQL instance on the host can be tricky, especially when MySQL binds only to localhost. Solutions include using Docker's host networking mode or the special DNS name host.docker.internal for Windows and Mac.

Transferring Files from Remote to Local Using SCP
Gabriel Martim
26 June 2024
Transferring Files from Remote to Local Using SCP

Copying files and directories from a remote server to a local machine using SCP is a crucial skill for managing data. This guide provides detailed steps and scripts to automate and simplify the process.

Resolving Git Issues After macOS Update: Fixing xcrun Error
Daniel Marino
26 June 2024
Resolving Git Issues After macOS Update: Fixing xcrun Error

After updating macOS or restarting your computer, Git might stop working due to an invalid active developer path. This common issue can be resolved by reinstalling and reconfiguring Xcode Command Line Tools. The steps involve using commands to remove the old tools, install new ones, and reset the path to ensure Git functions correctly.

Listing All Files in a Specific Git Commit
Daniel Marino
23 June 2024
Listing All Files in a Specific Git Commit

To list all files in a specific Git commit without displaying unwanted diff information, alternative methods such as git diff-tree and git ls-tree can be employed. These commands focus on retrieving file names while omitting extra details. Shell and Python scripts can automate this process, providing a clean list of files for review.

Formatting JSON for Readability in Unix Shell Scripts
Noah Rousseau
23 June 2024
Formatting JSON for Readability in Unix Shell Scripts

Formatting JSON in a Unix shell script can enhance readability and facilitate debugging by converting compact data into a neatly formatted structure. This can be achieved using tools like jq, Python, Node.js, and Perl, each offering unique capabilities for handling JSON.

Exploring Git Log: Detailed File Change History
Lina Fontaine
22 June 2024
Exploring Git Log: Detailed File Change History

This guide explains how to use Git to view the detailed history of changes in a specific file. It covers advanced techniques like git log with patch options, using git blame for line-by-line tracking, and visual tools for commit history.

How to Retrieve the Current Branch Name in Git
Mia Chevalier
20 June 2024
How to Retrieve the Current Branch Name in Git

Discovering how to obtain the current Git branch name is essential for effective version control. This guide covers methods using the command line, Python, Node.js, and PowerShell scripts.

Crafting Shell Scripts for Email Automation
Gabriel Martim
14 February 2024
Crafting Shell Scripts for Email Automation

Automating email dispatch through shell scripts enhances communication efficiency and system monitoring by enabling the sending of notifications, alerts, and reports directly from servers.