Skip to content

Instantly share code, notes, and snippets.

View michaellindman's full-sized avatar

michaellindman

  • United Kingdom
View GitHub Profile
@michaellindman
michaellindman / convertToMP3.sh
Last active March 22, 2016 23:05
Convert sound files to mp3 using lame
#!/bin/bash
# loop through files in the currently active directory
for f in *.$1
do
# case statement for arguments (you can convert wav, flac, and ogg to mp3)
case $1 in
wav)
# converts wav files to mp3 using lame
lame -b320 "$f" "${f%.*}".mp3
@michaellindman
michaellindman / convert_flac.sh
Created July 24, 2017 18:49
convert wav files to flac
#!/bin/bash
# loop through files in currently active directory
for f in *.wav
do
# converts wav files to flac using sox
sox "$f" "${f%.*}".flac
shopt -s nullglob
#check for flac files in current directory
if [[ -n $(echo *.flac) ]]; then
From 0457fc4aaca4bc954154347b209d1da78ba7f2d7 Mon Sep 17 00:00:00 2001
From: Mark Weiman <mark.weiman@markzz.com>
Date: Wed, 7 Feb 2018 16:04:03 -0500
Subject: [PATCH] pci: Enable overrides for missing ACS capabilities (4.15)
This an updated version of Alex Williamson's patch from:
https://lkml.org/lkml/2013/5/30/513
Original commit message follows:
---

Keybase proof

I hereby claim:

  • I am michaellindman on github.
  • I am michaellindman (https://keybase.io/michaellindman) on keybase.
  • I have a public key ASCLupylseIL6j0fO-0ao-xNMb2V_skyBz191QOYrlHVAwo

To claim this, I am signing this object:

@michaellindman
michaellindman / am1m-a-freeNAS-boot.md
Last active January 6, 2021 15:54
This document explains the process I used to boot FreeNAS on the ASUS AM1M-A

Booting FreeNAS on the ASUS AM1M-A

The ASUS AM1M-A has an issue with booting OSes in legacy mode that are using the GUID partition table, which is used by FreeNAS by default. In this document I will explain how to implement a workaround that will allow the system to boot into FreeNAS.

The workaround involves installing grub on to a bootable usb memory stick that is using the Master Boot Record partition table and add an entry for the FreeNAS boot device. We are basically using grub on the memory stick as a catalyst to access grub on the FreeNAS device which in turn will let us boot FreeNAS.

When doing this I suggest using a Linux Live-CD to install grub onto the memory stick (I used Ubuntu 14.04.2 Desktop), while it will work on an installed version of Linux, providing it is using the legacy boot mode and not UEFI, I wouldn't recommend it as it is possible that installing grub on the USB memory stick may break the version of grub that is currently in use. I would also suggest either removing or disabling