Skip to content

Instantly share code, notes, and snippets.

View eliminmax's full-sized avatar
💻
Probably on a laptop somewhere

Eli Array Minkoff eliminmax

💻
Probably on a laptop somewhere
View GitHub Profile
@eliminmax
eliminmax / gh-md-header-id-patterngen.py
Last active March 20, 2024 17:49
A tool to generate a series of AWK `gsub` statments that remove anything that is removed in GitHub Markdown's header ids from the `head_id` variable, created for the cmark-gfm-heading-generator script from my mini-utils project.
#!/usr/bin/env python3
# Copyright © 2024 Eli Array Minkoff
# Zero-Clause BSD
# =============
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL

test.md

Same Level Same Name

Same Level Same Name

Different Level Same Name

Different Level Same Name

# XONSH WIZARD START
$AUTO_CD = '1'
$AUTO_PUSHD = '1'
$AUTO_SUGGEST_IN_COMPLETIONS = '1'
# XONSH WIZARD END
source-bash '~/.config/portable_aliases' --overwrite-alias
$UPDATE_OS_ENVIRON = True
# PROMPT STUFF
@eliminmax
eliminmax / x-resize-LFS
Last active December 28, 2022 05:21 — forked from 3lpsy/x-resize
3lpsy/x-resize, modified for my Linux from Scratch VM
#!/bin/bash
# 3lpsy/x-resize, modified for my Linux From Scratch VM
## Ensure Log Directory Exists
LOG_DIR=/var/log/autores;
if [ ! -d $LOG_DIR ]; then
mkdir $LOG_DIR;
fi
LOG_FILE=${LOG_DIR}/autores.log

The contents of this gist have been moved here

#!/usr/bin/env -S tail -n+3
# vi:ft=conf
bash: [0] eliminmax@array-ctrl:~/$ 
ash: [0] eliminmax@array-ctrl:~/$ 
ksh: [0] eliminmax@array-ctrl:~/$ 
mksh: [0] eliminmax@array-ctrl:~/$ 
osh: [0] eliminmax@array-ctrl:~/$ 
yash: [0] eliminmax@array-ctrl:~/$ 
zsh: [0] eliminmax@array-ctrl:~/$ 
fish: [0] eliminmax@array-ctrl:~/&