Skip to content

Instantly share code, notes, and snippets.

View AlexAtkinson's full-sized avatar
🚀
AI Powered DevOps

Alex Atkinson AlexAtkinson

🚀
AI Powered DevOps
  • Toronto
View GitHub Profile
@AlexAtkinson
AlexAtkinson / Truecolor_Demo.sh
Last active January 28, 2026 04:25
Reveal the true colors of your terminal...
#!/usr/bin/env bash
# Truecolor demo
# Thanks to those who I've taken inspiration from.
# My Adds:
# - int bounding
# - text overlay for single-line output with contextual hint
__color_truecolor_demo() {
local TXT FG COLUMN COLUMNS FILL_L FILL_R R G B
TXT="This will be a smooth gradient if truecolor is supported."
@AlexAtkinson
AlexAtkinson / printFancyHeader.sh
Last active December 4, 2025 05:31
printFancyHeader.sh
#!/usr/bin/env bash
# shellcheck disable=2183
# GIST NOTES
# v1 is here: https://gist.github.com/AlexAtkinson/49078eb9a2dcff17b28371eb92964cca
# Clean Test - run:
# NOTE: The hash in the URL below should match this gist. <<< VERIFY THIS
# docker run -e LANG="C.UTF-8" -e LC_ALL="C.UTF-8" -it debian /bin/bash
# apt update && apt -y install curl
@AlexAtkinson
AlexAtkinson / ..index.md
Last active February 24, 2026 21:03
PC Setup

PC Setup

Codified PC Setup.

Usage

source <(curl -s https://gist.githubusercontent.com/AlexAtkinson/27b12f4dfda31b1b74fcab3fc9a6d192/raw/init.sh)
@AlexAtkinson
AlexAtkinson / Emojis-Icons.md
Last active February 4, 2025 22:43
Emojis & Icons

Emojis

Name Image
aircall-available Emoji
aircall-connected Emoji
aircall-incoming
@AlexAtkinson
AlexAtkinson / PDF_Extract_Attachments.py
Last active January 28, 2026 04:49
PDF Attachment Extractor -- BC I don't want to install Adobe...
#!/usr/bin/env python
# Copy into /usr/local/bin or as appropriate for your $PATH
import argparse
from pypdf import PdfReader
from pypdf.errors import PdfReadError
parser = argparse.ArgumentParser()
parser.add_argument("pdf", help="The PDF to extract attachments from.", type=str)
@AlexAtkinson
AlexAtkinson / REGEX.md
Last active February 24, 2026 06:05
REGEX Cheat

REGEX

Reference

Character Sets/Ranges   []                  : Match any characters within. Required expression.
Qualifiers              {}                  : Quantity or range of an expression. IE: {3}, {2,200}
Groups                  ()                  : Group expressions. Subgroups supported.
Non-Capturing Group     (?:foo)             : Does not "remember" matches. Lower overhead.
Kleen Star              *                   : May occur 0 or more times.
@AlexAtkinson
AlexAtkinson / AcceptanceCriteria.md
Created October 4, 2024 16:31
On Acceptance Criteria

On Acceptance Criteria

🗒️ An excerpt from my good, ol' Jira Team Runbook.

Acceptance Criteria tactices are ever evolving, but this is a good skeleton to start from.

  • User story
  • Functional requirements
  • Link to design docs / supporting resources
  • Technical breakdown and analysis to identify infrastructure dependencies
@AlexAtkinson
AlexAtkinson / build_mesos_agent.sh
Created September 12, 2024 14:13
BASH from the PAST: Create a Mesos Agent Instance
#!/bin/bash
# ----------------------------------------------------------------------
# /root/build_mesos-slave.sh
# mesos-master auto-build
#
# ----------------------------------------------------------------------
# Variables
# ----------------------------------------------------------------------
user="root"
dir="/root"
@AlexAtkinson
AlexAtkinson / build_mesos_master.sh
Created September 12, 2024 14:11
BASH from the PAST: Create a Mesos Master Instance
#!/bin/bash
# ----------------------------------------------------------------------
# /root/build_mesos-master.sh
# mesos-master auto-build
#
# ----------------------------------------------------------------------
# Variables
# ----------------------------------------------------------------------
user="root"
dir="/root"
@AlexAtkinson
AlexAtkinson / Setup_CA_Cert.sh
Last active January 22, 2026 20:09
Create a CA & Cert (localhost)
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------------------------------------------
#
# make-ca-cert.sh
#
# SYNOPSIS
# Creates a CA if one doesn't already exist, and installs it (debian).
# Creats a server certificate (including wildcard SAN) signed by the CA.
#