Bash

Update JSON File with …

In this (very) short post I’ll show you a quick way to make simple edits to a .json file from the command line or using bash and NodeJS. Let’s say we want to update a value in a data.json file. With NodeJS installed on our system we can leverage the -p or --print command to evaluate a …

Rotate AWS Access Keys …

It’s a good idea to rotate your AWS Access Keys regularly, here is a simple script that makes the process easy and painless. For a lot of engineers it’s a compliance requirement to rotate keys on a regular cadence, it also takes a little effort and requires us to remember. The idea …

Variables in Bash Alias

I’m a firm believer that we only have so many keys strokes in our lifetime, I save as many as I can with bash aliases. A simple bash alias can improve your efficiency at the keyboard many times over. Using variables in your bash aliases helps to pass a value into your alias at specified …