Bash Completion (2023)
(erikarow.land)
This week, I’ve been exploring how tab completion works in Bash.
This week, I’ve been exploring how tab completion works in Bash.
Today I learned that bash has hashmaps (2024)
(xeiaso.net)
Hashmaps (associative arrays) are a great way to store a bag of key-value data. At work I was writing something that needed me to spawn a bunch of GPU instances, GPU availability is spread out by region and GPU type. I wanted to store a mapping of GPU kind to region name and for some reason I thought it would be a good idea to do it in bash.
Hashmaps (associative arrays) are a great way to store a bag of key-value data. At work I was writing something that needed me to spawn a bunch of GPU instances, GPU availability is spread out by region and GPU type. I wanted to store a mapping of GPU kind to region name and for some reason I thought it would be a good idea to do it in bash.
My PhD advisor rewrote himself in bash (2010)
(might.net)
The hardest part of advising Ph.D. students is teaching them how to write.
The hardest part of advising Ph.D. students is teaching them how to write.
Bocker: Docker implemented in around 100 lines of Bash (2015)
(github.com/p8952)
Docker implemented in around 100 lines of bash.
Docker implemented in around 100 lines of bash.
TIL: Some surprising code execution sources in bash
(yossarian.net)
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
TIL: Some surprising code execution sources in bash
(yossarian.net)
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
I ran across two surprising sources of code execution in bash (and probably other shells) recently.
Useful built-in macOS command-line utilities
(weiyen.net)
Sometimes when I'm bored, I like to look at the list of macOS Bash commands. Here's some commands that I found interesting:
Sometimes when I'm bored, I like to look at the list of macOS Bash commands. Here's some commands that I found interesting:
PID 1 Bash script for Docker containers explained line by line
(sirikon.me)
You wake up one morning, feeling bit spicy, daring to break rules, but you aren't the bravest one in town, so you choose something easy: "Let's break that rule about only running one process in a container".
You wake up one morning, feeling bit spicy, daring to break rules, but you aren't the bravest one in town, so you choose something easy: "Let's break that rule about only running one process in a container".
A bash script to move untracked files out of a checked-out Git repository
(github.com/blackbit42)
This is a simple bash script that helps you to quickly, temporarily move untracked files out of a checked-out git repository.
This is a simple bash script that helps you to quickly, temporarily move untracked files out of a checked-out git repository.
LLM_transcribe_recording: Bash Helper Using Mlx_whisper
(github.com)
A bash wrapper around python's mlx_whisper to leverage the GPU on a mac for transcription
A bash wrapper around python's mlx_whisper to leverage the GPU on a mac for transcription