Skip to content

Instantly share code, notes, and snippets.

View koraakdas's full-sized avatar
☁️
Working in Cloud

koraakdas koraakdas

☁️
Working in Cloud
View GitHub Profile
@koraakdas
koraakdas / installing_python.md
Created July 31, 2023 21:29 — forked from adamscharf/installing_python.md
Managing Python using pyenv, virtualenv, and pyenv-virtualenv

Managing Python using pyenv, virtualenv, and pyenv-virtualenv

Problem: You want to maintain multiple different versions of python and keep packages separated based on projects that you're working on.

Solution: Use the pyenv, virtualenv tools along with the pyenv-virutalenv plugin to manage multiple versions of python and seamlessly integrate them with your projects' virtual environments.

Installation

@koraakdas
koraakdas / tag_default_vpc_and_subnets.py
Created August 1, 2022 12:53 — forked from si3mshady/tag_default_vpc_and_subnets.py
Small Utility Python function to label all default VPCs and Subnets across a set of regions
import boto3
regions = ['us-east-1', 'us-west-1', 'us-west-2']
def get_default_vpc(region='us-east-1'):
vpc_id = [v['VpcId'] for v in boto3.client('ec2',region_name=region).describe_vpcs()['Vpcs'] if v['IsDefault'] == True][0]
return {"type":"vpc","vpc_id": vpc_id}
@koraakdas
koraakdas / GITCRASHCOURSE.MD
Created July 31, 2022 16:22 — forked from brandon1024/GITCRASHCOURSE.MD
Git Crash Course for Beginners

Git Crash Course for Beginners

Preface

A good understanding of Git is an incredibly valuable tool for anyone working amongst a group on a single project. At first, learning how to use Git will appear quite complicated and difficult to grasp, but it is actually quite simple and easy to understand.

Git is a version control system that allows multiple developers to contribute to a project simultaneously. It is a command-line application with a set of commands to manipulate commits and branches (explained below). This tutorial will help you get started, and in no time you will be a Git Ninja!

Contents: