This file contains hidden or 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
| { | |
| "trigger_url": "https://api.runscope.com/radar/e9283ad0-af77-45b4-81ee-0e59bd5ff932/trigger", | |
| "name": "SCIM 2.0 SPEC Test", | |
| "version": "1.0", | |
| "steps": [ | |
| { | |
| "url": "{{SCIMBaseURL}}/Users?count=1&startIndex=1", | |
| "variables": [ | |
| { | |
| "source": "response_json", |
This file contains hidden or 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
| language: python | |
| python: "3.8" | |
| stages: | |
| - test | |
| before_install: | |
| - npm i -g [email protected] # Install CDK | |
| - pip install -r requirements.txt --use-feature=2020-resolver # Download CDK python depedencies | |
This file contains hidden or 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 open_pull_requests() { | |
| if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then | |
| STAGES=( dev pre pro ) | |
| for STAGE in "${STAGES[@]}"; do | |
| # Run CDK diff | |
| cdk diff -c stage=${STAGE} | tee cdk_diff_${STAGE}.txt | |
| # Prepare PR message | |
| read -r -d '' MESSAGE <<-EOM | |
| > :warning: **Please review this changes before merging.** |
This file contains hidden or 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
| language: python | |
| python: "3.8" | |
| env: | |
| global: | |
| # GITHUB_TOKEN to open PR | |
| - secure: "XXX" | |
| # AWS ACCESS KEY | |
| - secure: "XXX" | |
| # AWS SECRET KEY |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| "time" | |
| ) | |
| var mutex sync.RWMutex | |
| var cache map[string]interface{} |
This file contains hidden or 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
| ticker = time.NewTicker(3 * time.Second) | |
| defer ticker.Stop() // stop the ticker | |
| //... | |
| case <- ticker.C: | |
| // update cache | |
| // ... |
This file contains hidden or 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 cache map[string]interface{} | |
| func main() { | |
| ticker = time.NewTicker(3 * time.Second) | |
| defer ticker.Stop() // stop the ticker | |
| updaterChan = make(chan struct{}) | |
| defer close(updaterChan) // close the channel | |
| // ... |
This file contains hidden or 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
| GOCMD=go | |
| GOTEST=$(GOCMD) test | |
| GOVET=$(GOCMD) vet | |
| BINARY_NAME=example | |
| VERSION?=0.0.0 | |
| SERVICE_PORT?=3000 | |
| DOCKER_REGISTRY?= #if set it should finished by / | |
| EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true | |
| GREEN := $(shell tput -Txterm setaf 2) |
This file contains hidden or 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
| new CfnResource(this, 'datadog_monitor_id',{ | |
| type: 'AWS::CloudFormation::ResourceVersion', | |
| properties:{ | |
| 'TypeName': 'Datadog::Monitors::Monitor', | |
| 'SchemaHandlerPackage': | |
| 's3://datadog-cloudformation-resources/datadog-monitors-monitor/datadog' + | |
| '-monitors-monitor-2.1.0.zip' | |
| } | |
| }) |
This file contains hidden or 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
| import * as cdk from '@aws-cdk/core'; | |
| import {CfnResource} from "@aws-cdk/core"; | |
| export class CdkCustomResourcesStack extends cdk.Stack { | |
| constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
| super(scope, id, props); | |
| const monitorType = new CfnResource(this, 'datadog_monitor_id',{ | |
| type: 'AWS::CloudFormation::ResourceVersion', | |
| properties:{ |