This file contains 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
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 |
This file contains 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
function flatten(array) { | |
var result = []; | |
var nodes = array || array.slice(); | |
var node; | |
if (!array.length) { | |
return result; | |
} | |
node = nodes.pop(); |
This file contains 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
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 |
This file contains 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
#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 |