Standard Search
About 38 results
https://rednafi.com/misc/bash-namerefs/ · 20 Sep 2024
Master Bash namerefs with declare -n to create dynamic variable references. Build generic functions for arrays and associative arrays without eval.
https://rednafi.com/misc/shell-redirection/ · 12 Sep 2024
Complete guide to Bash redirection. Master stdout, stderr, pipes, tee, file descriptors, and shorthand syntax with practical examples for every case.
https://rednafi.com/misc/http-requests-via-dev-tcp/ · 8 Aug 2024
Make raw HTTP requests with Bash's /dev/tcp file descriptor. Build health check scripts without curl or wget using TCP socket connections.
https://rednafi.com/misc/install/ · 28 Jul 2024
Replace mkdir, cp, and chmod with a single install command. Copy files, create directories, and set permissions in one step with GNU coreutils.
https://rednafi.com/misc/heredoc-headache/ · 19 Jul 2024
Avoid here-doc pitfalls when running remote commands via SSH. Learn variable expansion gotchas and simpler alternatives for deployment scripts.
https://rednafi.com/misc/on-rebasing/ · 18 Jun 2024
Master git rebase for cleaner commit history. Learn interactive rebasing, squashing commits, and rebasing feature branches onto main with practical examples.
https://rednafi.com/misc/pesky-little-scripts/ · 29 Oct 2023
Organize custom scripts with comma-prefixed naming. Improve tab completion and eliminate clutter by prefixing script names with special characters.
https://rednafi.com/misc/dotfile-stewardship-for-the-indolent/ · 27 Sep 2023
Manage dotfiles across devices with GNU Stow. Symlink configuration files from git repo to home directory with simple, idempotent commands.
https://rednafi.com/misc/dns-record-to-share-text/ · 17 Jul 2023
Share data via DNS TXT records using dig and base64 encoding. Learn limitations, security concerns, and practical use cases for DNS tunneling.
https://rednafi.com/python/unix-style-pipeline-with-subprocess/ · 14 Jul 2023
Build Unix-style command pipelines in Python using subprocess.run with stdout piping for efficient process chaining and output capture.