2020-05-16 11:47:13 +02:00
|
|
|
#Normalize audio
|
|
|
|
ffmpeg-normalize *.<format> -v -pr -c:a <audio codec> -ext <extension>
|
|
|
|
Examples:
|
|
|
|
#ffmpeg-normalize *.opus -v -pr -c:a libvorbis -ext ogg
|
|
|
|
ffmpeg-normalize *.flac -v -pr -c:a flac -ext flac
|
|
|
|
#ffmpeg-normalize *.ogg -v -pr -ext wav
|
|
|
|
ffmpeg-normalize *.m4a -v -pr -c:a libopus -ext opus
|
|
|
|
ffmpeg-normalize *.opus -v -pr -c:a libopus -ext opus
|
|
|
|
|
|
|
|
#extract images from video
|
|
|
|
ffmpeg -i "file.mpg" -r 1/1 xyz%03d.png
|
|
|
|
|
|
|
|
#found in .bashrc
|
|
|
|
yta-best="youtube-dl --extract-audio --audio-format best "
|
|
|
|
|
|
|
|
#lightdm configured themes
|
|
|
|
sudo cp -r /var/lib/lightdm/.local/share/webkitgtk/localstorage/ ~/ && sudo chmod -Rv 777 ~/localstorage/
|
|
|
|
|
|
|
|
#Single 4KiB random write process
|
|
|
|
fio --output=fio-4K-randw.txt --name=random-write --ioengine=posixaio --rw=randwrite --bs=4k --size=4g --numjobs=1 --iodepth=1 --runtime=120 --time_based --end_fsync=1
|
|
|
|
|
|
|
|
#16 parallel 64KiB random write processes
|
|
|
|
fio --output=fio-64K-randw-x16.txt --name=random-write --ioengine=posixaio --rw=randwrite --bs=64k --size=256m --numjobs=16 --iodepth=16 --runtime=120 --time_based --end_fsync=1
|
|
|
|
|
2020-05-30 17:49:14 +02:00
|
|
|
#Single 1MiB random write process (16gb file)
|
2020-05-16 11:47:13 +02:00
|
|
|
fio --output=fio-1M-randw.txt --name=random-write --ioengine=posixaio --rw=randwrite --bs=1m --size=16g --numjobs=1 --iodepth=1 --runtime=120 --time_based --end_fsync=1
|
|
|
|
|
2020-05-30 17:49:14 +02:00
|
|
|
#Single 1MiB random write process (32gb file, 5 min)
|
|
|
|
fio --output=fio-1M-randw-32gb.txt --name=random-write --ioengine=posixaio --rw=randwrite --bs=1m --size=32g --numjobs=1 --iodepth=1 --runtime=300 --time_based --end_fsync=1
|
|
|
|
|
|
|
|
#Single 1MiB random write process (64gb file, 10 min)
|
|
|
|
fio --output=fio-1M-randw-64gb.txt --name=random-write --ioengine=posixaio --rw=randwrite --bs=1m --size=64g --numjobs=1 --iodepth=1 --runtime=600 --time_based --end_fsync=1
|
|
|
|
|
2020-05-16 11:47:13 +02:00
|
|
|
#smartctl test
|
|
|
|
sudo smartctl -t <short|long> <disk>
|
|
|
|
|
|
|
|
#smartctl status
|
|
|
|
sudo smartctl -a <disk>
|
|
|
|
|
|
|
|
#fake identity
|
|
|
|
rig
|
|
|
|
|
|
|
|
#Mangohud
|
|
|
|
mangohud MANGOHUD_OUTPUT /home/marc/Dokumente/log
|
|
|
|
|
|
|
|
#OBS videocamera
|
|
|
|
sudo modprobe v4l2loopback
|
|
|
|
|
|
|
|
#Mangohud
|
|
|
|
In Steam: mangohud %command% MANGOHUD_OUTPUT /home/marc/Dokumente/log
|
|
|
|
Lutris: command prefix: mangohud, Environment Variables: MANGOHUD_OUTPUT | /home/marc/Dokumente/log
|
|
|
|
|
|
|
|
#lm_sensors realtime display
|
|
|
|
watch sensors
|
|
|
|
|
|
|
|
#analyze startup time
|
|
|
|
systemd-analyze plot > detail[X].svg
|
|
|
|
systemd-analyze blame > detail[X].txt
|
2020-05-30 17:49:14 +02:00
|
|
|
|
|
|
|
#add kernel patch
|
2020-06-01 21:36:59 +02:00
|
|
|
patch -Np1 -i *file*
|
|
|
|
|
|
|
|
#create mkinitcpio
|
2020-06-22 17:03:39 +02:00
|
|
|
sudo mkinitcpio -g /boot/initramfs-[kernel].img -k [kernel from /usr/lib/modules]
|
2020-06-01 21:36:59 +02:00
|
|
|
|
|
|
|
#network traffic
|
2020-06-22 17:03:39 +02:00
|
|
|
nload
|
|
|
|
|
|
|
|
#pacman remove old packages
|
|
|
|
pacman -Sc
|
|
|
|
|
|
|
|
#ssh keys
|
|
|
|
|
|
|
|
#generate keys per computer, only once!
|
|
|
|
ssh-keygen
|
|
|
|
|
|
|
|
#allow access through ssh key
|
2020-06-22 17:13:23 +02:00
|
|
|
ssh-copy-id -i <file location> <user>@<ip/domain>
|
|
|
|
ssh-copy-id -i ~/.ssh/id_rsa.pub <user>@<ip/domain>
|