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.py
Created January 3, 2022 12:57
Do-Nothing Script
import sys
def wait_for_enter():
raw_input("Press Enter to continue: ")
class CreateSSHKeypairStep(object):
def run(self, context):
print("Run:")
print(" ssh-keygen -t rsa -f ~/{0}".format(context["username"]))
wait_for_enter()
@russomi
russomi / December 26, 2021.md
Last active December 26, 2021 23:17
Event Sink research

Event Sink

In computing, a sink, event sink or data sink is a class or function designed to receive incoming events from another object or function. This is commonly implemented in C++ as callbacks. Other object-oriented languages, such as Java and C#, have built-in support for sinks by allowing events to be fired to delegate functions. https://en.wikipedia.org/wiki/Sink_(computing)

See Also

@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 / November 25, 2021.md
Last active November 29, 2021 02:02
Amplify React

Amplify React

Set up fullstack project

npm install -g @aws-amplify/cli
amplify configure

npx create-react-app react-amplified
@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.