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
'use strict'; | |
module.exports.runonce = (event, context, callback) => { | |
// Simply note that we executed in the logs and move on. | |
// Find the logs in Cloudwatch LogGroup /aws/lambda/lambda-cron-dev-runonce | |
console.log('executing cron job'); | |
callback(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
# Default configuration values for nimbus startup. | |
region=us-west-2 | |
role=nimbus-dev | |
# Ephemeral mounting | |
localmount=/project | |
# EBS mounting | |
mount=/ebs |
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 | |
datadir=awsdata | |
instancedatafile=$datadir/instancedata.json | |
stackdatafile=$datadir/stack-metadata.json | |
# Put all the extracted data into one directory. | |
/bin/mkdir -p $datadir | |
curl="/usr/bin/curl --retry 3 --silent --show-error --fail" |
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
#include <openssl/evp.h> | |
#include <string> | |
#include <iostream> | |
/** | |
* @brief Blowfish string encoding. | |
* | |
* @param key - ASCII key value for the encryption. | |
* @param plaintext - the ASCII plaintext password to encrypt. |
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
#include <boost/date_time.hpp> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
// Pseudo FIX logfile data. | |
const std::string line1 = "20130423-03:22:05.045 : 8=FIXT.1.1"; | |
const std::string line2 = "20130423-03:24:05.339 : 8=FIXT.1.1"; |