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
| const mapDispatchToProps = (dispatch) => { | |
| return { | |
| mouseOver: (id) => dispatch(updateTmpFailureId(id)), | |
| mouseOut: () => dispatch(resetTmpFailureId()), | |
| cookbookClick: (stacktrace) => (failureId) => { | |
| dispatch(updateActiveFailureId(failureId)); | |
| dispatch(updateActiveHostId(0)); | |
| dispatch(updateActiveStacktrace(stacktrace)); | |
| }, | |
| failingHostClick: (hostId, stacktrace) => { |
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 A | |
| x = 1 | |
| class B | |
| def get_x | |
| A::x #HOW DO I GET x in this scope why is ruby confusing me | |
| end | |
| end | |
| end |
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
| server { | |
| listen 80; | |
| server_name _; | |
| location = /_health { | |
| return 204; | |
| } | |
| } |
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
| class ICanDoAnything | |
| def initialize args | |
| args.each do |k,v| | |
| instance_variable_set("@#{k}", v) unless v.nil? | |
| end | |
| end | |
| end |
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
| diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb | |
| index 0ca8b08..6a832d2 100644 | |
| --- a/app/controllers/maps_controller.rb | |
| +++ b/app/controllers/maps_controller.rb | |
| @@ -86,7 +86,8 @@ class MapsController < ApplicationController | |
| @tracks = [] | |
| expeditions.each do |exp| | |
| - if exp.style['simplify'] == true | |
| + |
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
| #!/bin/bash | |
| # Check that the environment variable has been set correctly | |
| if [ -z "$SECRETS_BUCKET_NAME" ]; then | |
| echo >&2 'error: missing SECRETS_BUCKET_NAME environment variable' | |
| exit 1 | |
| fi | |
| # Load the S3 secrets file contents into the environment variables | |
| eval $(aws s3 cp s3://${SECRETS_BUCKET_NAME}/db_credentials.txt - | sed 's/^/export /') |
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
| apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-deployment | |
| spec: | |
| replicas: 3 | |
| template: | |
| metadata: | |
| labels: | |
| app: nginx |
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
| all tests | |
| [k8s.io] Cluster size autoscaler scalability [Slow] CA ignores unschedulable pods while scheduling schedulable pods [Feature:ClusterAutoscalerScalability6] | |
| [k8s.io] Cluster size autoscaler scalability [Slow] should scale down empty nodes [Feature:ClusterAutoscalerScalability3] | |
| [k8s.io] Cluster size autoscaler scalability [Slow] should scale down underutilized nodes [Feature:ClusterAutoscalerScalability4] | |
| [k8s.io] Cluster size autoscaler scalability [Slow] should scale up at all [Feature:ClusterAutoscalerScalability1] | |
| [k8s.io] Cluster size autoscaler scalability [Slow] should scale up twice [Feature:ClusterAutoscalerScalability2] | |
| [k8s.io] Cluster size autoscaler scalability [Slow] shouldn't scale down with underutilized nodes due to host port conflicts [Feature:ClusterAutoscalerScalability5] | |
| [k8s.io] Docker Containers should be able to override the image's default arguments (docker cmd) [Conformance] | |
| [k8s.io] Docker Containers should be able to override the image's default command and arguments [Co |
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
| --- | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: heptio-sonobuoy | |
| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| labels: |
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
| #!/usr/bin/env bash | |
| set -o xtrace | |
| set -o errexit | |
| set -o nounset | |
| cleanup() { | |
| source envfile | |
| aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId]" | jq '.[][0][0]' --raw-output | xargs aws ec2 terminate-instances --instance-ids | |
| } |