The first script I write in a new job: gg
(2 mins read).
Why writing a script to easily git clone
repos is my first step as a new starter.
The first script I write in a new job: gg
(2 mins read).
Why writing a script to easily git clone
repos is my first step as a new starter.
Recommended read: PIPEFAIL: How a missing shell option slowed Cloudflare down https://blog.cloudflare.com/pipefail-how-a-missing-shell-option-slowed-cloudflare-down/
One of the fights I keep losing at ${DAYJOB} is “don’t use short flags in shell scripts if you have long flags available; make things easier for the people who come after you” And like... I do not understand why this is controversial or why people resist it so strongly.Ryan McKern 🇵🇷 (@the_mckern)Fri, 18 Dec 2020 00:55 GMT
I very much recommend learning how to use a more well-structured scripting language than Bash, as languages such as Ruby have a great standard library, a huge ecosystem of other libraries, and are commonly installed across machines - this is a great look at partially replacing shell scripts with Ruby
Recommended read: Enhanced Shell Scripting with Ruby https://www.devdungeon.com/content/enhanced-shell-scripting-ruby
Recommended read: Hacking with Environment Variables https://www.elttam.com/blog/env/
Recommended read: Take care editing bash scripts https://thomask.sdf.org/blog/2019/11/09/take-care-editing-bash-scripts.html
Recommended read: Go compared to Python for small scale system administration scripts and tools https://utcc.utoronto.ca/~cks/space/blog/sysadmin/SysadminGoVsPython
You're currently viewing page 1 of 1, of 7 posts.