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

pyenv

When working on Python projects, pyenv is a great python environment / version manager, especially on macOS wherein you cannot easily control the python system version. ...

March 10, 2024 · 132 words · Thiago Perrotta

chrome-fresh: start a fresh instance of Google Chrome

I used to have the following handy script to launch a new (fresh!) instance of Google Chrome when working on Chrome for Testing in the Browser Automation team at Google: ...

March 10, 2024 · 140 words · Thiago Perrotta

Set terminal language to English

I changed my macOS system language to German, with the intent of getting more exposure to it. One negative side effect is that most binaries I execute with my shell (for example: git) are now outputting German text as well1. In hindsight, this should have been expected. ...

February 22, 2024 · 145 words · Thiago Perrotta

★ Integrating terraform with ansible

This post is a follow-up of Terraforming a Linode: hello world. In a future post, we will continue from here by using Ansible to install and set up Miniflux in our new Linode. Before we extensively use Ansible to configure our VPS instance, first let’s set up a basic integration between Terraform and Ansible. ...

February 1, 2024 · 684 words · Thiago Perrotta

Hugo: rename a tag

This blog is rendered by the means of a static site generator (SSG) called Hugo. Each blog post has a set of one or more tags associated to it. The more posts I create, the more consolidated the tags become. Sometimes I need to rename tags after-the-fact to better reflect the underlying posts they represent. ...

January 29, 2024 · 424 words · Thiago Perrotta

sd-world: perform a full system upgrade

Whenever I want to upgrade any one of my systems, I run sd-world. ...

January 28, 2024 · 628 words · Thiago Perrotta

★ (Google) Chrome for Testing: reliable downloads for browser automation

Let’s discuss the raison d’etre of Google Chrome for Testing, a project I was the Tech Lead of during my tenure on the Chrome Tooling / Browser Automation team at Google. ...

January 25, 2024 · 1238 words · Thiago Perrotta

★ Terraforming a Linode: hello world

I host my own Miniflux instance, which happens to be my favorite RSS reader. Currently it is hosted on Linode (Akamai Cloud) running Alpine Linux. My current setup was performed manually. I was thinking that, for fun, it would be cool to fully automate it under the principles of IaC. ...

January 23, 2024 · 884 words · Thiago Perrotta

The fundamental right to paste

Some websites attempt to prevent users from pasting text (i.e. Ctrl+V / Cmd+V) in web browsers. It serves no purpose in most cases other than hindering accessibility and increasing annoyance for users. ...

January 22, 2024 · 244 words · Thiago Perrotta