Skip to content

Instantly share code, notes, and snippets.

View dmage's full-sized avatar

Oleg Bulatov dmage

View GitHub Profile
<!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;
#!/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. >-]+)\].* => {$")

Keybase proof

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:

package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"log"
Aug 1 15:01:25.489: INFO: signer build logs:
Pulling image openshift/origin ...
Pulled 1/7 layers, 15% complete
Pulled 2/7 layers, 34% complete
Pulled 3/7 layers, 54% complete
Pulled 4/7 layers, 72% complete
Pulled 5/7 layers, 81% complete
Pulled 6/7 layers, 86% complete
Pulled 7/12 layers, 61% complete
Pulled 8/12 layers, 69% complete
Docker version 1.9.1, build a34a1d5
docker@default:~$ docker pull portainer/portainer:windows-amd64-1.13.0
windows-amd64-1.13.0: Pulling from portainer/portainer
0c0ecf4a2ce4: Pulling fs layer
18f7cc0e8caf: Pulling fs layer
ccf219dc065e: Pulling fs layer
d2369420dc11: Pulling fs layer
9ed96455544c: Pulling fs layer
06f378dfa67c: Pulling fs layer
d849400361ae: Pulling fs layer
$ TOKEN=$(boater token docker.io repository:library/fedora:pull)
$ curl -I -L -H "Authorization: Bearer $TOKEN" https://index.docker.io/v2/library/fedora/manifests/latest
HTTP/1.1 200 OK
Content-Length: 3801
Content-Type: application/vnd.docker.distribution.manifest.v1+prettyjws
Docker-Content-Digest: sha256:fba372d3e27f11ae600bf1bcfaf032810c7621303973680898bb5dc2716b47cf
Docker-Distribution-Api-Version: registry/2.0
Etag: "sha256:fba372d3e27f11ae600bf1bcfaf032810c7621303973680898bb5dc2716b47cf"
Date: Fri, 23 Jun 2017 12:09:23 GMT
Strict-Transport-Security: max-age=31536000
@dmage
dmage / debug-sni.go
Created June 22, 2017 12:05
debug-sni.go
package main
import (
"flag"
"fmt"
"html"
"log"
"net/http"
)
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'cadvisor'
#!/bin/sh
### cleanup
oc cluster down
rm -rf ./secrets
### end of cleanup
oc cluster up --version=latest --skip-registry-check=true
oc login -u system:admin
oc project default