Skip to content

Instantly share code, notes, and snippets.

@fardjad
fardjad / batch-m4a-to-mp3.md
Last active Apr 9, 2021
[How to Convert m4a Files to mp3, Preserving Bitrate and ID3 Tags Using ffmpeg] #ffmpeg #bash
View batch-m4a-to-mp3.md

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 
@fardjad
fardjad / rpi-toolchain.md
Last active Aug 4, 2021
[How to Build an ARM Toolchain on OSX for RaspberryPI] WIP #raspberrypi #toolchain #osx #arm
View rpi-toolchain.md

Building an ARM Toolchain on OSX for RaspberryPI

Requirements

  1. MacPorts

     sudo port selfupdate
     sudo port upgrade outdated
    
  2. GCC prerequisites

@fardjad
fardjad / linux-3.10.21-qemu.config
Last active Feb 7, 2019
[linux-3.10.21-qemu.config] Linux/arm 3.10.21 Kernel Configuration for QEMU. Apply https://gist.github.com/fardjad/7771673 before using this config. #kernel #arm #linux #qemu #raspberrypi
View linux-3.10.21-qemu.config
#
# Linux/arm 3.10.21 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
@fardjad
fardjad / kernel-3.10.21-armv6-qemu.patch
Last active Feb 7, 2019
[kernel-3.10.21-armv6-qemu.patch] Kernel 3.10.21-armv6 Patch for QEMU #kernel #arm #linux #qemu #raspberrypi
View kernel-3.10.21-armv6-qemu.patch
Make the "Arm Versatile" board even more versatile, for QEMU, which can
stick weird processors into things that were never meant to receive them.
Based on: http://unicorn.drogon.net/rpi/linux-arm.patch
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -71,7 +71,7 @@ config CPU_ARM9TDMI
# ARM920T
config CPU_ARM920T