Skip to content

Instantly share code, notes, and snippets.

View Alexwi1son's full-sized avatar

Alex Wilson Alexwi1son

View GitHub Profile

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.
@Alexwi1son
Alexwi1son / youtube-to-mp3.md
Last active July 12, 2025 08:57 — forked from cvengler/README.md
A Simple Trick to Download Youtube Video as MP3

Download Youtube Video as MP3

You need youtube-dl and ffmpeg.

Usage

youtube-dl --extract-audio --audio-format mp3 $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 / Create SSH Key on Mac for Xcode.md
Created July 8, 2025 07:40 — forked from brennanMKE/README.md
Create SSH Key on Mac for Xcode

Create SSH Key on Mac for Xcode

The docs for GitHub show a command to create a key with the ed25519 encryption method which is not allowed by Xcode. Even if you are not using the Source Control features in Xcode you will often need to use an account with GitHub when you are consuming Swift packages which are pulled from GitHub.

For SSH keys there are 4 algorithms.

  • 🚨 DSA: This is an older algorithm which is no longer supported and is superceded with more modern algorithms.
  • ⚠️ RSA: This algorithm was an improvement but it is now outdated and a more modern method should be used.
  • 👀 ECDSA: Another improvement which is dependent on your computer's ability to generate random numbers.
  • ✅ Ed25519: The most recommended public-key algorithm today which you should use with GitHub.
@Alexwi1son
Alexwi1son / deezer-to-mp3.py
Last active June 20, 2025 10:06 — forked from mhay10/download.py
Downloads tracks/playlists/albums from Deezer
from pydeezer.constants import track_formats
from pydeezer import Deezer, Downloader
import readline
import glob
import os
# Setup path autocomplete
def completer(text, state):
line = readline.get_line_buffer().split()
@Alexwi1son
Alexwi1son / flo-dl.md
Created March 18, 2025 08:19 — forked from flowernert/flo-dl.md
Youtube video to audio mp3

Youtube to MP3 downloader/converter

Prototype to be able to export the audio from a Youtube video and make it available to my smartphone.

Use case : keeping video as offline podcasts I can listen in the metro when there's no cell network available.

Linux only.

Uses the excellent https://github.com/ytdl-org/youtube-dl

@Alexwi1son
Alexwi1son / youtube_2_mp3
Created March 18, 2025 08:19 — forked from ytensor42/youtube_2_mp3
Youtube to mp3
#!<your python3 path>
#
# ymp3.py
# ; Download youtube contents and convert into mp3
# ; Prerequisite: pytube, ffmpeg
#
#
import subprocess
import argparse
@Alexwi1son
Alexwi1son / README.md
Created March 18, 2025 08:19 — forked from detain/README.md
How to create bootable USB flash drive to install Windows 10 / 11

How to create bootable USB flash drive to install Windows 10

Here are the steps to use the Media Creation Tool and Rufus to create a Windows 10 bootable media.

Windows 10 USB bootable media

You can create a Windows 10 USB installation media with multiple tools, and in this guide, we'll show you how. When a new version of Windows 10 becomes available, not everyone gets the latest release the same day. Instead, Microsoft upgrades computers gradually, and it takes some time until the new version reaches every device.

However, if you do not want to wait for the automatic upgrade, the company lets you download the Windows 10 installation files using the Media Creation Tool. The tool helps perform an in-place upgrade or create an installation media using a USB f

@Alexwi1son
Alexwi1son / flac-to-mp3.md
Created March 13, 2025 08:11 — forked from matthew-e-brown/All-FLAC-to-MP3.md
FFmpeg command I wanna remember.

One-liner to convert all FLAC to MP3

find "[MP3]"* -name "*.flac" -exec bash -c 'ffmpeg -i "${0}" -ab 320k -c:v copy "${0/.flac/.mp3}" && rm "${0}"' {} \;

I prefer to duplicate my .flac files before ffmpeg-ing them all, hence the "[MP3]"* prefix on the find and the rm at the end. Sometimes, this may be unnecessary, since I might put the MP3 files in their own subdirectory, at which point find . will work fine. In the case this example is pulled from, I had two [MP3] folders and two [FLAC] folders in the same directory.

@Alexwi1son
Alexwi1son / convert-flac-to-mp3.md
Created March 13, 2025 08:09 — forked from RAM92/convert-flac-to-mp3.sh
Script to convert flac files to 320kbps mp3

#! /usr/bin/env nix-shell #! nix-shell -i bash -p ffmpeg_5

trap 'echo "Aborting..."; exit 1' SIGINT

find . -type f -name "*.flac" -print0 | while read -d $'\0' flac_file; do echo "Input file: $flac_file" mp3_file="${flac_file%.flac}.mp3" ffmpeg -nostats -loglevel 0 -nostdin -i "$flac_file" -vn -b:a 320k -acodec libmp3lame "$mp3_file" || { rm "$mp3_file"; exit; }; rm "$flac_file"