for i in *; do link=$(readlink $i) && rm $i && mv $link $i; done

permissions

find /home/user -type d -print0 | xargs -0 chmod 0775
find /home/user -type f -print0 | xargs -0 chmod 0664

clean up dconf

For a single key:

dconf reset "/path/to/the/key"

Must not end with a /. For a whole path:

dconf reset -f "/path/to/the/path/"

Must end with a /. If you do this while having dconf-editor opened, it will likely crash.

nvidia metamode

nvidia-settings --assign CurrentMetaMode="DFP-2: 1920x1080 { ViewPortIn=1024x768, ViewPortOut=1440x1080+240+0}"

dpkg-divert

dpkg-divert --divert /etc/apt/apt.conf.d/20apt-esm-hook.conf.bak --rename --local /etc/apt/apt.conf.d/20apt-esm-hook.conf

gpsbabel

merge gpx tracks:

gpsbabel -i gpx -f in.gpx -x track,trk2seg -o gpx -F out.gpx