Alpine Linux: How to install all manpages (idiomatically)

This post is a reply to https://tilde.town/~kzimmermann/articles/installing_alpine_manpages.html. The author describes their experience while attempting to install all man pages for all the packages in use in their system. The breakdown progression has some valuable insights on how a typical Unix sysadmin addresses a problem. I tend to adopt a similar approach when entering unknown territory. However, in Alpine Linux, there is a better way. ...

July 20, 2024 · 242 words · Thiago Perrotta

Explain a crontab expression

Given, for example, 0 0 * * *, how do you figure out when it will run? ...

July 1, 2024 · 71 words · Thiago Perrotta

Localhost domain

If you find yourself in a situation wherein http://localhost:1313 has issues, you can use a domain that redirects to localhost. For example: http://localdev.me:1313/ http://demo.localdev.me:1313/ ...

July 1, 2024 · 118 words · Thiago Perrotta

Copy files from laptop to Steam Deck

Let’s say the files you want to copy are in ~/Downloads. ...

June 30, 2024 · 78 words · Thiago Perrotta

Rename files in bulk

Whenever the files are in the same directory, vidir from moreutils is the best interactive tool. If files are scattered across multiple directories, consider using the rename utility from util-linux. ...

June 19, 2024 · 69 words · Thiago Perrotta

Sleep forever

The following commands will make the shell sleep indefinitely: ...

June 15, 2024 · 34 words · Thiago Perrotta

Bcrypt-hash a password

Given the password correct horse battery staple, we would like to bcrypt-hash it. XKCD Courtesy of Randall Munroe ...

June 6, 2024 · 65 words · Thiago Perrotta

Adding a healthcheck to chartmuseum in AWS Fargate

Assume that you have a Chartmuseum container running in AWS Fargate. Chartmuseum is a repository for helm charts. AWS Fargate is an Amazon service to run containers (“serverless”), being part of ECS (Elastic Container Service). Problem statement: Add a container healthcheck to the chartmuseum task definition associated with the container. ...

May 17, 2024 · 165 words · Thiago Perrotta

Be aware that your public SSH keys can reveal your identity

If you have a GitHub account configured with SSH, your public keys are available at https://github.com/$USERNAME.keys. For example, mine: https://github.com/thiagowfx.keys And then let’s say you also use your full name on GitHub. ...

May 3, 2024 · 214 words · Thiago Perrotta

Shell text substitution

I learned a neat shell trick this week. In both bash and zsh you can use the circumflex / caret (^) symbol to find & replace a word from the previous command. Usage: ^prev^next. It’s best illustrated with examples: ...

April 7, 2024 · 104 words · Thiago Perrotta