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
@managedkaos
managedkaos / NOTES.md
Last active October 27, 2021 17:15
My schedule for GitHub Universe 2021

Repos

  • PR merge queue

Codepsaces

  • SSH into codespace from CLI using gh

Actions

Copilot

  • AI pair programmer for developers, built into the editor

01_04-composite-actions

Use these files to test a composite action.

  1. Create TWO new repos:
    • one to host the composite action
    • one to host the workflow that uses the action
  2. Upload the file action.yml into the root of the compsite action repo.
  3. Upload the following files into the root of the workflow repo:

main.py

@managedkaos
managedkaos / Dockerfile.nginx
Created January 29, 2022 19:00
A pretty basic Dockerfile for NGINX. It uses nginx as the base; does apt-get update and upgrade; and then installs vim.
FROM nginx
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y vim

Ebedded Build Status (unprotected)

Type Badge
Markdown Build Status
HTML
@managedkaos
managedkaos / humble-bundle-complete-aws-training-pluralsight.md
Created June 21, 2022 16:52
Humble Bundle for Complete AWS Training with Pluralsight

Image

Humble Software Bundle: Complete AWS Training

Learn the ins, outs, and myriad applications of Amazon Web Services (AWS) cloud computing from the experts at Pluralsight! The bundle of online courses will help train you up on databases, machine learning, networks, security, development, and more using one of the world’s most popular cloud computing services. Get the AWS knowledge you need, all while supporting Code.org and NPower!

Master AWS cloud tech with these courses

  • Understanding AWS Core Services
  • Analyzing Data on AWS
@managedkaos
managedkaos / jenkins_on_docker.sh
Last active January 1, 2023 00:18
A `bash` function for running the Jenkins CI LTS image as a docker process.
function jenkinsondocker() {
if [ $(ps -elf | grep docker | wc -l) -gt 0 ];
then
if [ "$1" == "clean" ] || [ "$2" = "clean" ]; then
echo "# $(date) Removing any previously running Jenkins instances..."
echo Stopping $(docker stop jenkins 2>&1) | sed 's/Error response from daemon://'
echo Removing $(docker rm jenkins 2>&1) | sed 's/Error response from daemon://'
fi
docker pull jenkins/jenkins:lts
@managedkaos
managedkaos / data.json
Last active February 18, 2023 21:12
Simple Golang API
[
{
"guid": "05024756-765e-41a9-89d7-1407436d9a58",
"school": "Iowa State University",
"mascot": "Cy",
"nickname": "Cyclones",
"location": "Ames, IA, USA",
"latlong": "42.026111,-93.648333"
},
]
import re
import git
import os
repos = {
'terraform': 'https://github.com/hashicorp/terraform.git',
'aws-cli': 'https://github.com/aws/aws-cli.git',
}
for repo_name, repo_url in repos.items():
@managedkaos
managedkaos / jupyter-environment-specs.ipynb
Created March 23, 2023 16:54
Jupyter-Environment-Specs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@managedkaos
managedkaos / input.csv
Last active May 5, 2023 08:52
Reads a CSV of topic words and weights stored in one row across 11 columns. Creates a new CSV with the topics words and scores stored across four rows and seven columns.
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 21 columns, instead of 7. in line 7.
Topic,Word 1,Weight 1,Word 2,Weight 2,Word 3,Weight 3,Word 4,Weight 4,Word 5,Weight 5,Word 6,Weight 6,Word 7,Weight 7,Word 8,Weight 8,Word 9,Weight 9,Word 10,Weight 10
1,report,0.7596,adverse,0.0413,submit,0.0409,impact,0.0398,upon,0.0349,follow,0.0341,completion,0.0333,number,0.0082,visually,0.0013,inspect,0.0013
2,injury,0.398,intervention,0.3205,medical,0.279,report,0.0,fda,0.0,doc,0.0,problem,0.0,power,0.0,stick,0.0,via,0.0
3,confirmation,0.4171,could,0.1582,allegation,0.1121,determine,0.0965,probable,0.0957,cause,0.0614,via,0.0476,aberration,0.0038,count,0.0025,high,0.0016
4,fail,0.3576,error,0.3275,transmitter,0.313,occur,0.0004,report,0.0,fda,0.0,via,0.0,recall,0.0,safety,0.0,power,0.0
5,could,0.3327,probable,0.2869,determine,0.2133,cause,0.165,allegation,0.0,confirmation,0.0,report,0.0,inaccuracies,0.0,additionally,0.0,via,0.0
6,could,0.3064,determine,0.2886,cause,0.259,root,0.1422,possible,0.0011,probable,0.0,allegation,0.0,additionally,0.0,via,0.0,doc,0.0
7,report,0.9937,occur,0.0009,transmitter,0.0