Skip to content

Instantly share code, notes, and snippets.

View donaldparker's full-sized avatar

Donald Parker donaldparker

  • San Diego, CA USA
View GitHub Profile
@donaldparker
donaldparker / gist:0902c451896cfa96d556
Last active August 29, 2015 14:05
AWS install MEAN + socket.io
aws install MEAN
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
#makesure you are in the directory with .pem file downloaded from ec2 console
ssh -i myec2access.pem ec2-user@URL.compute.amazonaws.com
sudo yum install gcc-c++
sudo yum install openssl-devel
function flatten(array) {
var result = [];
var nodes = array || array.slice();
var node;
if (!array.length) {
return result;
}
node = nodes.pop();
for f in ./**/VIDEO_TS; do
echo "Processing: " $f;
ffmpeg -f concat -safe 0 -i <(for f2 in $f/*.VOB; do echo "file '$PWD/$f2'"; done) -acodec aac -aq 100 -ac 2 -vcodec libx264 -preset veryslow -crf 24 -threads 0 "${PWD}/${f}/outputfile.mp4"
done
#credit http://www.pyimagesearch.com/2015/10/26/how-to-install-opencv-3-on-raspbian-jessie/
sudo apt-get update;
sudo apt-get upgrade;
sudo rpi-update;
sudo reboot;
sudo apt-get install build-essential git cmake pkg-config;
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev