Skip to content

Instantly share code, notes, and snippets.

View kmullin's full-sized avatar

Kevin Mullin kmullin

View GitHub Profile
@kmullin
kmullin / flac_to_mp3.sh
Last active December 18, 2015 14:39
Flac to MP3 script
#!/bin/sh
for a in *.flac; do
OUTF=${a%.flac}.mp3
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
@kmullin
kmullin / hipchat_notify.rb
Created November 2, 2012 09:29 — forked from srinivasmohan/hipchat_notify.rb
Post Nagios alerts to Hipchat
#!/usr/bin/ruby
require 'rubygems'
require 'hipchat-api'
require 'getopt/long'
require 'socket'
require 'erb'
#Do not modify these constants! (after you set these up, of course)
HipApiKey='ABCDEFGHKJHKJHKJHKJH'
Room='Nagios'
@kmullin
kmullin / sphinx.rb
Created October 17, 2012 20:10
homebrew formula for sphinx 0.9.9
require 'formula'
class Sphinx < Formula
url 'http://www.sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz'
homepage 'http://www.sphinxsearch.com'
md5 '7b9b618cb9b378f949bb1b91ddcc4f54'
depends_on 'mysql'
def install
/*****************************************************/
// Email Checker
// Designer : Arturo Erbsman
// Programmer : Antoine Villeret
// ENSADLab - 2010
/*****************************************************/
#include <Ethernet.h>
#define LEDPIN 9 // LED connected to this pin