I hereby claim:
- I am lukeyeager on github.
- I am lyeager (https://keybase.io/lyeager) on keybase.
- I have a public key ASBPxiENsOuJMwW9ypR9FcR0az00XyEHSPjxgl9hx_CPFAo
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| import argparse | |
| import getpass | |
| import os | |
| import requests | |
| def get_all_items(sess, uri, **extra_params): | |
| page = 1 |
| #!/usr/bin/env python3 | |
| import time | |
| import prometheus_client | |
| import prometheus_client.core | |
| class Collector(prometheus_client.registry.Collector): | |
| def collect(self): | |
| now = time.time() | |
| now_1s = int(round(now)) |
| #!/usr/bin/env python3 | |
| MAX = 16 | |
| TRAIT_DICE = (4, 6, 8, 10, 12) | |
| WILD_DIE = 6 | |
| def main(): | |
| # CSV header | |
| print(','.join([''] + [f'{i}' for i in range(1, MAX+1)])) |
| services: | |
| elasticsearch: | |
| image: elasticsearch:8.2.0 | |
| ports: | |
| - '9200:9200' | |
| environment: | |
| # https://www.elastic.co/guide/en/elasticsearch/reference/8.2/docker.html#docker-configuration-methods | |
| ES_SETTING_DISCOVERY_TYPE: 'single-node' | |
| ES_SETTING_XPACK_SECURITY_ENABLED: 'false' |
| #!/bin/bash | |
| set -euo pipefail | |
| # connecting to prometheus | |
| readonly prometheus_uri='localhost:9090' | |
| # prometheus query | |
| readonly query='sum(irate(metric_total[20s])) without (job)' | |
| readonly ts_start=1612280785 | |
| readonly ts_end=1612390785 |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| set -e | |
| sort_func () { | |
| tr ' ' '\n' | sort -u | (grep -v '^$' || true) | |
| } | |
| cutoff=$(date -Is --date='10 days ago') | |
| # Get list of images used recently | |
| # NOTE: events store image names, not IDs. |
| #!/bin/bash | |
| set -e | |
| case "$1" in | |
| max) ;; | |
| default) ;; | |
| min) ;; | |
| *) | |
| echo "Usage: $0 [max,default,min]" | |
| exit 1 |
| #!/bin/bash | |
| set -ex | |
| # Sanity check | |
| hostname="$(hostname --fqdn)" | |
| if [[ "$hostname" != ip-*.internal ]]; then | |
| echo hostname already updated | |
| exit 0 | |
| fi |
| FROM ubuntu:trusty | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| asciidoc \ | |
| autoconf \ | |
| automake \ | |
| build-essential \ | |
| ca-certificates \ | |
| docbook-xml \ | |
| docbook-xsl \ |