Institutional Claim Request
{
"contractId": "103405",
"claimType": "HO",| 'use strict'; | |
| var AWS = require('aws-sdk'); | |
| AWS.config.region = 'us-east-1'; | |
| var iot = new AWS.Iot(); | |
| function deleteThing(name, policyName) { | |
| console.log('Deleting thing "' + name + '"'); | |
| let params = {thingName: name}; |
| 'use strict'; | |
| // https://aws.amazon.com/blogs/compute/implementing-a-serverless-aws-iot-backend-with-aws-lambda-and-amazon-dynamodb/ | |
| console.log('Loading register function'); | |
| var AWS = require('aws-sdk'); | |
| AWS.config.region = 'us-east-1'; | |
| var iot = new AWS.Iot(); | |
| let policyName = 'Policy'; | |
| let thingTypeName = 'Type'; |
| function mainApp() { | |
| libraryCode(input) | |
| .then((data) => console.log("main output", formatForUserView(data))) | |
| .catch((err) => { | |
| console.error("error from library!", err); | |
| display("user-friendly error message"); | |
| }); | |
| } |
| kubectl create serviceaccount --namespace kube-system tiller | |
| kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
| kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' |
| #!/usr/bin/env bash | |
| # Waits for kubernetes ingress to get an IP | |
| # Usage: | |
| # wait-k8s-ip.sh <ingressName> <namespace> | |
| # eg: wait-k8s-ip.sh ingress-name my-app-dev | |
| # Will timeout after 5minutes (5 * 60 tries * 1 sec wait = 300 secs) | |
| external_ip="" | |
| times=0 |
| #!/bin/bash | |
| # Usage: | |
| # wait-dns-ip.sh <hostname> | |
| # eg: wait-dns-ip.sh host.foo.com | |
| # | |
| # Will timeout after 5minutes (5 * 60 tries * 1 sec wait = 300 secs) | |
| DNS_IP="" | |
| COUNTER=0 | |
| while [ -z $DNS_IP ] && [ $COUNTER -lt 300 ]; do | |
| DNS_IP=$(nslookup $1.humanaedge.io | awk '/^Address: / { print $2 }') |
| print -l zsh_demo/*/*(e:'[[ ! -e $REPLY/malta ]]':) | |
| # https://reasoniamhere.com/2014/01/11/outrageously-useful-tips-to-master-your-z-shell/ |
| #!/usr/bin/env bash | |
| # chmod +x this script, put it in the parent directory, then call it with something like: | |
| # for d in */; do; cd "$d" && bash ../git-to-https.sh && cd ..; done | |
| # eg. if you have /src/repo1, /src/repo2, then put the script into /src, and run the loop from /src | |
| # you have to run it within a separate Bash instance because it uses 'exit' :) hence `bash ../git-to-https.sh` | |
| OUR_GIT_SERVER="gitlab.humanaedge.com" | |
| DIRNAME=`basename $PWD` |
| CURRENT_DIR=$(shell pwd) | |
| CI_COMMIT_SHORT_SHA=$(shell git rev-parse --short HEAD) | |
| BRANCH='branch' | |
| JOB='init-k8snet' | |
| gci: | |
| # 1) local gitlab-runner only pulls things that have been committed - temporarily commit | |
| (git add . && git commit -am "gitlab CI testing - temp commit") || true | |
| gitlab-runner exec docker ${JOB} \ | |
| # --env PRV_GKE_SA_KEY='/secrets/gcloud-key.json' \ |