Skip to content

Instantly share code, notes, and snippets.

View Segmentational's full-sized avatar

Jacob B. Sanders Segmentational

View GitHub Profile
@Segmentational
Segmentational / .gitmessage
Last active June 29, 2025 16:40
.gitmessage
type(scope): description
# <Type>(<Optional-Scope>): <Description>
#
# Body - Present Tense (e.g. "change", not "changed" || "changes")
#
# Footer - Issue Reference, Breaking Change, Additional Contributors, Commit SHA(s)
# Type Reference
#
@Segmentational
Segmentational / .gitignore
Created June 29, 2025 10:22
Personal-Swift-Ignore
### Customizations
.idea
### Languages - https://github.com/github/gitignore
## Swift
# Xcode
#
@Segmentational
Segmentational / Bash-Template-Example.bash
Last active June 29, 2025 10:16
Bash-Template-Example.bash
#!/usr/bin/env bash
# -*- Coding: UTF-8 -*- #
# -*- System: Linux -*- #
# -*- Usage: *.* -*- #
#
# General Bash Template
#
@Segmentational
Segmentational / Bash-Example.Bash
Last active June 29, 2025 09:34
Bash-Example.Bash
#!/usr/bin/env bash
# -*- Coding: UTF-8 -*- #
# -*- System: Linux -*- #
# -*- Usage: *.* -*- #
#
# Advanced Bash Example
#
# Script makes use of the following concepts:
@Segmentational
Segmentational / Dynamic-Python-Virtual-Environment.py
Last active June 19, 2025 23:51
Dynamic-Python-Virtual-Environment.py
#!/usr/bin/env python
import argparse
import glob
import json
import logging
import os
import pathlib
import shlex
import shutil
@Segmentational
Segmentational / python.mk
Last active June 4, 2025 00:21
Makefile (Python)
# ====================================================================================
# Project Specific Globals
# ------------------------------------------------------------------------------------
#
# - It's assumed the $(name) is the same literal as the compiled binary or executable.
# - Override the defaults if not available in a pipeline's environment variables.
#
# - Default GitHub environment variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables
#
@Segmentational
Segmentational / .pre-commit-config.yaml
Last active June 4, 2025 00:18
Pre-Commit-Template
---
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.6.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-json
@Segmentational
Segmentational / unset-aws-environment-variables.bash
Created May 19, 2025 16:10
Unset AWS Environment Variables
function unset-aws-environment-variables() {
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
unset AWS_PROFILE
unset AWS_DEFAULT_PROFILE
}
@Segmentational
Segmentational / public.goleaser.yaml
Created March 28, 2025 03:43
Public Go Releaser CLI
version: 2
project_name: example-cli
env_files:
github_token: ~/.config/goreleaser/github_token
before:
hooks:
- go vet
@Segmentational
Segmentational / K8s-Kustomization-Secrets-Documentation.md
Last active March 27, 2025 23:30
General GitOps Secrets Generator Documentation. Please note there are much better, more secure and scalable, setups for Kubernetes secrets.

Secrets

Secrets Generation

Various secrets need to be "hydrated" prior to running any kustomizations.

Specifically, each cluster will contain a secrets directory that contains a secretGenerator directive. Various files will need to be established under a nested .secrets directory.