Skip to content

Instantly share code, notes, and snippets.

View AlexAtkinson's full-sized avatar

Alex Atkinson AlexAtkinson

  • Toronto
View GitHub Profile
@AlexAtkinson
AlexAtkinson / Ansible.md
Last active December 6, 2025 08:29
Ansible Cheat

Ansible Cheat Sheet

Stuff I forgot...

TODO: Remember the stuff that drove me nuts as a noob...

Personal Use Tactics

These tactics shouldn't be employed in production.

@AlexAtkinson
AlexAtkinson / Redirects.md
Created December 5, 2025 02:36
Linux Redirects

Redirects

Redirect operations are quite involved. Here are a few of the highlights:

  • The files: '/dev/std{in,out,err}', are symlinks to file descriptors.
  • File descriptors (aka file handles) are numbers that identify open files.
  • A file is an object that stores data, information, settings, or commands.
  • The numbers commonly seen in the redirect '2>&1' are file descriptors.
  • Running 'file /dev/std*' outputs: /dev/stdin: symbolic link to /proc/self/fd/0 /dev/stdout: symbolic link to /proc/self/fd/1
@AlexAtkinson
AlexAtkinson / genpass.sh
Created December 4, 2025 05:34
Password Generator
#!/usr/bin/env bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# PW Material Generator
# Notes:
# - Used by genpass
# - Generates 20 characters per invocation
# - Takes ~1ms per character generated on an average
# system
# - Will _always_ lead with an ALPHA character
# - Will _always_ include _at least one SPECIAL character
@AlexAtkinson
AlexAtkinson / truecolor_demo.sh
Created December 4, 2025 05:20
TrueColor Demo
#!/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 December 6, 2025 10:09
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
Last active November 27, 2024 14:06
A 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 November 19, 2025 01:28
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