This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iPhone controlled / Arduino Powered Christmas rgb LED Strip | |
/* https://github.com/adafruit/LPD8806 */ | |
/* https://github.com/sirleech/Webduino */ | |
/* Web_AjaxRGB_mobile.pde - example sketch for Webduino library */ | |
/* - offers web-based slider controllers for RGB led - */ | |
#include "SPI.h" | |
#include "Ethernet.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Splits a media file (such as mkv) into flac files, one file per chapter | |
if [[ $# -ne 2 ]] ; then | |
echo 'Syntax: media-to-flac-split.sh input-file.mkv stream-number' | |
exit 1 | |
fi | |
DIRECTORY="${1//[\. \"\']/-}-stream-$2" | |
mkdir -p $DIRECTORY | |
ffprobe -i $1 2>&1 | grep "Chapter #" | sed -E "s/ *Chapter #[0-9]+.([0-9]+): start ([0-9]+.[0-9]+), end ([0-9]+.[0-9]+)/-map 0:$2 -ss \2 -to \3 -metadata track=\"\1\" $DIRECTORY\/track-\1.flac/" | xargs ffmpeg -y -i $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am benjaminbellamy on github. | |
* I am benjaminbellamy (https://keybase.io/benjaminbellamy) on keybase. | |
* I have a public key whose fingerprint is 986A DFD4 A816 4EA8 7581 A0A3 839B 280E 9EB1 885D | |
To claim this, I am signing this object: |