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 fs = require('fs'); | |
var http = require('http'); | |
var nodemailer = require('nodemailer'); | |
var dbServer = '...'; | |
var dbName = '...'; | |
var dbUser = '...'; | |
var dbpassword = '...'; | |
var smtpHost = '...'; | |
var mailFrom = '...'; |
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
#!/bin/bash | |
if [ "$#" -ne 4 ]; then | |
echo "Usage: $0 SOURCE_REPO SOURCE_MODULE TARGET_REPO TARGET_MODULE" >&2 | |
echo "Example: $0 git@...:src_repo src_module git@...:target_repo target_module" >&2 | |
exit 1 | |
fi | |
SOURCE_REPO=$1 | |
SOURCE_MODULE=$2 | |
TARGET_REPO=$3 |
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 fs = require('fs'); | |
var data = fs.readFileSync(process.argv[2], { | |
encoding: 'ascii' | |
}); | |
var json = JSON.parse(data); | |
for (var list in json) { | |
var devices = json[list]; | |
for (var i = 0; i < devices.length; i++) { |
NewerOlder