Skip to content

Instantly share code, notes, and snippets.

View russomi's full-sized avatar
☁️
Remote

Michael Russo russomi

☁️
Remote
View GitHub Profile
@russomi
russomi / git-commit-template.md
Created January 12, 2022 22:18 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@russomi
russomi / example.csv
Created December 3, 2021 23:48 — forked from evanderkoogh/example.csv
Import CSV into DynamoDB
whateverId attribute1 someotherattribute
foo bar baz
hello erwin world
@russomi
russomi / cli.py
Created November 11, 2021 17:06 — forked from mivade/cli.py
Using a decorator to simplify subcommand creation with argparse
from argparse import ArgumentParser
cli = ArgumentParser()
subparsers = cli.add_subparsers(dest="subcommand")
def argument(*name_or_flags, **kwargs):
"""Convenience function to properly format arguments to pass to the
subcommand decorator.
# Source: https://gist.github.com/ae00efa6892fcb0b295bbdba73bef3ad
############################################
# Applying GitOps Principles Using Argo CD #
############################################
######################################
# Installing And Configuring Argo CD #
######################################
# Source: https://gist.github.com/c9e05ce1b744c0aad5d10ee5158099fa
###############################
# Preparing For The Exercises #
###############################
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
# Source: https://gist.github.com/0431989df4836eb82bdac0cc53c7f3d6
# Used in https://youtu.be/R6OeIgb7lUI
##############################
# Flux 2 With GitOps Toolkit #
##############################
# What Is GitOps And Why Do We Want It?: https://youtu.be/HKkhD6nokC8
# Argo CD: Applying GitOps Principles To Manage Production Environment In Kubernetes: https://youtu.be/vpWQeoaiRM4
# Source: https://gist.github.com/ad78a643e5ccf7bf5fd87b16b29306eb
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
git pull
cd terraform-eks
@russomi
russomi / kops.sh
Created February 1, 2021 20:06 — forked from vfarcic/kops.sh
######################
# Create The Cluster #
######################
# Make sure that your kops version is v1.9 or higher.
# Make sure that all the prerequisites described in the "Appendix A" are met.
# Do not run the commands from below if you are a **Windows** user. You'll have to follow the instructions from the Appendix B instead.
@russomi
russomi / eks.sh
Created February 1, 2021 20:06 — forked from vfarcic/eks.sh
######################
# Create The Cluster #
######################
# Follow the instructions from https://github.com/weaveworks/eksctl to intall `eksctl`
export AWS_ACCESS_KEY_ID=[...] # Replace [...] with AWS access key ID
export AWS_SECRET_ACCESS_KEY=[...] # Replace [...] with AWS secret access key
######################
# Create The Cluster #
######################
# Make sure that your minikube version is v0.26 or higher
minikube start \
--vm-driver virtualbox \
--cpus 2 \
--memory 2048