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 MoreShow 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 MoreRetrieve 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 MoreHow 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 MoreHow 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 MoreBash: Convert HTML to Markdown Recursively with Pandoc
You can recursively convert all your HTML files to Mardown format in Bash, by using Pandoc.
Read MoreHow 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 MoreHow 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