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
| AWSTemplateFormatVersion: '2010-09-09' | |
| Metadata: | |
| License: Apache-2.0 | |
| Description: 'AWS CloudFormation Sample Template ELBGuidedAutoScalingRollingUpdates: | |
| This example creates an auto scaling group behind a load balancer with a simple | |
| health check. The Auto Scaling launch configuration includes an update policy that | |
| will keep 2 instances running while doing an autoscaling rolling update. The update | |
| will roll forward only when the ELB health check detects an updated instance in-service. | |
| **WARNING** This template creates one or more Amazon EC2 instances and an Elastic | |
| Load Balancer. You will be billed for the AWS resources used if you create a stack |
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
| RUNNING_MACHINE=$(docker-machine ls --filter state=running -q) | |
| if [ ! -z "$RUNNING_MACHINE" ]; then | |
| echo "$RUNNING_MACHINE" | |
| eval "$(docker-machine env $RUNNING_MACHINE)" | |
| docker-machine config $RUNNING_MACHINE || docker-machine regenerate-certs -f $RUNNING_MACHINE | |
| docker_machine_ip_add="$(docker-machine ip $RUNNING_MACHINE)" | |
| fi | |
| function docker-machine-set() { | |
| RUNNING_MACHINE=$($1 || $(docker-machine ls --filter state=running -q)) | |
| eval "$(docker-machine env $RUNNING_MACHINE)" |
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
| module SonarQube | |
| # Client for the SonarQube API | |
| # | |
| # @see http://docs.sonarqube.org/display/DEV/Web+API | |
| class Client | |
| attr_reader :host, :port, :api_endpoint, :api_token, :username, :password | |
| attr_reader :host, :port, :api_endpoint, :api_token, :username, :password | |
| def initialize(options) | |
| options[:port] ||= 9000 | |
| @host = options[:host] |
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
| --- | |
| BUILDS: | |
| - name: All Builds | |
| description: Provides information on all builds | |
| usage: | |
| method: GET | |
| path: "/api/build" | |
| - name: Builds Diff | |
| description: Compare a build artifacts/dependencies/environment with an older build | |
| to see what has changed (new artifacts added, old dependencies deleted etc). |
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
| require 'chef' | |
| config_file ||= '/etc/chef/client.rb' | |
| Chef::Config.from_file(config_file) | |
| secret = Chef::EncryptedDataBagItem.load_secret(Chef::Config[:encrypted_data_bag_secret]) | |
| something = Chef::EncryptedDataBagItem.load('some_data_bag', 'some_item', secret) | |
| puts something['sample_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
| user www-data; | |
| worker_processes 4; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } |
https://deliveryserver/e/enterprise/#/organizations/org/projects/sample-project/changes/abc1234-5defg-asdsad-ads-cadsdsafafg/review Or click the 'Review' tab.
After comment is posted, the following message is displayed: Peter commented in a few seconds.
This should read: Peter commented a few seconds ago.
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
| Demo |