Home
Julius Gamanyi
Cancel

Git - Use gitattributes to control line endings

Use .gitattributes to control the line endings for files that are in the repository. The above settings are useful when working with others who use other Operating Systems, because each OS has its...

GitHub Actions - how to access GitHub Maven packages via GitHub actions

Steps: Add a Personal Access Token (PAT) to your GitHub Repository with permissions repo, workflow, read:packages Add that token as repository secret named GHA_MVN_PKGS_READ: Repository ->...

Python - Manage global packages with pipx

Python comes with many tools that help manage versions and dependencies. pyenv - manage Python versions virtual environments (like venv) that help isolate dependencies on a per project basis ...

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...