Home
Julius Gamanyi
Cancel

GNU Make on Windows

Why use make in the first place? In our team, some use Windows while others use Mac and steps to run are in a Makefile. The CI/CD environment supports both Windows and Linux-based steps. I’...

Powershell - Troubleshoot Networking Issues

I spent most of this week on dealing with these 2 exceptions: Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." Exception calling "Dow...

Powershell - Create Symbolic Link

Open PowerShell as Administrator, then run New-Item -ItemType SymbolicLink ` -Path "C:\Program Files\WindowsPowerShell\Modules\CustomHelperUtils" ` -Target "C:\path\to\gitrepos\utils\powershell\C...

Packer - locally validate template for EC2 that expects an environment variable

I was working on creating EC2 images using Packer. For that, there’s the amazon-ebs Packer Builder to use. After checking that there’s nothing wrong with the syntax, thanks to packer validate --sy...

GitHub Actions - run workflows locally with act even for self-hosted runners

How do I quickly test github workflows on my local dev machine even for self-hosted runners? Write-up also at https://juliusgamanyi.com/2022/04/27/run-github-actions-workflows-locally-using-act I...

Linux - show OS details

I wanted to know what Operating System I’m using in order to use OS-specific utilities like Linux - Add user to sudoers Execute: $> cat /etc/os-release Output: -------OS Information-------...

Linux - Create User

Create user with the command sudo useradd --create-home usery. What default values do they get? Execute: useradd -D Output HOME=/home/usery INACTIVE=-1 EXPIRE= SHELL=/bin/bash Docs: https://l...

Linux - Add user to sudoers

How do I enable a user, say userx, to run commands prefixed with sudo ? After running sudo as userx, I also don’t want to enter a password. In CentOS, add the user to the wheel group. echo "userx...