Skip to content

Instantly share code, notes, and snippets.

View zpmorgan's full-sized avatar

Zach Morgan zpmorgan

View GitHub Profile
@zpmorgan
zpmorgan / convertmusic.sh
Last active December 20, 2015 07:59 — forked from strycore/setup.sh
cd "Wave Bank"
find . -name "*.wav" -exec ffmpeg -i {} -acodec pcm_u8 {}.conv.wav \;
#find . -name "*.m4a" -exec faad {} \;
#mmv -v -c "Wave Bank_0000*.xwma.m4a.wav.wma" "Music_#1"
#mmv -v -c "Wave Bank_0001*.xwma.m4a.wav.wma" "Music_1#1"
mmv -v -c "Wave Bank_0000*.wav.conv.wav" "Music_#1"
mmv -v -c "Wave Bank_0001*.wav.conv.wav" "Music_1#1"
@zpmorgan
zpmorgan / piddlebot.pl
Created January 22, 2012 19:58 — forked from run4flat/piddlebot.pl
opkick: IRC bot to kick people who give it ops.
#!/usr/bin/perl
use warnings;
use strict;
use POE;
use POE::Component::IRC::State;
use constant CHANNEL => '#pdl';
# Load the current piddlebot functions:
use piddlebot;
my $last_modified = (stat('piddlebot.pm'))[9];