Articles and stories

September 29, 2018

PowerShell : Export Active Directory users

PowerShell export users from Active Directory using in single line of code. Using poweshell is when we want to do automaion or via program we want […]
September 21, 2018

AWS KMS Python : Upload & download file in S3

AWS KMS Python : Just take a simple script that downloads a file from an s3 bucket. The file is leveraging KMS encrypted keys for S3 […]
August 2, 2018

Access AWS S3 bucket from another account using bucket policy

Apart from using the IAM roles, you can also do this through a bucket policy on the source account(Account A) S3 bucket, granting access to another […]
August 2, 2018

Adding multiple git accounts on same computer

So if you have multiple git accounts, for example, one from the company and one is your personal, then how will you manage them on the […]
June 17, 2018

Copy (scp) file from remote server to Mac using ssh tunnel

Generally, when we work in a secure environment we do have bastion host to connect application/DB server. So when using Windows we can copy the file to […]
May 3, 2018

AWS cli installation Procedure on MacOS

Installing the AWS CLI seems easy on macOS (OSX) as per the step given by AWS here but there are some issues with python and pip due to […]
April 5, 2018

PowerShell to join the computer to domain

PowerShell we can add the computer to AD domains using powershell which is very important while doing automation in a windows environment. The Add-Computer cmdlet used to add […]
April 3, 2018

How to see all the changes before creating/updating the AWS CloudFormation stack

When we want to create a new cloud formation stack, wouldn’t it will be better if we got to see/check what all resources it will create? […]
April 1, 2018

How to run commands remotely on ec2 instances

  AWS Systems Manager Run Command allows you to remotely and securely run set of commands on EC2 as well on-premise server. These instances are called […]
March 26, 2018

Active Directory : How to test if the user is present

When we create the new Active Directory we add the user to it, right? No brainer. So, when we want to achieve this via automation say […]
March 26, 2018

How to add task in cron

Each user has their own cron file including the root user. If the cron task requires administrative privilege then it can be added to the root […]
March 26, 2018

Tag the AWS EBS volume with disk drive letter or label

You have several EC2 instances & all with several drives. It becomes unclear to identify which drive is mapped to which EBS volume. This causes difficulties […]
March 26, 2018

How to run `make` command from another directory

Sometimes while doing some automation we need to run the make command from another directory i.e. from where the Makefile is not present. So what option […]
Bitnami