Wednesday 21 December 2022

Remove unused apps from win11

 Option#1 


Get-AppXPackage | where-object {$_.name -notlike '*store*'} | Remove-AppxPackage

Option#2winget uninstall "app name"
Option#3 https://github.com/ChrisTitusTech/winutil

Wednesday 28 September 2022

Clone disk in Mac with dd

 1. brew install coreutils (to update dd)


2. diskutil list

   diskutil unmountDisk /dev/disk12

   diskutil unmountDisk /dev/disk11

3time caffeinate sudo gdd if=/dev/rdisk2 of=/dev/rdisk5 bs=1M status=progress conv=noerror,sync


time caffeinate sudo gdd if=/dev/rdisk11 of=/dev/rdisk12 bs=1M status=progress conv=noerror,sync

refs:

https://egeek.me/2019/05/25/cloning-timemachine-backup-drive-to-another-disk/

https://osxdaily.com/2016/08/09/find-disk-id-device-node-identifier-mac/

https://tecadmin.net/copy-a-gpt-partition-table-to-new-disk/

https://superuser.com/questions/234199/good-block-size-for-disk-cloning-with-diskdump-dd

Thursday 21 July 2022

yt-dlp download audios from playlist

 yt-dlp -f 'ba' -x --audio-format mp3 --download-archive videos.txt  https://www.youtube.com/playlist?list=PLnzvH6pAJKSpPCJaNDqSbJ-s0N3c1cKAQ -o '%(channel)s/%(playlist_title)s/%(title)s.mp3'

https://github.com/yt-dlp/yt-dlp#output-template


ref: https://write.corbpie.com/downloading-youtube-videos-and-playlists-with-yt-dlp/



Download channel videos


1. list formats of videos


yt-dlp --list-formats  https://www.youtube.com/@NDWTB/videos 


2. choose a format with/without audio and download

yt-dlp -f 22 --download-archive videos.txt https://<<channel url>>/videos -o '%(channel)s/%(title)s.%(ext)s'