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
function converter() { | |
this.isStandardJson = function(item) { | |
for (var attr in item) { | |
if (item.hasOwnProperty(attr)) { | |
var attrValue = item[attr]; | |
if (isAttrStandardJson.call(this, attrValue) == false) { | |
return false; | |
} | |
} | |
} |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
ServiceName: | |
Type: String | |
Default: TimeService | |
Description: Name for the service, used in the code repository, Lambda function, and pipeline names | |
Resources: | |
# Code repository for the service | |
CodeRepository: | |
Type: AWS::CodeCommit::Repository |
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
#!/usr/bin/python2.7 | |
#============================================================================== | |
# Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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 originalOpen = window.XMLHttpRequest.prototype.open, | |
originalSend = window.XMLHttpRequest.prototype.send; | |
function myOpen(method, url, async, user, password) { | |
console.log('console log ---------- myopen'); | |
return originalOpen.apply(this, arguments); | |
} | |
function mySend(data) { | |
console.log('console log ---------- mysend'); |
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
Decision Task Completed Event Id: 13 | |
Details: | |
java.lang.IllegalArgumentException: Unknown DecisionId [type=EXTERNAL_WORKFLOW, id=pick-20160611-101710]. The possible causes are nondeterministic workflow definition code or incompatible change in the workflow definition. | |
at com.amazonaws.services.simpleworkflow.flow.worker.DecisionsHelper.getDecision(DecisionsHelper.java:613) | |
at com.amazonaws.services.simpleworkflow.flow.worker.DecisionsHelper.handleStartChildWorkflowExecutionInitiated(DecisionsHelper.java:216) | |
at com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecider.processEvent(AsyncDecider.java:334) | |
at com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecider.decide(AsyncDecider.java:515) | |
at com.amazonaws.services.simpleworkflow.flow.worker.AsyncDecisionTaskHandler.handleDecisionTask(AsyncDecisionTaskHandler.java:50) | |
at com.amazonaws.services.simpleworkflow.flow.worker.DecisionTaskPoller.pollAndProcessSingleTask(DecisionTaskPoller.java:201) | |
at com.amazonaws.services.simpleworkflow.flow.wo |
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
require 'ipaddr' | |
ec2_ranges = %w_ | |
103.4.8.0/21 | |
175.41.192.0/18 | |
176.32.64.0/19 | |
176.34.0.0/19 | |
176.34.32.0/19 | |
46.51.224.0/19 | |
52.192.0.0/15 |
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
#!/usr/bin/python | |
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Amazon Software License (the "License"). You may not use | |
# this file except in compliance with the License. A copy of the License is | |
# located at http://aws.amazon.com/asl/ or in the "license" file accompanying | |
# this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific | |
# language governing permissions and limitations under the License. |
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
// sudo yum update | |
// sudo yum install -y git | |
// sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
// sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
// sudo yum install -y apache-maven | |
// git clone https://github.com/bigdatagenomics/adam.git | |
// cd adam | |
// git checkout adam-parent-0.15.0 | |
// export "MAVEN_OPS=-Xmx512m -XX:MaxPermSize=128m" | |
// # long |
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 -L http://dumps.wikimedia.org/enwiki/latest/\ | |
// enwiki-latest-pages-articles-multistream.xml.bz2 \ | |
// | bzip2 -cd \ | |
// | hadoop fs -put - /user/ds/wikidump.xml | |
// | |
// $ sudo yum install -y git | |
// $ git clone https://github.com/sryza/aas ~/aas | |
// $ cd ~/aas | |
// $ sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
// $ sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo |
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
Style/SpaceAroundOperators: | |
Enabled: false | |
Style/BlockDelimiters: | |
Enabled: false |
NewerOlder