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
QUERY | |
{ | |
"aggregations" : { | |
"terms" : { | |
"terms" : { | |
"field" : "value" | |
} |
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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
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 -s -o use-node https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/node/use-node | |
NODE_VERSION=0.10.26 \ | |
source ./use-node | |
npm install | |
npm install grunt | |
npm install grunt-cli | |
export PATH=$PATH:node_modules/grunt-cli/bin/ | |
npm install bower | |
export PATH=$PATH:node_modules/bower/bin/ | |
bower install |
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 -p ~/mysql | |
cat > ~/.my.cnf <<EOF | |
[mysqld] | |
datadir=/home/jenkins/mysql/data | |
user=jenkins | |
socket=/home/jenkins/mysql/mysql.sock | |
EOF | |
export MYSQL_HOME=~/mysql | |
mysql_install_db |
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
export PATH=/usr/local/bin:/usr/local/packer:$PATH | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] ' | |
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
``` | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Confirm Your CarLingo Account</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
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 AWS = require('aws-sdk') | |
var sns = new AWS.SNS(); | |
var inner_message = { name:"mymessage", other:"this is other" }; | |
inner_message = JSON.stringify(inner_message); | |
var payload = | |
{ | |
"default": inner_message, | |
}; | |
payload = JSON.stringify(payload); |
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
// -- ------------------------------------------ | |
// SWF - sending work to a workflow | |
// | |
var swf = new AWS.SWF(); | |
var params = { | |
domain: 'FTPToS3Domain', /* required */ | |
workflowId: 'STRING_VALUE', /* required */ | |
workflowType: { /* required */ | |
name: 'FTPToS3WorkFlow.run', /* required */ | |
version: '1.7' /* required */ |
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
{ | |
"objects": [ | |
{ | |
"directoryPath": "#{myS3OutputLoc}/", | |
"name": "S3OutputLocation", | |
"id": "S3OutputLocation", | |
"type": "S3DataNode" | |
}, | |
{ | |
"period": "1 day", |
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
aws datapipeline create-pipeline --name vin-reference-unzip --unique-id vin-reference-unzip | |
# returned : df-0757905EU1V52FPMH4U | |
aws datapipeline put-pipeline-definition --pipeline-id df-0757905EU1V52FPMH4U --pipeline-definition file:///Users/mark/workspace/buycheck_etl/aws-datapipeline/dataone-unzip-vin-reference.json | |
aws datapipeline activate-pipeline --pipeline-id df-0757905EU1V52FPMH4U | |
aws datapipeline list-pipelines |
OlderNewer