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
| Cross compile OpenCV with quemu in Ubuntu | |
| ------------------------------------------------------------------------------------- | |
| https://github.com/zhj-buffer/Cross-Compile-Jetson | |
| https://kbeckmann.github.io/2017/05/26/QEMU-instead-of-cross-compiling/ | |
| https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.1.1_Jetson.sh#L40 | |
| Use first two links for creating a virtual machine for cross compiling | |
| The last link contains instructions for cross compiling |
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
| ///////////////////////////////////////////// FFMPEG snippets //////////////////////////////////////////////////// | |
| ffmpeg -f rawvideo -vcodec rawvideo -s 1920x1080 -r 30 -pix_fmt yuv420p -i crowdRun_D.yuv -codec:v v210 output.mov | |
| ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a libfaac -b:a 192k -ac 2 out.mp4 | |
| ================================================================================================================== | |
| Decode 10 bit mov capture as yuv v210 | |
| ------------------------------------------------------------------------------------------------------------------ |
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
| /** | |
| * Module dependencies. | |
| */ | |
| var crypto = require("crypto"); | |
| //var debug = require("debug")("crypto_object"); | |
| /* | |
| * The Javascript object for handling tasks related to encryption, decryption and Hashing | |
| */ |
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
| sudo add-apt-repository ppa:mc3man/trusty-media | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |
| sudo apt-get install ffmpeg |
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
| npm install -g istanbul | |
| istanbul cover _mocha -- -R spec | |
| cat coverage/lcov-report/index.html |
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
| #include <string.h> | |
| #include <stdio.h> | |
| #include <time.h> | |
| #include <sys/time.h> | |
| #define LENGTH 256 | |
| void print_time(char *buf) | |
| { | |
| time_t t; |
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
| var crypto = require("crypto"); | |
| var cryptoWrapper = { | |
| algorithm: 'aes-128-cbc', | |
| passphrase: 'gilsonvarghese', | |
| /* | |
| * @param textToEncrypt {String} The input to be encrypted | |
| * @return {String} the encrypted value of the text | |
| */ |
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
| #Change the filenames | |
| NODE_TARRED="node-vx.y.z.tar.gz" | |
| NODE_DIR="node-vx.y.z" | |
| #Untar repository | |
| tar -xvpf $NODE_TARRED | |
| cd $NODE_DIR | |
| #Create a directory to install binaries | |
| mkdir install |