I hereby claim:
- I am cuotos on github.
- I am cuotos (https://keybase.io/cuotos) on keybase.
- I have a public key ASDzYhgFpqsvO0C2QCOGLqQBUjAVilojeJp14jXcoNGwTgo
To claim this, I am signing this object:
version: "3.9" | |
services: | |
prometheus: | |
image: prom/prometheus | |
command: | |
- "--web.enable-lifecycle" | |
ports: | |
- 9090:9090 | |
volumes: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: web | |
labels: | |
role: training | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
#!/bin/bash | |
function f() { | |
sleep "$1" | |
echo "$1" | |
} | |
while [ -n "$1" ]; do | |
f "$1" & | |
shift | |
done | |
wait |
# ~/.bash_logout | |
echo -n "Please rate your experience at $(hostname --fqdn) on a scale of 1 to 10: " | |
read rating | |
echo "+ echo $rating >> /dev/null" | |
echo "Thank you, $USER! Your feeback is important to us!" |
#!/bin/sh | |
# https://github.com/kubernetes/kubernetes/issues/79384#issuecomment-521493597 | |
set -euo pipefail | |
VERSION=${1#"v"} | |
if [ -z "$VERSION" ]; then | |
echo "Must specify version!" | |
exit 1 |
apiVersion: 1 | |
datasources: | |
- name: Prom | |
type: prometheus | |
url: http://localhost:9090 | |
access: direct |
docker run \ | |
--rm \ | |
-ti \ | |
-p 4180:4180 \ | |
-e OAUTH2_PROXY_REDIRECT_URL=http://localhost:4180/oauth2/callback \ | |
-e OAUTH2_PROXY_PROVIDER=github \ | |
-e OAUTH2_PROXY_UPSTREAMS="static://200" \ | |
-e OAUTH2_PROXY_HTTP_ADDRESS="0.0.0.0:4180" \ | |
-e OAUTH2_PROXY_EMAIL_DOMAINS="*" \ | |
-e OAUTH2_PROXY_COOKIE_SECURE=false \ |
#!/usr/bin/env python | |
import subprocess | |
try: | |
branches = subprocess.check_output(['git', 'branch', '-a']).splitlines() | |
except subprocess.CalledProcessError as e: | |
quit(e.returncode) | |
{ | |
// containsEnvVars checks that all needles (k8s env variable "name" and "value" objs) exist in the haystack (pod env block) object | |
// i.e. asserts structs exist in array | |
containsEnvVars(haystack, needles):: ( | |
// create an array, 1 element per needle | |
local results = [ | |
// check the needle is valid (it contains the two required fields) | |
if (std.objectHas(needle, 'name') && std.objectHas(needle, 'value')) then | |
// needle is valid |
I hereby claim:
To claim this, I am signing this object: