Skip to content

Instantly share code, notes, and snippets.

View 0mnius's full-sized avatar

Eli Shalnev 0mnius

View GitHub Profile
@mattmc3
mattmc3 / optparsing_demo.zsh
Last active December 2, 2025 17:37
Zsh option parsing example
# Manual opt parsing example
#
# Features:
# - supports short and long flags (ie: -v|--verbose)
# - supports short and long key/value options (ie: -f <file> | --filename <file>)
# - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>)
# - does NOT support short option chaining (ie: -vh)
# - everything after -- is positional even if it looks like an option (ie: -f)
# - once we hit an arg that isn't an option flag, everything after that is considered positional
function optparsing_demo() {
@0mnius
0mnius / aws.md
Last active January 22, 2026 13:26 — forked from colinvh/aws.md
AWS Region Names

Alternative naming schemes for AWS regions

Based on original scheme by colinvh/aws.md

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Legend

Code Description
@christ66
christ66 / README
Last active March 10, 2023 14:05 — forked from ganthore/README
See README below.
INSTALLATION
Copy jenkins-slave.init to /etc/init.d/jenkins-slave and copy jenkins-slave to /etc/sysconfig/jenkins-slave.
cp jenkins-slave.init /etc/init.d/jenkins-slave
cp jenkins-slave /etc/sysconfig/jenkins-slave
chkconfig jenkins-slave on
service jenkins-slave start
Change the values of /etc/sysconfig/jenkins-slave to match your environment needs.
@colinvh
colinvh / aws.md
Last active January 15, 2026 10:25
AWS Region Names

Alternative naming schemes for AWS regions

Purpose

The intent is to define terse, standards-supported names for AWS regions.

Schemes