Skip to content

Instantly share code, notes, and snippets.

View mbround18's full-sized avatar
😍
Designing

Michael mbround18

😍
Designing
View GitHub Profile
@mbround18
mbround18 / README.md
Created September 26, 2024 22:30
Traefik v3 cert roller

Traefik v3 Certificate Creation Script

Overview

This script helps users resolve "certificate not found" errors when upgrading to Traefik v3 by automating the process of creating Kubernetes TLS secrets for your certificates.

Prerequisites

Before using this script, ensure that:

@mbround18
mbround18 / caching.sh
Created July 18, 2024 16:25
Docker compose caching via yq
#!/usr/bin/env bash
# Check for Docker CLI
if ! command -v docker &> /dev/null
then
echo "Docker CLI not found. Please install Docker."
exit 1
fi
# Check for yq CLI
@font-face {
font-family: 'OpenDyslexic 3';
src: url('https://wiki.boop.ninja/fonts/opendyslexic3-regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html, html * {
font-family: 'OpenDyslexic 3', sans-serif !important;
}
@mbround18
mbround18 / Makefile
Last active October 9, 2023 05:09
Fast build on windows for WSL2
# Following this tutorial: https://markentier.tech/posts/2022/01/speedy-rust-builds-under-wsl2/
# This makes developing on windows significantly easier for rust projects!!
SOURCE_DIR = $(PWD)
# `notdir` returns the part after the last `/`
# so if the source was "/some/nested/project", only "project" remains
BUILD_DIR = ~/tmp/$(notdir $(SOURCE_DIR))
wsl.build: wsl.sync
cd $(BUILD_DIR) && cargo build
@mbround18
mbround18 / setup.sh
Last active September 13, 2023 06:48
#!/usr/bin/env sh
ANSIBLE_USER="ansible"
ANSIBLE_PUB_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMGGvMjigF1/Sm30OWfP/Fsh3jYyO26HRd2anCooO68K ansible"
GITHUB_GIST_URL="https://gist.githubusercontent.com/mbround18/f49c06af1fe4c6c420f5b99cbc5deb6f/raw/57b1280bea0a2086a8806b923c611f2577b50563/pub-key"
# Install Deps
apt-get update && apt-get install -y curl wget gosu openssh-server openssh-client sudo
# Initialize ssh

Github Action/Workflow Updater

Requirements

  • yq
  • gh
  • gh logged into github

Usage

@mbround18
mbround18 / README.md
Created February 27, 2023 08:10
Syncthing Ignore

Syncthing Ignore List

Just a handy syncthing ignore list.

@mbround18
mbround18 / README.md
Last active October 30, 2022 21:34
Video Background Script for dev.to Article
@mbround18
mbround18 / garth.events.json
Last active August 6, 2022 06:41
D&D character Garth, Timeline
// 890 AN Birth of Garth
// 997 AN Current Garth
[
{
"time": 890,
"title": "What am I?",
"event": "Garth found himself? herself? floating within the cosmos roaming freely before feeling a tug at the strings of their soul."
},
{
# Node
(?d)node_modules
(?d)dist
(?d).yarn/cache
(?d).yarn/unplugged
(?d).bundle
# Universal