Execute a command for every line in a file:
while read in; do file "Camera/$in"; done < filtered.txt
Socks-Proxy:
ssh -N -D7070 mebus@somehost.com
du -sh --apparent-size .
git add ':(exclude)*.pdf'
git merge --allow-unrelated-histories project-a/master
Refresh KDE Desktop Icons: F5
Fix scaling issues:
QT_QPA_PLATFORM=xcb QT_SCALE_FACTOR=1 libreoffice
cd $PREFIX
icinga2 feature enable debuglog
icinga2 feature disable debuglog
echo 256 > /proc/sys/fs/inotify/max_user_instances
aspell --lang=en --mode=tex check file.tex
Jump to next placeholder: Ctrl + RightArrow
Insert equation: Ctrl + Shift + N
- https://mathpix.com/ - Take a screenshot of math and paste the LaTeX into your editor, all with a single keyboard shortcut.
Create movie from pictures:
mencoder "mf://*.jpg" -mf fps=10 -o fastoutput.avi -ovc copy
Remove all *.pyc files:
find . -name '*.pyc' -delete
Search for pattern including all .gitignored and hidden files: rg -uu pattern
rsync -chavP -zz -e "ssh -p 8022" mebus@192.168.42.42:/storage/giantdisk/ targetdir/
Faster variant without checksum calculation and compression:
rsync -havP -e "ssh -p 8022" mebus@192.168.42.42:/storage/giantdisk/ targetdir/
See windows.md
sudo rcvboxdrv setup
Settings:
"workbench.editor.enablePreview": false,
Unmount stuck cifs mount:
sudo umount -a -t cifs -l
7z a -p -m0=lzma2 -mx=9 -mhe=on -ms=on -t7z something.7z something/
source $HOME/.cargo/env