Skip to content

Instantly share code, notes, and snippets.

View awsjk23's full-sized avatar

Jordan Kojouharov awsjk23

  • Amazon Web Services
  • Scottsdale, AZ
View GitHub Profile
@timothyham
timothyham / ipv6guide.md
Last active October 1, 2025 14:10
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1

@rshettynj
rshettynj / gist:529cf334d9b81b86e366ed7ad09f68db
Last active February 6, 2024 17:28
How to install custom boto version in AWS Lambda
In some cases, you may want to install latest or your own version of boto3 and botocore versions than the default provided by AWS Lambda.
-> How to find out the current AWS default version of boto3 and botocore?
import boto3
import botocore
print("boto3 version:"+boto3.__version__)
print("botocore version:"+botocore.__version__)
@npearce
npearce / install-docker.md
Last active September 30, 2025 13:57
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@tobywf
tobywf / boto3-gzip.py
Last active June 19, 2025 14:33
GZIP compressing files for S3 uploads with boto3
from io import BytesIO
import gzip
import shutil
def upload_gzipped(bucket, key, fp, compressed_fp=None, content_type='text/plain'):
"""Compress and upload the contents from fp to S3.
If compressed_fp is None, the compression is performed in memory.
"""
@prschmid
prschmid / hl7_to_dict.py
Last active July 9, 2024 20:07
Convert an HL7 message to a dictionary.
"""Converting HL7 messages to dictionaries
Example Usage:
import pprint
from hl7apy.parser import parse_message
# Taken from http://hl7apy.org/tutorial/index.html#elements-manipulation
s = """MSH|^~\&|GHH_ADT||||20080115153000||ADT^A01^ADT_A01|0123456789|P|2.5||||AL
EVN||20080115153000||AAA|AAA|20080114003000