sd: my script directory
Hi! You’re reading an old post, and some of might be out of date. Check out this newer post for an update on the state of sd, or jump straight to the GitHub repo for the latest news. sd is a command on my PATH. It dispatches its arguments to my script directory.
—
https://ianthehenry.com/posts/sd-my-script-directory/
Author: pforret
Performance comparison: counting
Performance comparison: counting words in Python, Go, C++, C, AWK, Forth, and Rust
Summary: I describe a simple interview problem (counting frequencies of unique words), solve it in various languages, and compare performance across them. For each language, I’ve included a simple, idiomatic solution as well as a more optimized approach via profiling.
—
https://benhoyt.com/writings/count-words/#unix-shell
Well-behaved alias commands on W
Well-behaved alias commands on Windows
Since its inception I’ve faced a dilemma with w64devkit, my all-in-one Mingw-w64 toolchain and development environment distribution for Windows. A major goal of the project is no installation: unzip anywhere and it’s ready to go as-is.
—
https://nullprogram.com/blog/2021/02/08/
The Ultimate Programmer’s Guide
The Ultimate Programmer’s Guide to Bash Scripting
Bash scripts allow you to automate command-line tasks. For example, watch this video. The video shows how to automate creating a YouTube channel with Bash scripts. After watching it, you may want to create your own YouTube channel.
—
https://medium.com/better-programming/the-ultimate-programmers-guide-to-bash-scripting-2d11d4e6e978
Apple Silicon and Shell Scripts
Apple Silicon and Shell Scripts
On November 10, Apple unveiled the latest iteration of MacBook Pro, Air, and Mac Mini with its in-home Apple Silicon M1 chip.
—
https://medium.com/better-programming/apple-silicon-and-shell-scripts-3207cf1f88c5
Readable Bash Scripts
Readable Bash Scripts
I really love the feeling of writing a bash pipeline. It’s fun to string commands together, peek at the output, add another couple pipes to massage the data closer to my goal. I even gave a short class on them: bgschiller/shell-challenges.
—
https://brianschiller.com/blog/2021/01/07/readable-bash-scripts
3 Uncommon Bash Tricks That You
3 Uncommon Bash Tricks That You Should Know
One way to type less is to make proper use of your shell (commonly Bash). That’s what this post is about — three Bash tricks that will allow you to type less. All of these tricks are also compatible with zsh.
—
https://medium.com/better-programming/3-uncommon-bash-tricks-that-you-should-know-c0fc988065c7
progrium/bashstyle
progrium/bashstyle
Bash is the JavaScript of systems programming. Although in some cases it’s better to use a systems language like C or Go, Bash is an ideal systems language for smaller POSIX-oriented or command line tasks. Here’s three quick reasons why:
—
https://github.com/progrium/bashstyle
Bash HTTP monitoring dashboard
Bash HTTP monitoring dashboard
This is a shell script that creates a webpage with the status of HTTP(s) sites. Parallel checking, thus very fast, only dependencies are curl and bash (version 4 or above). For all of you who want a simple script with a nice webpage to check a few websites.
—
https://raymii.org/s/software/Bash_HTTP_Monitoring_Dashboard.html
bash-script-template
bash-script-template
I write Bash scripts frequently and realised that I often copied a recent script whenever I started writing a new one. This provided me with a basic scaffold to work on and several useful helper functions I’d otherwise likely end up duplicating.
—
https://github.com/ralish/bash-script-template