Friday, June 2, 2023

[DevOps] Remove all docker logs

Sometimes are needs to remove logs for all containers, for example, when you not have enough disk space

sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"

Saturday, February 11, 2023

[Ubuntu&Gnome42.5] Support multiple key combinations for switching input sources for keyboard

By default, the latest version of Gnome (42.5) and Ubuntu (22.04.1 LTS) is multiple combinations for input disabled, and you must use only <Super>+Space combination. And you can't change it without the tool 'gnome-tweaks'.

But, if you are is Windows or Mac user, you can want to use multiply combinations. So, I will hint you how to do it. 

With using the terminal: 

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L', '<Super>Space']"

With using the gnome-tweaks:


Sunday, May 15, 2022

[DevOps][Note] How enable ssh authentication without password on Fedora

Hello,  

cd ~/.ssh
ls

 Should be <fileName>.pub and <fileName> (private key) 

ssh-copy-id -f -i <filename>.pub <username>@<host>

Based on:

  1. link 1
  2. link 2