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
[[snippets]] | |
description = "test1" | |
command = "foo bar" |
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 | |
echo "Installing Agent..." | |
mkdir /opt/agent; \ | |
wget -O - http://downloads.datastax.com/community/datastax-agent-5.1.0.tar.gz \ | |
| tar xzf - --strip-components=1 -C "/opt/agent" | |
cd /opt/agent/conf | |
echo "stomp_interface: $OPS_IP" >> ./address.yaml | |
touch /root/.agentconfig | |
cd /opt/agent |
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 | |
# | |
# A script to setup a Cassandra cluster running in Docker containers. | |
# | |
# Per default there will be 3 nodes in the cluster and one container | |
# running OpsCenter. | |
# | |
# Note: The script assumes you are working on a Mac running docker-machine. | |
# | |
# Usage (The "-n=4" option is added to start 4 nodes): |
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
{ | |
"id": "api_test_defined_id", | |
"CLIENT_ID": "SharedCloud", | |
"data": { | |
"my_custom_key": "I like trains.", | |
"my_list": [ | |
"eins", | |
"zwo" | |
] | |
}, |
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
curl -v -H "Content-Type: application/json" -X POST -d "{\"id\": \"curl_test_defined_id\",\"CLIENT_ID\": \"SharedCloud\",\"data\": {\"my_custom_key\": \"I like trains.\",\"my_list\": [\"eins\",\"zwo\"]},\"tags\": [\"test\", \"demo\", \"curl\"]}" https://CHANGEME/data |
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
{ | |
"id": "lambda_test_defined_id", | |
"CLIENT_ID": "SharedCloud", | |
"data": { | |
"my_custom_key": "I like trains.", | |
"my_list": [ | |
"eins", | |
"zwo" | |
] | |
}, |
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
console.log('INFO: Loading event'); | |
var AWS = require('aws-sdk'); | |
var dynamodb = new AWS.DynamoDB(); | |
exports.handler = function(event, context) { | |
console.log("INFO: Request received:\n", JSON.stringify(event)); | |
console.log("INFO: Context received:\n", JSON.stringify(context)); | |
var tableName = "data-us-east1"; | |
var datetime = new Date().getTime().toString(); |