Skip to content

Instantly share code, notes, and snippets.

Michael Lindman michaellindman

Block or report user

Report or block michaellindman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View acs.patch
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:
---
@michaellindman
michaellindman / convert_flac.sh
Created Jul 24, 2017
convert wav files to flac
View convert_flac.sh
#!/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
@michaellindman
michaellindman / am1m-a-freeNAS-boot.md
Last active Feb 18, 2017
This document explains the process I used to boot FreeNAS on the ASUS AM1M-A
View am1m-a-freeNAS-boot.md

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

@michaellindman
michaellindman / convertToMP3.sh
Last active Mar 22, 2016
Convert sound files to mp3 using lame
View convertToMP3.sh
#!/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
You can’t perform that action at this time.