Shell ain’t a bad place to FP: part 2/N: Functions as Unix Tools
As we saw in the previous post, functions obey stdio and we can mix and match them with built-ins (grep, sed, cat etc.) and other installed tools (like jq, pandoc, babashka etc.). We used functions to name parts of Douglas McIlroy’s pipeline and mess around a bit.
—
https://www.evalapply.org/posts/shell-aint-a-bad-place-to-fp-part-2-functions-as-unix-tools/index.html
Asides
bash-timer
bash-timer
Shows a human-readable execution time for every command run in bash. You might also find my Amazing Linux, PHP, and Git Aliases quite useful as well.
—
https://github.com/hopeseekr/BashScripts/tree/trunk/bash-timer
marcopaganini/snip
marcopaganini/snip
snip is a simple snippet manager for bash, which allows the user to save useful and important bash code snippets directly from the bash prompt. It is especially useful to save long one-liners, or rarely used commands which we tend to forget.
—
https://github.com/marcopaganini/snip
ddries/d2c.sh
ddries/d2c.sh
Update Cloudflare DNS ‘A’ records for your dynamic IP. d2c.sh is configured using a TOML file located in /etc/d2c/d2c.toml. The first time you run d2c.sh from the command-line, it will create the config directory for you. You still have to manually create the TOML configuration file.
—
https://github.com/ddries/d2c.sh
onceupon/Bash-Oneliner
onceupon/Bash-Oneliner
I am glad that you are here! I was working on bioinformatics a few years ago and was amazed by those single-word bash commands which are much faster than my dull scripts, time saved through learning command-line shortcuts and scripting.
—
https://github.com/onceupon/Bash-Oneliner
kattouf/ProgressLine
kattouf/ProgressLine
Track commands progress in a compact one-line format. Download the binary for your platform from the releases page, and place it in your executable path.
—
https://github.com/kattouf/ProgressLine
debloper/piosk
debloper/piosk
One-shot set up Raspberry Pi in kiosk mode as a webpage shuffler, with a web interface for management. This started as a simple automation script — a wrapper of the official Raspberry Pi kiosk mode tutorial for personal use.
—
https://github.com/debloper/piosk
Cloning Windows Recall in 30 Lin
Cloning Windows Recall in 30 Lines of Bash
This is mostly a demonstration of what Windows Recall actually seems to do under the hood, and is not meant to be seriously used. When called with –daemon it will handle the screenshotting/OCR analysis, and when called with anything else it is interpreted as a ripgrep search.
—
https://jackson.dev/post/cloning-windows-recall-in-30-lines-of-bash/
Amber The Programming Language
Amber The Programming Language
You will find many of the language features familiar, allowing you to get up and running much faster than if you were learning Bash from scratch. It’s one of the key components missing from regular shell scripts. It can help you catch many bugs at compile time.
—
https://amber-lang.com/
JSON command-line toolbox (jq, g
JSON command-line toolbox (jq, gron, jc, etc)
The JSON format is the backbone of current Internet protocols and APIs, and this article contains a list of tools to make a better use of it from the command-line, without the need of writing complex programs to read, search, parse, transform and transmit JSON data.
—
https://racum.blog/articles/json-toolbox/