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

★ Github actions workflow

This post exemplifies an efficient workflow to shorten the edit-refresh loop when dealing with github actions. ...

May 28, 2024 · 366 words · Thiago Perrotta

Pritunl log in via CLI

Pritunl is an Enterprise Distributed OpenVPN server. In order to run its client on macOS, an .app is provided. However, using it to log in every day is quite tedious. Let’s automate it so that we can connect to the VPN with a single command. ...

May 7, 2024 · 264 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

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