Skip to content

Instantly share code, notes, and snippets.

View Alexwi1son's full-sized avatar

Alex Wilson Alexwi1son

View GitHub Profile
@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"

@Alexwi1son
Alexwi1son / download-youtube-videos.md
Last active March 14, 2025 02:27 — forked from morphkurt/youtube-dl.md
Download Youtube Videos

Method 1: Download the Youtube Video (Command Line)

  1. Go to Search (Magnifying Glass) on the top right hand side.
  2. Type Terminal
  3. Open up Terminal
./youtube-dl https://www.youtube.com/watch?v=o-TAyIQBOuA --recode-video mp4

This will be saved on the sundayservices home directory.

@Alexwi1son
Alexwi1son / dwutube.py
Created March 13, 2025 06:52 — forked from arifsetyawan/dwutube.py
Download Youtube Videos
from pytube import YouTube
url = "https://www.youtube.com/watch?v=hS9jaTweuPU"
video = YouTube(url)
stream = video.streams.get_highest_resolution()
stream.download(output_path = '.')
@Alexwi1son
Alexwi1son / deepseek.md
Created February 27, 2025 03:52 — forked from anchormath/deepseek.md
DeepSeek-v3

Trying to understand the technical breakthroughs in Deep Seek, particularly the pre-training efficiency.

Perplexity thread highlights:

The pre-training efficiency of DeepSeek-V3 is attributed to several key innovations:

  1. FP8 Mixed Precision Framework: This reduces GPU memory usage and accelerates computation during training[5].
  2. DualPipe Algorithm: It optimizes pipeline parallelism by overlapping computation and communication, minimizing idle time and scaling efficiently across nodes[5].
  3. Multi-Token Prediction (MTP): This densifies training signals, improving data efficiency and model performance[3].
  4. Efficient Mixture-of-Experts (MoE) Architecture: Only a subset of parameters is activated per token, reducing computational overhead while maintaining performance[2][3].