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

Zoom

When presenting your screen over video calls, always remember to zoom in. ...

July 23, 2024 · 45 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

Format dialogues in markdown

I wanted to add a new kind of post to this blog, wherein I transcribe conversations (a dialogue). Initially, I formatted conversations like this: Alice: Hi Bob: Hello In code: - Alice: Hi - Bob: Hello But that’s just an ordinary list. I thought about using em-dashes next, but they were meh (–). Then the lazy web helped me with inspirations, and I settled with the following format: Alice: Hi...

July 16, 2024 · 93 words · Thiago Perrotta

Fans

Coworker 1: We need new fans for the office. You are welcome to send some suggestions. Coworker 2: Let’s start a thread on Slack and post some links to Amazon. Coworker 3: Yes, we chould start a new channel there. It should be called OnlyFans.

July 16, 2024 · 45 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