Skip to content

Instantly share code, notes, and snippets.

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) => {
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
server {
listen 80;
server_name _;
location = /_health {
return 204;
}
}
class ICanDoAnything
def initialize args
args.each do |k,v|
instance_variable_set("@#{k}", v) unless v.nil?
end
end
end
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
+
#!/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 /')
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
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
---
apiVersion: v1
kind: Namespace
metadata:
name: heptio-sonobuoy
---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
@chuckha
chuckha / capa-test.sh
Created January 22, 2019 19:52
Testing machine deployment script
#!/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
}