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
# 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.
@managedkaos
managedkaos / ubuntu-install-node20.sh
Last active December 14, 2023 01:25
A script to install Nodejs v20 on Ubuntu
apt-get update
apt-get install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --batch --yes --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" > /etc/apt/sources.list.d/nodesource.list
apt-get update
apt install -y nodejs
@managedkaos
managedkaos / ipython-profile.ipynb
Created June 12, 2023 22:27
Locate iPython profiles using a Jupyter notebook.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@managedkaos
managedkaos / 1-pull-request.png
Last active June 7, 2023 21:35
A GitHub Actions workflow that displays the Terraform plan in the workflow summary...
1-pull-request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.