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 cloudformation describe-stack-resources --stack-name $STACK_NAME | jq '.StackResources[]|select(.ResourceType=="AWS::DynamoDB::Table").PhysicalResourceId' |
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
echo "######Getting Dev Version From Pom##########" > /dev/null 2>&1 | |
SNAPSHOT="-SNAPSHOT"; | |
DEV_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dq -Dexpression=project.version | grep -v '\['); | |
export RELEASE_VERSION="$(echo $DEV_VERSION | sed "s@$SNAPSHOT@@").$BUILD_NUMBER"; | |
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/sh | |
set -e | |
BASE_MODEL_DIR=$1 | |
BASE_DIR="${AMENITY_PATH:-/data/VSA_Structure}" | |
CUSTOM_DATA_FOLDER="$BASE_DIR/custom_data" | |
echo "searching for custom model in the volume ${BASE_MODEL_DIR} to extract before SA engine" | |
if [ -d $BASE_MODEL_DIR ] | |
then | |
echo "Model mount was found. searching for model zip" |
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 -euv | |
CHANGE_SET_NAME=${1:-"change-set"} | |
STAGE=${1:-"dev"} | |
SERVICE=${2:-"myService"} | |
STACK_NAME="$SERVICE-$STAGE" | |
changeSetId=$(aws describe-change-set --change-set-name "$CHANGE_SET_NAME" --stack-name "$STACK_NAME" | jq -r '.ChangeSetId') | |
aws cloudformation delete-change-set --change-set-name "$changeSetId" |
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'; | |
const BbPromise = require('bluebird'); | |
class ServerlessPlugin { | |
constructor(serverless, options) { | |
this.serverless = serverless; | |
this.options = options; | |
this.log = this.serverless.cli.log.bind(this); | |
this.commands = {}; |
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 cognito-idp admin-update-user-attributes | |
--user-pool-id eu-west-xxxxxx | |
--username xxxxyyyy@exeample.com | |
--user-attributes Name=email_verified,Value=true |
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
# First verify the version of Java being used is not SunJSK. | |
java -version | |
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html | |
wget http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm | |
# Rename the file downloaded, just to be nice | |
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm | |
# Install Java |
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 localhost:8500/v1/catalog/nodes | |
curl localhost:8500/v1/catalog/services | |
dig @127.0.0.1 -p 8600 consul.service.consul SRV | |
curl -v http://localhost:8500/v1/kv/?recurse | |
curl -X PUT -d 'test' http://localhost:8500/v1/kv/web/key1 | |
curl -X PUT -d 'test' http://localhost:8500/v1/kv/web/key2?flags=42 |
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
TAG= "<percentageFloat>10.654656</percentageFloat>" | |
#expected = 10.654656 | |
temp=$(echo $TAG |sed 's/[/]//g') | |
res=$(echo $temp |sed 's/[<percentageFloat>]//g') |
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
<repositories> | |
<repository> | |
<id>exelate.repository</id> | |
<name>exelate-mobile</name> | |
<url>http://maven.exelate.com:8081/nexus/content/groups/public/</url> | |
</repository> | |
</repositories> | |
<dependency> |
NewerOlder