My Blog

Empowering developers since 2015. Real articles, real insights.
Cloud and DevOps solutions that will save you hours.

    How to use the Matrix strategy in Azure DevOps pipelines

    The matrix strategy in Azure DevOps pipelines allows you to run the same job multiple times using different variable-sets. Instead of creating separate jobs for each variable, you define a single job and a matrix of configurations, and the pipeline automatically creates one job for every combination.

    Read the complete article

    How to clean up stale Git branches (local & remote) in minutes

    Over time, branches accumulate, they get merged, abandoned, or deleted remotely but still present locally.

    Short on time? Here’s the TL;DR:

    git fetch --prune          # Sync + remove deleted remote branches
    git branch -vv             # Find stale branches ([gone])
    git branch -d branch_name  # Delete them safely
    
    Read the complete article

    How to solve the "here-document at line 1 delimited by end-of-file (wanted 'EOF')" warning

    Recently, I ran into a frustrating issue with a shell script that uses heredocs. The closing EOF had indentation, so the shell didn’t recognize it as the closing tag. Everything after it kept getting added to the file, breaking the whole thing and the logs were showing this warning: here-document at line 1 delimited by end-of-file (wanted 'EOF') warning.

    Read the complete article

    20 essential shell commands for DevOps engineers

    Moving from software development to DevOps means the terminal is no longer just for Git commits; it’s your primary interface for production infrastructure. This guide categorizes the 20 most critical commands by their real-world utility.

    Read the complete article

    How to add a Git submodule to your repository

    A Git submodule lets you include another repository inside your own project. This is useful for reusing shared code, libraries, or dependencies across multiple projects.

    To add a submodule to your parent repository, follow these steps:

    Read the complete article