Bash

How to AWS Assume Role and then revert to the previous role after

If you need to assume a role in AWS and then revert back to the previous role once complete, you can use the following snippet of code:

Read More

Show the Top 10 Largest Directories on Linux

If you need to see the top 10 largest directories on your Linux system, you can use the following command:

Read More

Retrieve the Latest Versioned Tag from AWS ECR in Bash

Managing Docker images in Amazon Elastic Container Registry (ECR) is a common task for many developers and DevOps practitioners.

Read More

How to Generate Terraform using a Bash Shell script

To generate Terraform code using a Bash shell script, you can utilize Python within the script.

Read More

How to check if a program exists from a Bash/Shell script

You can look to use: command -v <the_command> There are also 2 other ways, that we will run through a little further down, but for now.

Read More

Bash: Convert HTML to Markdown Recursively with Pandoc

You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.

Read More

How to Check if a Volume is Mounted in Bash

If you need to check if a volume is mounted in a Bash script, then you can do the following.

Read More

How to Determine if a Bash Variable is Empty

If you need to check if a bash variable is empty, or unset, then you can use the following code:

Read More