How to use AND conditionals in IF statements within bash shell scripts if [ $1 != ‘foo’ ] && [ $1 != ‘bar’ ] && [ $1 != ‘sheep’ ] then echo “do this” else echo “do that” fi How to use OR conditionals in IF statements within bash shell scripts if [ $1 != […]Read more "Shell Script: How to use AND and OR in If statements"
How to set up a SSH key pair authentication between Jenkins and GitlabRead more "How to configure ssh authentication between gitlab and Jenkins"
In order to shut down instances in an autoscaling group at the end of an online day you need to add an autoscaling schedule resource to your code. This will scale down to 0 running instances at the time that your online day ends. You can then add another autoscaling schedule to bring the required […]Read more "Terraform : How to automatically shutdown AWS instances at the end of the day"
The below script opens an excel document in read only mode and then searches for a set string within the first sheet, cells ranging A1-AZ200. This can be amended depending on the specific documents you are searching but this is a good way of quickly searching most files. Notice the options in the open and […]Read more "Powershell: How to search an excel document for a string using com objects"
The below script opens a word document in read only mode and then searches for a set string. Notice the options in the open and close document calls which are important to open the documents in read only mode and not save on exit. The scripting lines between the open and close document lines can […]Read more "Powershell: How to search a word document for a string using com objects"
In this blog we will be installing terraform on a Centos virtual machine and then use it to create some simple infrastructure in the Azure cloud. To begin with you require a VM running Centos to install Terraform on and then we will use this to create a simple Centos small VM within Azure. First […]Read more "Install Terraform and create a simple VM in the Azure cloud"
The Azure command line interface is a way of managing your Azure resources from a command line interface. In order to do this we are going to install the Azure CLI tool on a Centos VM. To install the Azure CLI we require node.js which is not currently available via the yum command so we […]Read more "Installing the Azure CLI on a Linux virtual machine"