Thursday, May 31, 2018

ssh config

Example
# contents of $HOME/.ssh/config
Host dev
HostName dev.example.com
Port 22000
User fooey

From: https://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

Tuesday, May 29, 2018

vncviewer: Increase compression levels and reduce bandwitch

vncviewer -QualityLevel=7 -FullColor=0 -LowColorLevel=2 -CompressLevel=3 :3

Monday, May 28, 2018

i3: add rofi key $mod+d

Edit .config/i3/config:
bindsym $mod+d exec "rofi -combi-modi window,drun -show combi"

Tuesday, May 15, 2018

Search for a string in txt file in all sub-directories

find dir/ -name *.txt -type f -exec grep -H 'string' {} +

Sunday, May 13, 2018

Arch: List of recently installed and upgraded packages

cat /var/log/pacman.log | grep -i upgraded cat /var/log/pacman.log | grep -i installed