Clone a Private Repo Using GitHub Secrets in GitHub Actions

Clone a Private Repo Using GitHub Secrets in GitHub Actions Cloning a private repository inside another GitHub Actions workflow is a common use case — whether you’re reusing shared scripts, configs, or tools. Here’s how to do it securely using GitHub Secrets. 🔐 Step 1: Generate a Personal Access Token (PAT) Go to GitHub > Settings > Developer Settings > Tokens. Click “Generate new token” (classic or fine-grained). Grant the following scopes: repo for private repos read:org if the repo is under an organization Copy the token (you won’t see it again). 🔑 Step 2: Add the Token to Secrets In your destination repo: ...

May 12, 2025 · 2 min · Rohan

How to Remove Files Without Extensions Using a Bash Script

Introduction In production environments, it’s not uncommon to encounter files without extensions. These files can be hard to manage and may clutter up directories, making file operations more difficult. This blog post will guide you through writing a bash script that removes files without extensions from a given directory. The script is designed to be production-ready, meaning it includes logging and error handling to ensure safe and traceable file cleanup. ...

May 11, 2025 · 4 min · Rohan Batra

Automated LUT Testing and Rendering with FFmpeg

🎨 Automated LUT Testing and Rendering with FFmpeg Color grading can dramatically change the mood and aesthetic of your video. But testing multiple LUTs (.cube files) manually can be a tedious process. This post walks you through a developer-friendly, automated workflow to: ✅ Preview LUTs one by one with ffplay ✅ See the LUT name overlaid live ✅ Automatically go to the next LUT when you close the window ✅ Export final renders for each LUT using ffmpeg ✅ Choose a single LUT for final export if you prefer ...

May 11, 2025 · 4 min · Rohan Batra

How to Install OpenSSH on Arch Linux Using a Script

Introduction In this post, we will walk through how to quickly install and configure OpenSSH on your Arch Linux system using a simple Bash script. Whether you’re setting up SSH for the first time or automating your setup process, this script makes the process easy and efficient. Why Use OpenSSH? OpenSSH is a widely used tool to enable secure remote connections to your Linux system. It allows you to remotely access and manage your machine through the terminal, which is essential for remote administration or server management. ...

May 4, 2025 · 3 min · Rohan Batra

Proxmox Automated VM Builder with Dual Disks

End-to-end automation of Proxmox ISO customization and VM provisioning using Docker and libvirt with support for dual QCOW2 disks.

May 3, 2025 · 4 min · Rohan Batra

How I Handle Secrets in My DevOps Workflows — A GPG-First Approach to Security

🔐 How I Handle Secrets in My DevOps Workflows — A GPG-First Approach to Security As someone who frequently automates deployments and manages infrastructure—across Proxmox clusters, Linux servers, and CI/CD pipelines—I take the handling of secrets seriously. In a world where credentials are often hardcoded into scripts or buried in dotfiles, I wanted a system that was: Tamper-proof Auditable Public-repo friendly Portable across machines And, most importantly, zero-trust by design So I built a secret management system around GPG-based encryption, leaning on battle-tested cryptography and deliberate design. ...

May 2, 2025 · 4 min · Rohan Batra

Arch Linux Meets Proxmox: Overcoming Automation Challenges With Docker

My Journey of Automating Proxmox on Arch Linux Automating Proxmox installs can be a time-saver, but the official Proxmox Automated Installer is built specifically for Debian-based systems, leaving Arch and other distros out in the cold. This project emerged out of my frustration with the limitations of the Proxmox installer. Why I Built This Solution I was using Arch Linux as my primary system, and I needed to deploy Proxmox VE multiple times in a virtualized environment. The official installer was only available for Debian-based systems, so I decided to find a way to make it work on Arch. After trying several workarounds and encountering issues along the way, I decided to package the installer in a Docker container. ...

May 2, 2025 · 2 min · Rohan

User Guide: Using the Proxmox Auto Installer Build

This document describes how to use the Dockerized Proxmox Auto Installer image to generate unattended Proxmox VE installation ISOs for multiple profiles (e.g., pve-1, pve-2). Overview The proxmox-auto-installer Docker image wraps the official proxmox-auto-install-assistant tool to convert a standard Proxmox VE ISO into an unattended-install ISO using profile-specific answer.toml files. By specifying a profile name, you can maintain multiple configurations and generate distinct custom ISOs in a reproducible manner. Prerequisites Docker installed (version 20.10+). A Proxmox VE ISO (e.g., proxmox-ve_8.4-1.iso). Profile directories each containing an answer.toml file. Write permissions for the output directory. Directory Structure Scripts/ ├── iso/ │ ├── proxmox-ve_8.4-1.iso # Base ISO │ └── output/ # Generated ISOs ├── secrets/ │ ├── pve-1/ │ │ └── answer.toml # Profile pve-1 settings │ └── pve-2/ │ └── answer.toml # Profile pve-2 settings ├── Dockerfile # Build definition └── entrypoint.sh # Profile-aware entrypoint Building the Docker Image Run the following command from the directory containing the Dockerfile and entrypoint.sh: ...

May 2, 2025 · 2 min · Rohan