Parallel

Apparently there are two Unix-y ways to run commands in parallel: GNU parallel: https://www.gnu.org/software/parallel/ moreutils parallel: https://www.gnu.org/software/parallel/ ...

July 24, 2024 · 206 words · Thiago Perrotta

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

kubectl: get all logs from all pods

Frequently: kubectl logs -n argocd argocd-repo-server-5d59975687-dxnh7 But how do you know what hash to use after server-? ...

July 15, 2024 · 170 words · Thiago Perrotta

kubectl: get secret with jsonpath and add a newline

When retrieving opaque secrets with kubectl, one will often invoke this typical command: ubuntu@ubuntu:~ $ kubectl get secret -n argocd argocd-github-webhook-secret -o jsonpath='{.data.value}' eW91IGFyZSBjdXJpb3VzIGFyZW50IHlvdQ==ubuntu@ubuntu:~ $ But isn’t this ugly? The prompt is concatenated with the output. ...

July 9, 2024 · 142 words · Thiago Perrotta

icdiff: side-by-side diff

icdiff is a simple diffing tool written in python that comes with two sensible out-of-the-box defaults: colored diff output side-by-side diff ...

July 9, 2024 · 197 words · Thiago Perrotta

Github-flavoured Markdown: Callouts

Since the end of the last year it’s possible to add callouts to markdown files on GitHub. They are treated specially and rendered in a visually distinct way: > [!NOTE] > Highlights information that users should take into account, even when skimming. > [!TIP] > Optional information to help a user be more successful. > [!IMPORTANT] > Crucial information necessary for users to succeed. > [!WARNING] > Critical content demanding immediate user attention due to potential risks. > [!CAUTION] > Negative potential consequences of an action. In the spirit of xg2xg, this feature has a direct 1:1 mapping with the classic g3doc callouts at Google (except for “caution”): Note: This is a note. Tip: This is a tip. Warning: This is a warning. Important: This is important. Sources: https://github.blog/changelog/2023-12-14-new-markdown-extension-alerts-provide-distinctive-styling-for-significant-content/ https://github.com/orgs/community/discussions/16925

July 4, 2024 · 130 words · Thiago Perrotta

Pipes: RSS Manipulation

Yahoo! Pipes is not around anymore, however there is a modern replacement for it: https://www.pipes.digital/. ...

July 3, 2024 · 208 words · Thiago Perrotta

Terraform: perform a global update

Given a terraform/modules directory tree, we would like to globally update the minimum required terraform version in all modules. ...

July 2, 2024 · 52 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