techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#bash

50 posts40 participants3 posts today

Okay nerds. I’m hoping for recommendations because search results are all getting so murky with AI injections.

I am not a software developer, but I’m having to get more into it for the purpose of automation and sysadmin tasks. Presently I am focused on bash, python, a bit of PowerShell and CaC/IaC like Ansible, kubernetes etc.

Please recommend some books that are focused on software design patterns and principles that would be relevant for my use case.

Thank you!

This is the current weather using wttr for the PBM Airport in SR / SA

As you can see wttr has a very flexible manner of asking for weather, is opensource, has a lovely API and can be used in countless manners. For me the fact that I can call it up from bash (and any shell) is smooth nice and amazing

#weather#wttr#curl

Bash csh zsh ksh tksh fish are powerful CLI tools

Entire networks can be controlled and build with them.

Let's take for example command line tools to control media output

For me e.g mplayer and vlc -I cli are much more interesting when it comes down to standard control of media playback. I prefer to use MOC (mocp) Music 🎼 on Console, instead of bulky RAM hungry programs, which go on the internet to _fetch data that I never asked for$ and thus burn bandwidth

The memory footprint of Music on Console is so low that you can use it on a system which has been built more than two and a half decades ago.

The only graphical media playback program I know that can do that also has been written by my friend Andy Loafoe and that is alsaplayer

Andy programmed alsaplayer when he saw Delitracker playing on my Amiga systems
We're talking the period when Linux was barely moving in Xwindows when you had window managers like fvwm & twm and few others.
The alsa audio interface was also just born.

It is within this context that Andy envisioned alsaplayer. It should be modular just like Delitracker Amiga, it should be lightweight Delitracker runs on an Amiga A500 with just half A megabyte of chip ram
That should still be memory left to do other the things so straight calls were made to widget libraries which explains the simplicity yet great usability of the UI. For as far as I remember Andy has also written an API for Alsaplayer

Within a few weeks to a few months of coding alsaplayer came out of Alpha and went Bèta in code stability.

Because everything was written with efficiency in mind and it was programmed as portable as possible, alsaplayer can still be used many decades after It has been written

One of the main reasons is that it has been coded by a command line programmer

Alsaplayer has been ported to many different Operating System Architectures including freeBSD

For me working on the command line has always been logical, graphic user interfaces were only used when absolutely necessary think about GEOS on the C64

I started coding on the Casio FX 700p programmable calculator. I went so far to make program code that was in the book more efficient by crunching all the commands with two letter abbreviations.

The power of the Command Line something the Young Ones should Learn

Alsaplayer manpage

https://man.freebsd.org/cgi/man.cgi?query=alsaplayer&sektion=1&apropos=0&manpath=FreeBSD+6.0-RELEASE+and+Ports

man.freebsd.orgalsaplayer(1)
#programming#Bash#csh