Skip to content

Instantly share code, notes, and snippets.

View coverprice's full-sized avatar

James Russell coverprice

View GitHub Profile
@coverprice
coverprice / extract_audio.ps1
Created May 21, 2022 02:54
Powershell script to extract the audio from a downloaded video file (e.g. a Youtube video).
[CmdletBinding()]
param (
[Parameter(ValueFromRemainingArguments=$true)]
$Path
)
# This script extracts the audio content from downloaded videos. It's meant to be run by drag-and-dropping the video
# onto the script. However since you can't do that directly to Powershell scripts, set it up this way:
# 1. Install Powershell
# 2. Make a shortcut to this script on your Desktop (call it what you like)
@coverprice
coverprice / similar_names.py
Created August 25, 2019 20:47
Similar artist names
#!/bin/env python3
import json
from Levenshtein import distance
import unidecode
import re
from pprint import pprint
ARTISTS = {} # '<normalized name>': set(<variations>)