Skip to content

Instantly share code, notes, and snippets.

View BenTheElder's full-sized avatar
🔥
Trying to catch up ...

Benjamin Elder BenTheElder

🔥
Trying to catch up ...
View GitHub Profile
@BenTheElder
BenTheElder / kubelet-panic.log
Created November 30, 2018 19:32
I heard you like stack traces....
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: fatal error: concurrent map writes
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: goroutine 28708 [running]:
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: runtime.throw(0x3fd6885, 0x15)
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: GOROOT/src/runtime/panic.go:608 +0x72 fp=0xc001223af0 sp=0xc001223ac0 pc=0x42f712
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: runtime.mapdelete_faststr(0x36ce240, 0xc000c482a0, 0xc000cd6080, 0x40)
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: GOROOT/src/runtime/map_faststr.go:290 +0x29b fp=0xc001223b50 sp=0xc001223af0 pc=0x415eab
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: k8s.io/kubernetes/pkg/kubelet/remote.(*RemoteRuntimeService).StopContainer(0xc000c482d0, 0xc000cd6080, 0x40, 0x1e, 0x0, 0x0)
Nov 30 17:51:32 kind-1-control-plane kubelet[27459]: pkg/kubelet/remote/remote_runtime.go:240 +0x105 fp=0xc001223c08 sp=0xc001223b50 pc=0x30ad365
Nov 30 17:51:32 kind-1-
@BenTheElder
BenTheElder / README.md
Last active March 9, 2019 01:21
demo image
@BenTheElder
BenTheElder / keybase.md
Created November 6, 2017 04:10
keybase.md

Keybase proof

I hereby claim:

  • I am bentheelder on github.
  • I am bentheelder (https://keybase.io/bentheelder) on keybase.
  • I have a public key ASBU4-4FHJ8_OhSLR9BPFjCqNIwtD9eV7NvZDJl4tP4lQAo

To claim this, I am signing this object:

@BenTheElder
BenTheElder / find_nonmembers.py
Created August 10, 2017 00:12
find contributors that are not members of an organization
#!/usr/bin/env python
from __future__ import print_function
import re
import json
import argparse
from collections import defaultdict
import requests
parser = argparse.ArgumentParser(
@BenTheElder
BenTheElder / submit-queue-ci-results.md
Last active July 26, 2017 06:07
kubernetes submit queue expanded CI results proposal

Abstract

Relevant Issue: kubernetes/test-infra #3619

Currently submit queue has a page displaying e2e build results and the queue health graph. This page provides a high-level preview of the CI job state, but only for the end-to-end tests.

It would be useful to expand this page to cover other job types besides e2e (presubmit, postsubmit, periodic..).

Test # Throughput Units Throughput Mean Latency Microseconds Minimum Latency Microseconds Maximum Latency Microseconds 50th Percentile Latency Microseconds 90th Percentile Latency Microseconds 99th Percentile Latency Microseconds Stddev Latency Microseconds Local CPU Util %
1 Trans/s 8839.08 112.72 87 912 105 134 223 42.84 10.00
2 Trans/s 7888.05 126.42 91 4070 109 137 257 199.07 16.67
3 Trans/s 7480.89 133.29 95 5569 115 144 380 226.73 14.29
4 Trans/s 9073.09 109.84 85 2065 100 124 210 86.00 18.18
5 Trans/s 9005.84 110.60 78 2714 99 128 280 101.30 20.00
6 Trans/s 9596.38 103.83 78 3216 92 114 240 121.03 30.00
7 Trans/s 10181.23 97.88 77 1969 91 115 180 65.27 11.11
8 Trans/s 9845.91 101.19 79 3422 92 115 166 109.98 20.00
9 Trans/s 10278.02 96.87 76 1122 90 113 180 47.10 0.00
@BenTheElder
BenTheElder / styles.less
Created May 26, 2015 22:48
my atom styles.less
/*
Remove vertical scrollbar (best used with minimap package enabled)
*/
atom-text-editor .vertical-scrollbar,
atom-text-editor::shadow .vertical-scrollbar,
atom-text-editor .scrollbar-corner,
atom-text-editor::shadow .scrollbar-corner {
opacity: 0;
width: 0 !important;
}
@BenTheElder
BenTheElder / .bashrc
Last active August 29, 2015 14:18
my .bashrc color prompt snippet
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
#Define colors
DEFAULT="\[\033[m\]"
WHITE="\[\033[0;37m\]"
BLACK="\[\033[30m\]"
RED="\[\033[31m\]"
GREEN="\[\033[32m\]"
YELLOW="\[\033[33m\]"
#!/usr/bin/env python
"""
buildjava.py
Quick and Dirty script to build all .java files in the current
working directory. (run from a shell)
Code by Benjamin Elder.
Public Domain.