Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / xz-backdoor.md
Last active May 31, 2024 14:15
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@crittermike
crittermike / rename.sh
Last active September 28, 2020 02:51
Mass renaming files on macOS using the "rename" command
# Install it with Homebrew.
brew install rename
# Replace "oldstring" with "newstring" with files in the current directory.
rename -s oldstring newstring *
# Do the same thing, but recursively.
rename -s oldstring newstring **/*
@fardjad
fardjad / batch-m4a-to-mp3.md
Last active February 28, 2024 16:37
[How to Convert m4a Files to mp3, Preserving Bitrate and ID3 Tags Using ffmpeg] #ffmpeg #bash

How to convert m4a files to mp3, preserving bitrate and id3 tags using ffmpeg

Prerequisites

  1. ffmpeg
  2. cygwin (on windows)

Commands

cd /path/to/m4a/files
mkdir out
for f in *.m4a; do