git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| #!/bin/bash | |
| # git-summary - summarise git repos at some path | |
| # | |
| # Adapted from https://gist.github.com/lmj0011/1a8dd1e376234ac7bf0fba2748ecdd0f | |
| # | |
| # Andy Gimblett, March 2017 | |
| usage() { |
| #!/usr/bin/env bash | |
| PORT=27017 | |
| MONGO_LABEL=${TRACK}-mongo | |
| LOGFILE="/postStart.log" | |
| date > $LOGFILE | |
| # Get the pods referenced by the Headless Service | |
| function getPods() { | |
| curl -s -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ |
| #!/usr/bin/env bash | |
| PORT=27017 | |
| # this is the label for the mongo pods. | |
| # In my case it is prefixed by the TRACK variable (dev, test or prod) | |
| # edit according to your setup | |
| MONGO_LABEL=${TRACK}-mongo | |
| # We log to a log file as there is no output to std when running the hook. | |
| # We can check this log file to see what happened once the hook has run | |
| LOGFILE="/postStart.log" |
| import {TranslateLoader} from "ng2-translate/ng2-translate"; | |
| import {Observable} from "rxjs/Observable"; | |
| import fs = require('fs'); | |
| export class TranslateUniversalLoader implements TranslateLoader { | |
| constructor(private prefix: string = 'i18n', private suffix: string = '.json') {} | |
| /** | |
| * Gets the translations from the server | |
| * @param lang |
| app_identifier "com.yourorganization.mytodoapp" # The bundle identifier of your app | |
| apple_id "<You Apple Id>" # Your Apple email address | |
| # You can uncomment any of the lines below and add your own | |
| # team selection in case you're in multiple teams | |
| # team_name "CAMobileApp" | |
| # team_id "Q2CBPJ58CA" | |
| # you can even provide different app identifiers, Apple IDs and team names per lane: | |
| # https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md |
| { | |
| "APIGatewayServiceRolePolicy": { | |
| "Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy", | |
| "AttachmentCount": 0, | |
| "CreateDate": "2019-10-22T18:22:01+00:00", | |
| "DefaultVersionId": "v6", | |
| "Document": { | |
| "Statement": [ | |
| { |
| <!-- | |
| This disables app transport security and allows non-HTTPS requests. | |
| Note: it is not recommended to use non-HTTPS requests for sensitive data. A better | |
| approach is to fix the non-secure resources. However, this patch will work in a pinch. | |
| To apply the fix in your Ionic/Cordova app, edit the file located here: | |
| platforms/ios/MyApp/MyApp-Info.plist | |
| And add this XML right before the end of the file inside of the last </dict> entry: |
| var RequestShortener = require("webpack/lib/RequestShortener"); | |
| var _ = require("lodash"); | |
| /** | |
| * TODO Docs | |
| * @example new NamedModulesPlugin(/^\.\/app\/(viewmodels|records|adapters)/, /^\.\/app\/(.*)\.js$/) | |
| */ | |
| function NamedModulesPlugin(fileWhitelistRegex, replacementRegex) { | |
| this.fileWhitelistRegex = fileWhitelistRegex; | |
| this.replacementRegex = replacementRegex; |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
| var https = require('https'); | |
| var util = require('util'); | |
| exports.handler = function(event, context) { | |
| console.log(JSON.stringify(event, null, 2)); | |
| console.log('From SNS:', event.Records[0].Sns.Message); | |
| var postData = { | |
| "channel": "#aws-sns", | |
| "username": "AWS SNS via Lamda :: DevQa Cloud", |