Skip to content

Instantly share code, notes, and snippets.

View managedkaos's full-sized avatar
💭
Time for some Actions! :D

Michael managedkaos

💭
Time for some Actions! :D
View GitHub Profile
Resources:
ImagesBucket:
Type: AWS::S3::Bucket
ResizeQueue:
Type: AWS::SQS::Queue
S3ToSQS:
Type: AWS::S3::Bucket
Properties:
@managedkaos
managedkaos / cpu_util.ipynb
Created October 1, 2025 20:45
Jupyter notebook that uses mock data to plot CPU utilization.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@managedkaos
managedkaos / README.md
Last active September 25, 2025 04:34
Generate reports showing the age of each branch in the repo, where age is based on the date of the last commit.

USAGE FOR branch_ages.py

Download the script and place it in a directory on your $PATH.

Step Description Command
1. Make the script executable chmod +x branch_ages.py
2. See all available options branch_ages.py --help
3. Get a formatted table, oldest first (default) branch_ages.py
4. Sort by newest first branch_ages.py --newest
@managedkaos
managedkaos / CLOUDFLARE_TUNNEL.md
Created April 14, 2025 18:47
A tool for creating a temporary Cloudflare tunnel allowing HTTP access to servers in private subnets.

Use Cloudflare Tunnel to connect to EC2 Instance in Private Subnet

A tool for creating a temporary Cloudflare tunnel allowing HTTP access to servers in private subnets.

1. Install the AWS Session Manager Plugin on the Local System

The AWS Session Manager Plugin is required to connect to the EC2 instance.

Follow this link to install the plugin:

# gh api repos/{owner}/{repo}/releases
gh api repos/golangci/golangci-lint-action/releases | jq -r .[0].name
# returns latest release name, ie: v6.1.1
@managedkaos
managedkaos / post-gen.py
Last active October 30, 2024 21:58
Scripts for creating and working with pre-signed URLS for S3 uploads.
import boto3
import json
def generate_presigned_post(bucket_name, key_prefix='uploads/', expiration=3600):
# Initialize the S3 client
s3 = boto3.client('s3')
# Generate the pre-signed POST request
response = s3.generate_presigned_post(
Bucket=bucket_name,
@managedkaos
managedkaos / book-list.md
Created October 3, 2024 05:34
A list of the technical books I have laying around in PDFs.

Book List

Humble Book Bundle: DevOps by Packt

  1. Ansible 2 for Beginners
  2. Automate it!
  3. Continuous Delivery with Docker and Jenkins
  4. Deploying and Running Docker Containers
  5. Deployment with Docker
  6. DevOps for Networking

Family Finances Meeting Agenda

I. Introduction and Review (5 minutes)

  • Briefly review what was accomplished since the last meeting
  • Reiterate the importance of open communication and collaboration in managing family finances

II. Income and Expenses (15 minutes)

  • Review income sources:
wget --mirror \
--convert-links \
--adjust-extension \
--page-requisites \
--no-parent ${WEBSITE:-https://example.com}
for i in $(find . -type f -name index.html | grep -v -E "(tag|feed)");
do
path=$(dirname ${i})
echo ${path}
@managedkaos
managedkaos / jupyter-environment-specs.ipynb
Last active March 12, 2024 01:25
Jupyter-Environment-Specs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.