Journal of my recent activities

Find each occurrence of 'foo' (in all lines), and replace it with 'bar'.



In the OVH there are available new distros: Alma and Rocky. So far I think it's better to wait before deciding to move to Debian, and change the ecosystem for legacy projects.



Verify problems: audit2allow -w -a

Change configuration by setsebool, audit2allow -a -M name is not recommended


#linux #selinux


$ certbot renew

list certbot certificates:

$ certbot certificates


$ certbot delete --cert-name domain-name

#certbot #letsencrypt

Save RAM memory using generators which return a lazy iterator.

Optimizing Memory Usage in Python Applications


Setting up a default shell / Midnight Commander editor and viewer:

  1. Turn off in mc > Configuration "Builtin editor an viewer"
  2. Add to ~/.zshrc:
export EDITOR=nvim
export VIEWER=nvim

#linux #zsh #mc

Opening odt files in Midnight Commander on MacOS

    Open=(open %f &)

#mac #mc

Resize all images in dir

for file in *.jpeg; do convert $file -resize 500x $file; done

#linux #bash

LibreOffice transpose rows to columns

  1. Copy to clipboard the cell range that you want to transpose.
  2. Paste Special, in the dialog, mark Paste all and Transpose.

Rotating Tables (Transposing) - LibreOffice Help