I hereby claim:
- I am dmage on github.
- I am dmage (https://keybase.io/dmage) on keybase.
- I have a public key ASC7CXLVgiadcibFsRZqE3P3PHz7oEMqybL786fPc9IsOQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| Extracts Ansible tasks from input. | |
| """ | |
| import re | |
| EMPTY_RE = re.compile(r"^$") | |
| START_SEGMENT_RE = re.compile(r"^(?P<type>TASK|CHECK|PLAY|RUNNING HANDLER) \[(?P<name>.*)\] \*\*\*\**$") | |
| START_BLOCK_RE = re.compile(r"^(?P<result>ok|changed|skipping|failed|fatal): \[([A-Za-z0-9. >-]+)\].* => {$") |
| <!doctype html> | |
| <html> | |
| <head> | |
| <script src="https://d3js.org/d3.v5.min.js"></script> | |
| </head> | |
| <body> | |
| <svg width="600" height="400" style="background: #ccc" font-family="sans-serif" font-size="10" text-anchor="middle"></svg> | |
| <script> | |
| const width = 600, height = 400; |
| #!/bin/bash | |
| set -eu | |
| # Released into the Public Domain. | |
| # | |
| # Original implementation in C by Brad Conte ([email protected]) <https://github.com/B-Con/crypto-algorithms> | |
| # Ported to Bash (lol) by Josh Junon ([email protected]) <https://github.com/qix-> | |
| # | |
| # Original gist is https://gist.github.com/Qix-/affef08b50686e54e1f2ca18f97a6ff7 | |
| # Removed external utilities. |
Get a pull secret from https://cloud.openshift.com/clusters/install.
Copy a part of the secret that looks like
"quay.io":{"auth":"...","email":"..."}
and add it to your ~/.docker/config.json.
You also will need credentials for registry.svc.ci.openshift.org:
| kind: List | |
| apiVersion: v1 | |
| items: | |
| - apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: pruner | |
| namespace: openshift-image-registry | |
| - apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding |
| #!/bin/sh -eu | |
| NAMESPACE=default | |
| SERVICEACCOUNT=default | |
| oc -n "$NAMESPACE" serviceaccounts new-token "$SERVICEACCOUNT" | |
| NEW_SECRET_NAME=$( | |
| oc get secrets \ | |
| --field-selector='type=kubernetes.io/service-account-token' \ |
| # oc create -f ./boater-probe.yaml | |
| # oc -n openshift logs pod/boater-probe | |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: boater-probe | |
| namespace: openshift | |
| spec: | |
| containers: |
| var groupingGroups = [ | |
| { | |
| id: "bz1913069", | |
| issueLink: "https://bugzilla.redhat.com/show_bug.cgi?id=1913069", | |
| m: /spec\.containers\[0\]\.securityContext\.containers\[0\]\.hostPort: Invalid value: 1030[0-9]: Host ports are not allowed to be used/, | |
| }, | |
| { | |
| id: "googleapi-403-quota-exceeded", | |
| m: /googleapi: Error 403: Quota exceeded for quota group/, | |
| }, |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| ) |