Skip to content

Instantly share code, notes, and snippets.

View chrisjz's full-sized avatar

Chris Zaharia chrisjz

View GitHub Profile
@chrisjz
chrisjz / MyoUnityRawEmg
Last active January 3, 2022 14:03
EMG Raw Data access for Myo Unity package in SDK for Windows version 0.8.0
Patch for Myo Unity package for SDK Windows 0.8.0 to access EMG raw data.
@chrisjz
chrisjz / install-ffmpeg-amazon-linux.sh
Last active October 11, 2017 04:53 — forked from prashantmaurice/install-ffmpeg-amazon-linux.sh
How to compile ffmpeg on Amazon Linux (EC2)
#!/bin/sh
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
if [ "`/usr/bin/whoami`" != "root" ]; then
echo "You need to execute this script as root."
exit 1
fi
cat > /etc/yum.repos.d/centos.repo<<EOF
@chrisjz
chrisjz / install-lame-amazon-linux.sh
Last active October 11, 2017 05:08
Install LAME on Amazon Linux
#!/bin/sh
wget -O lame-3.99.5.tar.gz https://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz/download
tar -xvf lame-3.99.5.tar.gz
rm lame-3.99.5.tar.gz
cd lame-3.99.5
./configure
make
make install
@chrisjz
chrisjz / install-libmad-amazon-linux.sh
Created October 11, 2017 05:16
Install libmad on Amazon Linux
#!/bin/sh
#source: http://www.linuxfromscratch.org/blfs/view/6.3/multimedia/libmad.html
#source 2: http://wiki.linuxfromscratch.org/blfs/wiki/libmad
wget http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz
tar -xvf libmad-0.15.1b.tar.gz
rm libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
sed -i '/-fforce-mem/d' configure
@chrisjz
chrisjz / install-sox-amazon-linux.sh
Created October 11, 2017 05:25
Install sox on Amazon Linux
#!/bin/sh
mkdir sox
cd sox
wget http://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2.tar.gz
tar xvfz sox-14.4.2.tar.gz
cd sox-14.4.2
./configure
make -s
make install
@chrisjz
chrisjz / install-tesseract-amazon-linux.sh
Last active October 12, 2017 05:54 — forked from IaroslavR/gist:834066ba4c0e25a27078
install last tesseract to Amazon Linux
sudo yum install autoconf aclocal automake
sudo yum install libtool
sudo yum install libjpeg-devel libpng-devel libtiff-devel zlib-devel
cd ~/downloads
wget http://www.leptonica.com/source/leptonica-1.72.tar.gz
tar -zxvf leptonica-1.72.tar.gz
cd leptonica-1.72
./configure
make
sudo make install