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
Building mosquitto: | |
git clone git@github.com:eclipse/mosquitto.git | |
sudo apt-get install cmake libssl-dev | |
cd <MOSQUITTO_SRC> | |
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz | |
tar -xzvf v2.1.0.tar.gz | |
cd libwebsockets-2.1.0/ | |
mkdir build | |
cd build/ |
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
var path = require('path'), | |
fs = require('fs'), | |
libCoverage = require('nyc/node_modules/istanbul-lib-coverage'), | |
libReport = require('nyc/node_modules/istanbul-lib-report'), | |
reports = require('nyc/node_modules/istanbul-reports'); | |
var rootFolder = __dirname; | |
var mergeIntoFolder = 'final'; | |
var files = fs.readdirSync(rootFolder); | |
var mergedCoverageMap = null; |
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
var a = ["sdfdf", "http://oooooolol"], | |
handleNetErr = function(e) { return e }; | |
Promise.all(fetch('sdfdsf').catch(handleNetErr), fetch('http://invalidurl').catch(handleNetErr)) | |
.then(function(sdf, invalid) { | |
console.log(sdf, invalid) // [Response, TypeError] | |
}) | |
.catch(function(err) { | |
console.log(err); | |
}) |
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
#!/bin/bash | |
############ check arguments ################# | |
if [ -z "$1" ] | |
then | |
echo "No argument supplied, please provide product name and build type. such as: ./renameAndBuild.sh aloft debug " | |
exit | |
fi | |
############ setting paths ################# |
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
mkdir src/com/fingi | |
mv src/com.fingi.csipsimple.src/com/fingi/ | |
find src/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.java | |
find res/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.xml |