Skip to content

Instantly share code, notes, and snippets.

View Alexwi1son's full-sized avatar

Alex Wilson Alexwi1son

View GitHub Profile
@Alexwi1son
Alexwi1son / find-duplicate-files-on-mac.md
Last active September 15, 2025 03:54 — forked from mblarsen/gist:e24c73aa8004bb0bccfc
Removing duplicate files

Method 1: Removes duplicates from a directory based on checksum

Find duplicates and write to duplicates-report.txt

find . -type f -exec cksum {} ; | sort | tee /tmp/f.tmp | cut -f 1,2 -d ' ' | uniq -d | grep -hif /dev/stdin /tmp/f.tmp > duplicates-report.txt

Delete duplicates based on duplicates-report.txt

sort -k1,1 duplicates-report.txt --stable | gawk -F' ' '{if ( $1==old ) { print $3 }; old=$1; }' > duplicates-only.txt | xargs rm

@Alexwi1son
Alexwi1son / youtube-to-mp3.md
Last active July 23, 2025 02:42 — forked from cvengler/README.md
A Simple Trick to Download Youtube Video as MP3

Version number is reported by fsutil fsinfo refsinfo, available on Windows 10 and Windows Server 2016.

ReFS 1.1

  • Version of formatted by Windows Server 2012.
  • Version 1.1 is used already in Windows Server 8 Beta. I have never seen version 1.0.
  • Can use and store alternate data streams, when mount on 8.1/2012 R2 or later.

ReFS 1.2

  • Version of formatted by Windows 8.1, Windows 10 v1507 to v1607, Windows Server 2012 R2, and when specified ReFSv1 on Windows Server 2016 or later.
  • Cannot use alternate data streams, when mount on 2012.