Journal of my recent activities

fail2ban-client status
fail2ban-client status sshd

Considering the pros and cons of running the Docker on the production env

Should I Use Docker in Production Environment?

7 Cases When You Should Not Use Docker

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

:%s/foo/bar/g

#vim

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.

#linux

SELinux

Verify problems: audit2allow -w -a

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

audit2allow

#linux #selinux

Renew:

$ certbot renew

list certbot certificates:

$ certbot certificates

remove:

$ certbot delete --cert-name domain-name

#certbot #letsencrypt

Save RAM memory using generators which return a lazy iterator.

Optimizing Memory Usage in Python Applications

#python

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

sudo update-alternatives --config editor

or

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

#linux #zsh #mc