I hereby claim:
- I am davidcollom on github.
- I am davidcollom (https://keybase.io/davidcollom) on keybase.
- I have a public key whose fingerprint is 586F C999 658B A5A1 A55D 4FCA B480 42C8 D905 FF99
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| EXCLUDE_RESOURCES="pods|endpoints|controllerrevisions.apps|replicasets|events" | |
| for ns in $(kubectl get ns -o json | jq -r '.items[].metadata.name'); do | |
| for obj in $(kubectl api-resources --namespaced -o name | grep -vE "${EXCLUDE_RESOURCES}"); do | |
| for name in $(kubectl -n $ns get $obj -o json | jq -r '.items[].metadata.name'); do | |
| echo ${ns}/${obj}/${name} | |
| mkdir -p ${ns}/${obj}; | |
| kubectl -n $ns get $obj $name -o yaml \ |
| ################################################### | |
| ## | |
| ## Alertmanager YAML configuration for routing. | |
| ## | |
| ## Will route alerts with a code_owner label to the slack-code-owners receiver | |
| ## configured above, but will continue processing them to send to both a | |
| ## central Slack channel (slack-monitoring) and PagerDuty receivers | |
| ## (pd-warning and pd-critical) | |
| ## |
| FROM perl:5 | |
| RUN cpanm -in URI::Escape LWP LWP::Protocol::https JSON Cwd Log::Log4perl | |
| ADD packt-sync.pl /packt-sync.pl | |
| ENTRYPOINT [ "/packt-sync.pl" ] |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| # http://zookeeper.apache.org/doc/r3.3.4/recipes.html#sc_leaderElection | |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'zookeeper' | |
| require 'hashie' | |
| class ElectionCandidate | |
| attr_reader :zookeeper, :children, :root_path, :node_path, :my_path | |
| attr_accessor :logger |
This is a Dashing widget and all components needed to port the original radiator information into an Dashing Widget.
##Usage
To use this widget, copy puppet_radiator.html, puppet_radiator.coffee, and puppet_radiator.scss into the /widgets/puppet_radiator directory. Put the puppet_radiator.rb file in your /jobs folder.
Or simply run dashing install c695b22a12259f0809f8 to let dashing do that for you.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
| #!/bin/bash | |
| set -eu | |
| shopt -s nullglob | |
| readonly base_dir=/var/lib/docker/registry | |
| readonly output_dir=$(mktemp -d -t trace-images-XXXX) | |
| readonly jq=/usr/bin/jq | |
| readonly repository_dir=$base_dir/repositories |
| #!/bin/bash | |
| set -eu | |
| shopt -s nullglob | |
| readonly base_dir=/var/local/docker-registry | |
| readonly output_dir=$(mktemp -d -t trace-images-XXXX) | |
| readonly jq=/tmp/jq | |
| readonly repository_dir=$base_dir/repositories |
| #!/usr/bin/env bash | |
| ipconfig | grep IPv4 | awk -F: '{print $2}' | tr -d ' ' |