aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2024-08-06 16:28 #

I wanted to get rid of raw <img> tags and replace then with <figure>, available as a shortcode in Hugo. It turned out I had a lot of replacements to perform:

» rg -nc "\!\[.*\]\(" content/post | cut -d: -f2 | paste -sd+ | bc
688

Here’s a classical one-liner using Sed:

sed "s/^\!\[.*\](\(.*\))/{{< figure src=\"\1\" >}}/ content/post/*.md

I took the opportunity to add a small colored insert to each figure using the following CSS code:

figure {
  box-shadow: 0 0 0 .5em #f3f3ed;
  margin: 2em 4em;
}
2024-08-06 14:29 #

TIL that \%V can be used to replace only in a visual selection (very handy for rectangular selection with <C-V>). #vim

2024-08-02 16:16 #

And so, one year later, we got a few dozens of additional functions and a brand new name.

img

2024-08-01 21:58 #

♪ The Doors · The Crystal Ship

2024-08-01 12:58 #

Creating and managing a package seemed much harder than I expected. — An unbiased evaluation of environment management and packaging tools

… to put it very mildly… This, however, does constitue a very good overview of what’s available in the Python ecocystem as of this writing. #python

2024-07-27 11:13 #

I try to use all the features of fzf-lua, and it’s quite easy to reproduce a Git time machine with the bcommit command. If you’re not, you may want to give a shot to git-time-lapse: It does the job pretty well with zero dependencies (e.g. Telescope, plenary), and it can be installed as a simple optional plugin. #vim

2024-07-25 09:44 #

From time to time, I make a few infidelities with cmus and use gapless (formerly g4music). It’s a great piece of software which I initially compiled from scratch until I decided to rely on the Flathub version. I once generate m3u playlists for relevant folders in my global library and they come up nicely in the playlist view. See my review here.

2024-07-15 13:50 #

Lot of useful tips and tricks for Zsh users. I particularly like the hash -d approach for directory bookmarks. #unix

2024-07-15 13:34 #

♪ Editors · Formaldehyde

2024-07-07 10:57 #

♪ Archive · Sleep