Magick

magick.exe mogrify -resize 800x800 *.png

Virtualbox

> VBoxManage List [vms/hdds]
> VBoxManage ShowVMInfo <vm>
> VBoxManage ShowMediumInfo <disk.vdi>
> VBoxManage CloneMedium <disk.vmdk> <disk.vdi> --format vdi
> VBoxManage ModifyMedium <disk.vdi> --resize 20480 # 20GBx1024 # then modify in OS

$ sudo mkdir /mnt/shared-folder
$ sudo mount -t vboxsf <shared-folder-name> /mnt/shared-folder

youtube-dl

-u xxx -p "xxx" <https://www.udemy.com/understand-javascript/learn/v4/content>
-u xxx -p "xxx" -f url720 <https://vk.com/video-xxx>

-o "%(playlist_index)s %(title)s.%(ext)s"
-o "%(playlist_title)s - %(playlist_uploader)s\\%(playlist_index)s %(title)s.%(ext)s"
-o "%(uploader)s - %(title)s (%(id)s).%(ext)s"
--autonumber-start 1
--playlist-start 1
--match-title XXX

-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
-f 22/bestvideo+bestaudio

-x --audio-format mp3

-i [ignore errors]
--no-check-certificate
--console-title

--embed-thumbnail --embed-chapters --embed-subs --embed-info-json

yt-dlp --cookies-from-browser firefox --cookies cookies.txt
yt-dlp --cookies cookies.txt --get-filename -o "%(title)s ----- %(id)s" <https://www.youtube.com/playlist?list=LL> > likes.txt
yt-dlp --cookies-from-browser firefox -O "%(title)s ----- %(channel)s ----- %(id)s" "<https://www.youtube.com/playlist?list=LL>" > likes.txt

FFmpeg

# Simple
ffmpeg -i input.webm -c copy output.mkv

# Merge using file list
ffmpeg -f concat -safe 0 -i files.txt merge.mp3

# Merge all in directory (*nix)
for f in *.mp4 ; do echo file \\'$f\\' >> list.txt; done && ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp4 && rm list.txt

# Stereo to Mono
-ac 1

# Ignore video/thumbnails
-vn

# Extract album art
ffmpeg -i a.mp3 -an -vcodec copy cover.jpg

# Add album art
ffmpeg -i in.mp3 -i cover.jpg -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" out.mp3

for i in *.mp3; do ffmpeg -i "$i" -i cover.jpg -map 0:0 -map 1:0 -c copy -id3v2_version 4 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (front)" "covered/$i"; done

# Create silence
ffmpeg -f lavfi -i anullsrc=channel_layout=5.1:sample_rate=48000 -t 1 silence.mp3

# Add silence
for i in *.mp3; do ffmpeg -i "$i" -af "apad=pad_dur=3" "${i%.*}_.mp3"; done

# Split into equal length files (20mins)
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 00:20:00 -f segment -reset_timestamps 1 output%03d.mp4

# Extract subtitles
ffmpeg -i file.mkv
# find stream for subtitle e.g. 0:15
ffmpeg -i file.mkv -map 0:15 kor.srt

# Rotate 90° CCW
$ ffmpeg -i input.mp4 -vf "transpose=3" output.mp4 # 1 = 90° clockwise

# Create waveform
$ ffmpeg -i input.mp3 -lavfi showwavespic waveform.png

# Trim from start (25s) and finish (20s)
PS> Get-ChildItem -filter *.mp3 | %{ffmpeg -i $_ -filter_complex "[0]split[s1][s2]; [s1]trim=25,setpts=PTS-STARTPTS,fifo[bv]; [s2]trim=25,setpts=(PTS-STARTPTS)+20/TB,fifo[v]; [bv][v]overlay=shortest=1,trim=20,setpts=PTS-STARTPTS[fv]; [0]volume=0[b];[0]adelay=20000|20000[a]; [b][a]amix=duration=first,volume=2,atrim=45,asetpts=PTS-STARTPTS[fa]" -map "[fv]" -map "[fa]" "$_-trimmed.mp4"}

# Trim by duration
$ ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output1.mp4

# Trim by times
$ ffmpeg -i input.mp4 -ss 00:05:10 -to 00:15:30 -c:v copy -c:a copy output2.mp4

# Take screenshots (1 per 60 seconds)
ffmpeg -i test.mp4 -vf fps=1/60 thumb%04d.png

# Add 3s silence
Get-ChildItem | ForEach { ffmpeg -i $_ -af "apad=pad_dur=3s" "s/$($_.basename)_s.mp3" }

Anbox

# Kernels
<https://github.com/anbox/anbox-modules/archive/master.zip>
$ ./INSTALL.sh

# Libraries required for many apps
$ wget <https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-houdini-only.sh>
$ chmod +x install-houdini-only.sh
$ ./install-houdini-only.sh

# List packages
$ adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort

# Start anbox
$ snap run anbox session-manager

# Check it's working, (un)install apps
$ adb devices
$ adb [un]install <app.apk>

# Open browser
$ snap run anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

Comic-dl

/comic-dl-master/comic_dl/__main__.py -i [<https://comic.naver.com/webtoon/list.nhn>](<https://comic.naver.com/webtoon/list.nhn>)\\?titleId\\=169080\\&weekday\\=wed\\&page\\=81