yt-dlp
yt-dlp -f mp4 -S res:360 -S res,vcodec:av1 
yt-dlp -f -
--merge-output-format mp4
--cookies-from-browser firefox 
--write-subs --write-auto-subs --embed-subs --write-thumbnail --write-description --write-info-json 
yt-dlp ytarchive:[videoID]
yt-dlp --flat-playlist --print id
-o %(title).200B.%(ext)s
rclone
-P --transfers=1 --checkers 1 --multi-thread-streams 0  --modify-window 2s
rclone ls --include "*examplefile*" remote:
--config=rclone.conf
--b2-download-url  --b2-disable-checksum
--fast-list --transfers 3 --checkers 6
bunny --inplace
rclone lsd --http-url https://beta.rclone.org :http:
--multi-thread-streams=0
rclone serve webdav --addr :8080 .
rclone serve ftp --addr :2121 --vfs-cache-mode full --rc --dir-cache-time 3s .
efficiency
mkdir recoded; mogrify -format jpg -path ./recoded *.png # turbo PNG2JPG (no alpha)
mkdir recoded; mogrify -format avif -path ./recoded *.png # do in bg, slow PNG2AVIF (no alpha transperancy)
mkdir avifaomff; for i in *.jpg; do  -i "$i" -c:v libaom-av1 -still-picture 1 "./avifaomff/${i%.*}.avif"; done
mkdir avifaomff; for i in *.png; do  -i "$i" -c:v libaom-av1 -still-picture 1 "./avifaomff/${i%.*}.avif"; done
mkdir avifaomff & FOR %y IN (*.jpg) DO @ -i "%y" -c:v libaom-av1 -still-picture 1 "./avifaomff/%y.avif"
mkdir avifaomff & FOR %y IN (*.png) DO @ -i "%y" -c:v libaom-av1 -still-picture 1 "./avifaomff/%y.avif"
jdupes -SrdN .
mkdir recoded    & mogrify -format jpg -path ./recoded *.png
mkdir avif    & mogrify -format avif -path ./avif *.png
mkdir recodedvid && FOR %y IN (*.webm) DO @ -i "%y" "./recodedvid/%y-recoded.mp4"
git log --pretty=format:"%h %an %ad %s" --date=iso
git log --pretty=format:"%h %an %ad %s" --date=iso-strict
main
php -S [::]:1337
dir *.mp4 /b /a-d | find /c /v ""
wget -e robots=off
spn.sh -p 1 tree.txt
# "wget -m" to file list. might want to edit out the place you ran this command (e.g. /home/user/temp/projectWA/some.website.com)
tree -if $PWD
tree PATH -H http://localhost -o out.html
ls -fR $PWD/* # also does the job but is more sucky, files in subdirectories will have ': \n . ..' 
curl -O xyz 
ssh sv01.nty -p 2023 -l testing -i sshkey.private
crontab -e
git reset --hard ae387a292e0fa75ef1571489266700c76d27f800 && git push --force
ffmpeg
-vf scale=3840:2160
mkdir recoded; for i in *.mp4; do ffmpeg -i "$i" "./recoded/${i%.*}-recoded.mp4"; done
mkdir recoded; for i in *.m4a; do ffmpeg -i "$i" "./recoded/${i%.*}-recoded.mp3"; done
FOR %y IN (*.wav) DO @ffmpeg -i "%y" "%y-recoded.opus"
FOR %y IN (*.opus) DO @ffmpeg -i "%y" "%y-recoded.mp3"
FOR %y IN (*.mp4) DO @ffmpeg -i "%y" "%y-recoded.mp4"
FOR %y IN (*.avi) DO @ffmpeg -i "%y" "%y-recoded.mp4"
FOR %y IN (*.webm) DO @ffmpeg -i "%y" "%y-recoded.mp4"
ffenmass -i /home/ubuntu/swine-voices-en -ext wav /home/ubuntu/swine-voices-en-wav
ffmpeg -ss 00:20:50 -i "abc.mp4" -vn -acodec copy abc.webm
ffmpeg -ss 00:20:50 -i "abc.mp4" abc.wav
ffmpeg concat builder
ffmpeg -f concat -safe 0 -i input.txt -c copy HWD.mp4
-c:a libopus -c:v av1_qsv
-vf scale=3840:2160 -c:a copy
ffmpeg -hwaccel qsv -i file -c:a libopus -c:v av1_qsv 
ffenmass -i /home/ubuntu/src-voices-en -ext wav /home/ubuntu/out-voices-en-wav

-c:v copy-filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[out]" -map 0:v -map "[out]" -c:v copy -c:a aac -b:a 192k output.mp4
-filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[out]" -map 0:v -map "[out]" -c:v copy -c:a aac -b:a 320k output.mp4
-filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[out]" -map 0:v -map "[out]" -c:v copy -c:a libopus -b:a 192k 
-filter:a "volume=5.0" -c:a libopus -c:v copy
-filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[audio];[audio]volume=5.0[out]" -map 0:v -map "[out]" -c:v copy -c:a libopus -b:a 192k 
-vf "scale=3840:2160:flags=lanczos"
-vf "scale=3840:2160:flags=lanczos" -c:v libx264 -preset slow -crf 18 -c:a copy
-vf "scale=3840:2160:flags=lanczos" -c:v av1_qsv -b:v 10M -preset 4 -c:a copy

https://github.com/kfrn/ffmpeg-things/blob/master/deinterlacing.md
-vf "scale=3840:2160:flags=lanczos" -c:v av1_qsv -b:v 10M -preset 4 -filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[audio];[audio]volume=5.0[out]" -map 0:v -map "[out]" -c:a libopus -b:a 192k 
-vf "scale=3840:2160:flags=lanczos" -filter_complex "[0:a]pan=stereo|c0=c0|c1=c0[audio];[audio]volume=5.0[out]" -map 0:v -map "[out]" -c:v av1_qsv -b:v 10M -preset 4 -c:a libopus -b:a 192k
other
search
find . -type d -name ".thumbnails"
aria2c --file-allocation=none
Get-ChildItem -Path "." -Filter "*.gif" -Recurse | ForEach-Object { $_.FullName -replace [regex]::Escape((Get-Location).Path + "\") } | Sort-Object
+delete:
find . -type d -name ".thumbnails" -exec rm -r {} \;
filetypes in folder counter
Get-ChildItem -Recurse | Group-Object Extension -NoElement
AD
(Get-ADUser -filter *).count
(Get-ADUser -filter * |Where {$_.enabled -eq "True"}).count
(Get-ADGroupMember -Identity "IT Users").count
Get-NetTcpConnection -State Listen | Select-Object LocalAddress,LocalPort| Sort-Object -Property LocalPort | Format-Table
ARCHIVE WHOLE SITE
wget -r -np -k
wget --recursive --page-requisites --convert-links --no-parent -e robots=off --random-wait -w 20 -nc www.website.local
rclone lsf . >> links.txt
Get-ChildItem -Path "www.website.local" -Recurse | Select-Object -ExpandProperty FullName
Get-ChildItem -Path "www.website.local" -Recurse | ForEach-Object { $_.FullName }
Get-ChildItem -Path "www.website.local" -Filter *.html -Recurse | Select-Object -ExpandProperty FullName
bash spn.sh -p 1 -w 60 links.txt
netstat -tunlp
Get-NetTCPConnection -LocalPort 3389
netstat -anob
regex
all under org
^https:\/\/github\.com\/org\/[^\/]+$
John Smith Blake Chan -> John Smith; Blake Chan;
js - allow pasting
var sleep = (milliseconds) => {
  return new Promise(resolve => setTimeout(resolve, milliseconds))
}

var waitTime = 1500; //ms

//var x = $( "button:contains('Download')" );
var x = $( "a:contains('Download')" );

for(var i = 0; i < x.length ; i++)
  {
    (function(idx) {
      // Wait needed because browser blocks network calls if you make too many too fast
      sleep(i * waitTime).then(() => {
    		x[idx].click();
			});
   	})(i)
  }
---

QR Code Generator

Enter the text you want to encode in the QR code: