Skip to content

Instantly share code, notes, and snippets.

@jeff1evesque
jeff1evesque / gruntfile.js
Last active August 29, 2015 14:03
Audio Anaylzer: Sample gruntfile.js for Sass Automation
/**
* gruntfile.js
*
* This file automates Sass, Uglify, and Imagemin
*/
module.exports = function (grunt) {
grunt.initConfig({
@jeff1evesque
jeff1evesque / log_bash_loader
Last active August 29, 2015 14:03
Audio Analyzer: Bash log for scripts executed from 'bash_loader'
+ shopt -s extglob
+ haystack=(./@(audio|git|build)/*)
+ true ./audio/converter_wav_rate ./audio/converter_wav_text ./build/grunt ./git/local_ignore_rules
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././audio/converter_wav_text
+ ././audio/converter_wav_rate
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././build/grunt
@jeff1evesque
jeff1evesque / log_bash_loader
Created July 11, 2014 14:15
Audio Analyzer: Bash log after `sudo reboot`, inotifywait using `-m -e create -e moved_to -e modify`
+ shopt -s extglob
+ haystack=(./@(audio|git|build)/*)
+ true ./audio/converter_wav_rate ./audio/converter_wav_text ./build/grunt ./git/local_ignore_rules
+ for file in '"${haystack[@]}"'
+ ././audio/converter_wav_rate
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././build/grunt
+ ././audio/converter_wav_text
@jeff1evesque
jeff1evesque / gist:32fc358bf0ac45cb9abc
Created July 11, 2014 14:20
Audio Analyzer: Bash log after `sudo reboot`, inotifywait using `-m -e close_write`
+ shopt -s extglob
+ haystack=(./@(audio|git|build)/*)
+ true ./audio/converter_wav_rate ./audio/converter_wav_text ./build/grunt ./git/local_ignore_rules
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././audio/converter_wav_text
+ ././audio/converter_wav_rate
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././git/local_ignore_rules
@jeff1evesque
jeff1evesque / gist:0925ed906cabdff965a5
Last active August 29, 2015 14:03
Audio Analyzer: Running 'test_pocketsphinx_continuous`, inotifywait using `-m -e create -e moved_to -e modify`
+ pocketsphinx_continuous -infile ../../pocketsphinx/audio/sample.wav -hmm en-us -lm cmusphinx-5.0-en-us.lm.dmp
INFO: cmd_ln.c(696): Parsing command line:
pocketsphinx_continuous \
-infile ../../pocketsphinx/audio/sample.wav \
-hmm en-us \
-lm cmusphinx-5.0-en-us.lm.dmp
Current configuration:
[NAME] [DEFLT] [VALUE]
-adcdev
@jeff1evesque
jeff1evesque / gist:723d130235e5d68921b9
Created July 11, 2014 15:22
Audio Analyzer: `sudo reboot`, audio scripts (_rate/_text) use inotifywait `-m -e close_write`
+ shopt -s extglob
+ haystack=(./@(audio|git|build)/*)
+ true ./audio/converter_wav_rate ./audio/converter_wav_text ./build/grunt ./git/local_ignore_rules
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././audio/converter_wav_rate
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././git/local_ignore_rules
+ ././audio/converter_wav_text
@jeff1evesque
jeff1evesque / log_bash_loader
Created July 13, 2014 14:41
Audio Analyzer: `sudo reboot`, repeat no reboot, converter_wav_rate, inotifywait `-m -e close_write -e move`
+ shopt -s extglob
+ haystack=(./@(audio|git|build)/*)
+ true ./audio/converter_wav_rate ./audio/converter_wav_text ./build/grunt ./git/local_ignore_rules
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ for file in '"${haystack[@]}"'
+ ././audio/converter_wav_text
+ ././audio/converter_wav_rate
+ for file in '"${haystack[@]}"'
+ ././build/grunt
@jeff1evesque
jeff1evesque / gist:94cac0ff66bee0664791
Created July 18, 2014 14:05
Upgrade pyOpenSSL on OSX 10.6.8
$ sudo easy_install PyOpenSSL
Password:
Searching for PyOpenSSL
Best match: pyOpenSSL 0.14
Processing pyOpenSSL-0.14-py2.6.egg
Adding pyOpenSSL 0.14 to easy-install.pth file
Using /Library/Python/2.6/site-packages/pyOpenSSL-0.14-py2.6.egg
Processing dependencies for PyOpenSSL
Searching for cryptography>=0.2.1
@jeff1evesque
jeff1evesque / gist:2bc51a88b0e9831072fd
Created July 18, 2014 16:51
Install Python 2.7 on OSX 10.6.8
$ sudo port install python27
Portfile changed since last build; discarding previous state.
---> Computing dependencies for gettext
---> Fetching archive for gettext
---> Attempting to fetch gettext-0.19.2_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/gettext
---> Attempting to fetch gettext-0.19.2_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/gettext
---> Installing gettext @0.19.2_0
---> Cleaning gettext
---> Computing dependencies for gettext
---> Deactivating gettext @0.18.3.2_0
@jeff1evesque
jeff1evesque / gist:fb9a65cf8abd0bc0d292
Created July 19, 2014 04:49
Install PIP from GitHub
$ git clone https://github.com/pypa/pip
Cloning into pip...
remote: Reusing existing pack: 14423, done.
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 14428 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (14428/14428), 20.84 MiB | 1022 KiB/s, done.
Resolving deltas: 100% (8963/8963), done.
$ cd pip
$ sudo python setup.py install