Bash-script - 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. đŸ€“đŸ€Ł

Guide to Finding Directory of a Bash Script
Lucas Simon
11 June 2024
Guide to Finding Directory of a Bash Script

Determining the directory where a Bash script is located is crucial for executing applications and managing files relative to the script's path. This guide provides methods for both Bash and Python scripts to achieve this, including leveraging commands like ${BASH_SOURCE[0]}, dirname, and os.path.realpath().

Guide: Get Directory of a Bash Script
Lucas Simon
5 June 2024
Guide: Get Directory of a Bash Script

To determine the directory where a Bash script is located from within the script, several methods can be employed. Using commands like readlink and dirname, scripts can dynamically find their paths and change the working directory accordingly.

Fixing Git Bash CWD Issues in VSCode
Isanes Francois
31 May 2024
Fixing Git Bash CWD Issues in VSCode

VSCode's integration with Git Bash can sometimes present challenges, especially when it comes to setting the correct working directory. Problems may arise where the terminal starts in the wrong directory or when navigating to the home directory causes errors. By configuring the VSCode terminal settings, updating environment variables, and adjusting the .bashrc file, these issues can be resolved. Ensuring Git Bash starts in the intended directory every time and fixing path conversion issues can significantly enhance the development experience.

Why Kaniko Cannot Access Files Outside Git Context
Mauve Garcia
30 May 2024
Why Kaniko Cannot Access Files Outside Git Context

Using Kaniko in GitLab CI to build Docker images presents challenges when accessing files outside the Git context. This issue arises because Kaniko doesn't support Git operations natively, requiring workarounds to include artifacts from previous CI jobs. Solutions involve using multi-stage Docker builds and Bash scripts to handle artifact downloads and preparations.

Why Git LFS Repos Can Be Larger: A Guide
Mauve Garcia
28 May 2024
Why Git LFS Repos Can Be Larger: A Guide

This guide covers the migration of a large SVN repository to Git, focusing on using Git LFS to handle binary files. The migration process unexpectedly resulted in a larger repository size. Key steps include initializing LFS, tracking binaries, and running commands to optimize the repository. The article explains the increase in size, compares Git and Git LFS packing efficiency, and provides maintenance tips.

How to Migrate a Large SVN Repo to Git
Mia Chevalier
25 May 2024
How to Migrate a Large SVN Repo to Git

Migrating a massive SVN repository with over 155K revisions to Git involves using svn2git on a Linux Red Hat system for efficient conversion. This process requires periodic syncing using svnsync and handling new commits. Managing large binary files with Git LFS is also crucial.