Posts

Showing posts from August, 2017

Installing Python Boto3 for AWS on MacOS

Image
Boto3 is a Python library to interact with AWS APIs via command line. It works by leveraging AWS APIs in the backend and provides an easy interface to perform AWS actions like "Launch that shit" or "Trigger a lambda function to automate that shit".  Installation on MacOS is as simple as following these steps. Install Python Install PIP (Python package manager) $ curl -O https://bootstrap.pypa.io/get-pip.py $ python3 get-pip.py --user Install AWS CLI $ pip install --user --upgrade awscli   Update path (Or, add following to your .bash_profile using $ sudo nano ~./bash_profile ) $ export PATH=~/Library/Python/2.7/bin/:$PATH   Check if AWS CLI is installed correctly, $ aws --version Update AWS config file with access keys, $ aws configure AWS Access Key ID: AWS Secret Access Key ID: Default region name: Default output format: Install boto3   $ sudo pip install boto3 Test boto3. Create a te

Basic GIT commands

Git command line is easy. Too easy in fact once you understand it. After fiddling with multiple resources, I found these to be the simplest commands to get the job done. Here it is! Clone a git repo locally $ git clone <url> Update an existing cloned repo $ git pull Add a new file to the git repo $ git add <filename> $ git commit -m <message> <filename> $ git push For more:  https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html