Skip to content

Instantly share code, notes, and snippets.

View bkidney's full-sized avatar

Brian Kidney bkidney

View GitHub Profile
@bkidney
bkidney / gist:a2ca7d46bb920ede11363e5ed988aced
Created June 6, 2018 16:44
Headphone test - hw.snd.verbose=4
Jun 6 13:59:23 tardis kernel: hdaa0: Unsolicited response 84000014
Jun 6 13:59:23 tardis kernel: hdaa0: Pin sense: nid=33 sense=0x00000000 (disconnected)
Jun 6 13:59:23 tardis kernel: pcm0: Redirect output to: main
Jun 6 13:59:23 tardis kernel: hdaa0: Setting amplifier nid=33 index=0 out mute=1/1 vol=0/0
Jun 6 13:59:23 tardis kernel: hdaa0: Setting amplifier nid=23 index=0 out mute=0/0 vol=0/0
Jun 6 13:59:23 tardis kernel: pcm0: Playback channel set is: Front Left, Front Right,
Jun 6 13:59:23 tardis kernel: pcm0: Playback channel matrix is: 2.0 (unknown)
Jun 6 13:59:38 tardis kernel: hdaa0: Unsolicited response 8400001c
Jun 6 13:59:38 tardis kernel: hdaa0: Pin sense: nid=33 sense=0x80000000 (connected)
Jun 6 13:59:38 tardis kernel: pcm0: Redirect output to: headphones
hdaa0: Pin sense: nid=33 sense=0x80000000 (connected)
pcm0: Redirect output to: headphones
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (connected)
hdaa0: Pin sense: nid=33 sense=0x00000000 (disconnected)
pcm0: Redirect output to: main
pcm0: Playback channel set is: Front Left, Front Right,
pcm0: Playback channel matrix is: 2.0 (unknown)
hdaa0: Pin sense: nid=33 sense=0x80000000 (connected)
pcm0: Redirect output to: headphones
#!/bin/bash
for i in `seq 1 5`;
do
# Create Empty file
touch empty.txt
# Download Lorem Ipsum Text
curl -s -X POST lipsum.com/feed/json -d "amount=100000" -d "what=bytes" -d"start=false" | jq -r '.feed.lipsum' >> data.txt
curl -s -X POST lipsum.com/feed/json -d "amount=100000" -d "what=bytes" -d"start=false" | jq -r '.feed.lipsum' >> data.txt
@bkidney
bkidney / keybase.md
Last active May 31, 2016 23:49
keybase.md

Keybase proof

I hereby claim:

  • I am bkidney on github.
  • I am bkidney (https://keybase.io/bkidney) on keybase.
  • I have a public key ASAwRDMy9AnFhTUUXvpoFOnwQmkPGHCJ8wLRKXmolnp9Iwo

To claim this, I am signing this object:

@bkidney
bkidney / gist:a77b8f6b78054bdf6d99
Created February 18, 2015 13:14
Useful Vim Regex

Useful Vim Regex Expressions

Match Last, First

\([^,]*\), \(\S*\)

Match Last, First (Affilation)

Noted while completing this task:
- Need to force myself not to think about indexing into list
- The idea of wholemeal programming makes sense but does not come
naturally after many years of interative programming.
- I started the Haskell program the why I would any other task,
breaking it into parts and working on each. I found myself having
to stop the process, reread the paper working through the entire
math and then implementing along with the author.
- It will definaltely take going through this process with more pearls
before this feels natural.
@bkidney
bkidney / gist:3171266
Created July 24, 2012 17:13
Brew Doctor Output for GTK+ Issue
Error: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install gtk+
Run `brew missing` for more details.
@bkidney
bkidney / gist:3171260
Created July 24, 2012 17:12
Brew Configure Log for GTK+ Issue
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by gtk+ configure 2.24.11, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gtk+/2.24.11 --disable-glibtest --disable-introspection --disable-visibility
## --------- ##
## Platform. ##
@bkidney
bkidney / gist:3171241
Created July 24, 2012 17:09
GTK+ Install Issue
==> Downloading http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.11.tar.xz
Already downloaded: /Users/bkidney/Library/Caches/Homebrew/gtk+-2.24.11.tar.xz
xz -dc "/Users/bkidney/Library/Caches/Homebrew/gtk+-2.24.11.tar.xz" | /usr/bin/tar xf -
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gtk+/2.24.11 --disable-glibtest --disable-introspection --disable-visibility
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/gtk+/2.24.11 --disable-glibtest --disable-introspection --disable-visibility
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no