Skip to content

Instantly share code, notes, and snippets.

View soapergem's full-sized avatar

Gordon Myers soapergem

View GitHub Profile
@soapergem
soapergem / admissionreview.json
Last active November 30, 2023 07:40
Kubernetes AdmissionReview example
{
"kind": "AdmissionReview",
"apiVersion": "admission.k8s.io/v1beta1",
"request": {
"uid": "2441cee4-352b-11e9-85be-b8975a0ca30c",
"kind": {
"group": "",
"version": "v1",
"kind": "Pod"
},
@soapergem
soapergem / coredns.log
Last active April 23, 2022 14:45
Additional K8S logs
Name: coredns-64897985d-gfrpw
Namespace: kube-system
Priority: 2000000000
Priority Class Name: system-cluster-critical
Node: k8s-master-1/192.168.1.194
Start Time: Sat, 23 Apr 2022 09:36:23 -0500
Labels: k8s-app=kube-dns
pod-template-hash=64897985d
Annotations: <none>
Status: Pending
@soapergem
soapergem / kubelet.log
Created March 26, 2022 03:56
journalctl -u kubelet
This file has been truncated, but you can view the full file.
-- Journal begins at Fri 2022-03-25 13:12:20 CDT, ends at Fri 2022-03-25 22:51:13 CDT. --
Mar 25 18:35:49 k8s-master-1 kubelet[2894775]: /workspace/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs2/hugetlb.go:35
Mar 25 18:35:49 k8s-master-1 kubelet[2894775]: k8s.io/kubernetes/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs2.(*manager).GetStats
Mar 25 18:35:49 k8s-master-1 kubelet[2894775]: /workspace/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs2/fs2.go:123
Mar 25 18:35:49 k8s-master-1 kubelet[2894775]: k8s.io/kubernetes/vendor/github.com/google/cadvisor/container/libcontainer.(*Handler).GetStats
Mar 25 18:35:49 k8s-master-1 kubelet[2894775]: /workspace/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/google/cadvisor/container/libcontainer/handler.go:86
Mar 25 18:35:49 k8s-master
@soapergem
soapergem / containers.log
Created March 10, 2022 01:31
Container Logs
==> etcd-k8s-master-1_kube-system_etcd-b62a2fe7b6cd9e3e28743b45dbe618b1806a78d32600ebc5617e2315a591cd98.log <==
2022-03-09T19:07:33.410526355-06:00 stderr F {"level":"warn","ts":"2022-03-10T01:07:33.410Z","caller":"v3rpc/interceptor.go:197","msg":"request stats","start time":"2022-03-10T01:07:31.885Z","time spent":"1.524853649s","remote":"127.0.0.1:59618","response type":"/etcdserverpb.KV/Range","request count":0,"request size":72,"response count":0,"response size":27,"request content":"key:\"/registry/limitranges/kube-system/\" range_end:\"/registry/limitranges/kube-system0\" "}
2022-03-09T19:07:43.369155936-06:00 stderr F {"level":"info","ts":"2022-03-10T01:07:43.368Z","caller":"osutil/interrupt_unix.go:64","msg":"received signal; shutting down","signal":"terminated"}
2022-03-09T19:07:43.369294141-06:00 stderr F {"level":"info","ts":"2022-03-10T01:07:43.368Z","caller":"embed/etcd.go:367","msg":"closing etcd server","name":"k8s-master-1","data-dir":"/var/lib/etcd","advertise-peer-urls":["https://192.168.1.19
@soapergem
soapergem / envconsul.log
Created April 11, 2021 21:56
Log of envconsul
2021/04/11 21:50:58.783186 [INFO] envconsul v0.11.0 (9f66f6c5)
2021/04/11 21:50:58.783231 [INFO] (runner) creating new runner (once: true)
2021/04/11 21:50:58.784043 [DEBUG] (runner) final config: {"Consul":{"Address":"consul.mydomain.com","Namespace":"","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":9,"TLSHandshakeTimeout":10000000000}},"Exec":{"Command":"env","Enabled":true,"Env":{"Denylist":[],"Custom":[],"Pristine":false,"Allowlist":[]},"KillSignal":2,"KillTimeout":30000000000,"ReloadSignal":null,"Splay":0,"Timeout":0},"KillSignal":2,"LogLevel":"debug","MaxStale":2000000000,"PidFile":"","Prefixes":[{"Format":"","NoPrefix":null,"Path":"path/to/data"}]
@soapergem
soapergem / app-history.log
Last active July 8, 2019 19:31
EMR Exception Logs
User class threw exception: org.apache.spark.SparkException: Job aborted.
at org.apache.spark.internal.io.SparkHadoopWriter$.write(SparkHadoopWriter.scala:100)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply$mcV$sp(PairRDDFunctions.scala:1096)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1094)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopDataset$1.apply(PairRDDFunctions.scala:1094)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
at org.apache.spark.rdd.PairRDDFunctions.saveAsHadoopDataset(PairRDDFunctions.scala:1094)
at com.mypackage.MyMainClassRunner$$anonfun$main$2.apply(MyMainClass.scala:385)
@soapergem
soapergem / terraform.log
Created April 2, 2019 17:09
Terraform Debug Output
2019/04/02 12:00:28 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR]
2019/04/02 12:00:28 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334
2019/04/02 12:00:28 [INFO] Go runtime version: go1.11.1
2019/04/02 12:00:28 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply"}
2019/04/02 12:00:28 [DEBUG] Attempting to open CLI config file: /home/gmyers/.terraformrc
2019/04/02 12:00:28 Loading CLI configuration from /home/gmyers/.terraformrc
2019/04/02 12:00:28 [INFO] CLI command args: []string{"apply"}
2019/04/02 12:00:28 [INFO] command: empty backend config, returning nil
2019/04/02 12:00:28 [DEBUG] command: no data state file found for backend config
2019/04/02 12:00:28 [DEBUG] New state was assigned lineage "5d499e8f-1e68-9a9a-7da1-2d4b12690894"
@soapergem
soapergem / keybase.md
Created October 25, 2018 15:53
keybase.md

Keybase proof

I hereby claim:

  • I am soapergem on github.
  • I am soapergem (https://keybase.io/soapergem) on keybase.
  • I have a public key ASC186GJI7QBT7EcYlxCcTfTKFTCxbGDhoV8e8kAUw-Csgo

To claim this, I am signing this object:

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.google.android.gms.nearby.messages.samples.nearbydevices"
minSdkVersion 9
targetSdkVersion 23
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#define BCM2708_PERI_BASE 0x20000000
#define GPIO_BASE (BCM2708_PERI_BASE + 0x200000)