Home
Julius Gamanyi
Cancel

Git grafts - merge history of multiple repos

Intention I’m currently learning CSS through Josh Comeau’s excellent course, CSS for JS. Each module has workshops/exercises that we work through. Each of these is a git repository on GitHub. My w...

Powershell - web requests for file downloads

How do I download a remote file via an API that also expects an auth Token? $DownloadedFile = "C:\tmp\filename.zip"; $Url = "https://path/" $TOKEN = "supers3crettoken" $headers = @{ 'Accept'...

Powershell - check hash of downloaded file

When downloading files, such as those attached to a github release, most have hashes. After downloading the file, how do I check that the hash of a file I’m downloading is valid? An example I’ll u...

jq - Access array index in a loop

If your json contains a list of objects, jq allows you to access such elements using an array index filter jq '.[index]' someData.json. But the value index is static, say jq '.[2]' someData.json. ...

GitHub Actions - Reusable Workflows

I followed the documentation (https://docs.github.com/en/actions/using-workflows/reusing-workflows) to create workflows that can be reused by other workflows. My difficulty in following the docs w...

AWS CLI - Store and Retrieve Json from AWS Parameter Store

Using the AWS CLI, how do I store Json in AWS Parameter Store? And how do I retrieve it? Assuming you have the necessary AWS permissions set up: open your terminal/command shell navigate to ...

jq - Update value in json with variable

I use jq for reading and filtering json on the command line. Given the json below, I’d like to update the value of b to be 30. jq offers the update assignment, |=, for this. { "a": { "b": 1...

Ruby - use MSYS2 to install Ruby dev packages to build native extensions on Windows

Aim: Use MSYS2 to install the development packages Ruby needs to build native extensions on Windows. Why? because I found out that some Ruby gems must be build as native extensions. Without this s...

Babel - Client-side for ECMAScript modules and expressions

To play around with some tools I like, I need to learn React, welp! George Offley recommended this free beginner course for react because it combines theory and practice well: lots of projects to ...

Packer - setup with WinRM

Aim: Use HashiCorp’s Packer and WinRM to automatically create a directory as an example. When that works, we’re ready for [[Packer - setup local dev environment on Windows using Packer]] Prerequis...