Cheat Sheet


GNU/Unix Systems Stress Test

sha1sum /dev/zero &

killall sha1sum


Windows user password bypass

Navigate to C:\Windows\System32

Rename utilman.exe to utilman2.exe

Rename cmd.exe to utilman.exe

Restart the pc

At the login prompt press the Ease of Access button, a command prompt will appear

Change the password of the selected user account

Once you changed the password, revert the names you changed earlier to the original ones


yt-dlp

Video massima qualità e metadati:

yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]" -ciw -o "%(upload_date)s - %(title)s.%(ext)s" --write-description --write-info-json --write-annotations --write-sub --write-thumbnail -v https://www.youtube.com/video_or_channel

Solo audio mp3:

yt-dlp --extract-audio --audio-format mp3 https://www.youtube.com/video_or_channel

PLAYLIST solo audio mp3:

yt-dlp --extract-audio --audio-format mp3 --yes-playlist https://www.youtube.com/playlist


Magic SysRq key

Riavvio forzato Linux: Alt + PrtScr(SysRq) + REISUB

Spegnimento forzato Linux: Alt + PrtScr(SysRq) + REISUO


DISM

dism /online /cleanup-image /restorehealth


Comandi tar per cassette LTO

Lista file: tar -b 512 -tvf /dev/stX

Scrivi: tar -b 512 -cvf /dev/stX [filename]

Leggi: tar -b 512 -xvf /dev/stX [filename]