Skip to content

Instantly share code, notes, and snippets.

View austince's full-sized avatar
💾
living in the future

Austin Cawley-Edwards austince

💾
living in the future
View GitHub Profile
@austince
austince / workqueue-per-queue-otel.go
Created December 12, 2022 20:27
An example of adding per-queue additional context to k8s workqueue metrics using OpenTelemetry.
package main
import (
"context"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/metric/instrument"
"go.opentelemetry.io/otel/metric/instrument/syncint64"
"k8s.io/client-go/util/workqueue"
"time"
@austince
austince / workqueue-global-otel.go
Last active December 15, 2022 15:37
An example of the current way to add additional context to k8s workqueue metrics using OpenTelemetry.
package main
import (
"context"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/metric/instrument"
"go.opentelemetry.io/otel/metric/instrument/syncint64"
"k8s.io/client-go/util/workqueue"
"strings"
@austince
austince / keybase.md
Created November 15, 2021 17:03
keybase.md

Keybase proof

I hereby claim:

  • I am austince on github.
  • I am vv_austin_ce (https://keybase.io/vv_austin_ce) on keybase.
  • I have a public key ASCQ23cVyzqzvQLSI63zyJPvYiiVIuoK5Dai-B8Be4B0vQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am austince on github.
  • I am austin_ce (https://keybase.io/austin_ce) on keybase.
  • I have a public key ASA5u9zrarE0wi4eVKX9Oxtf7xvvPrJSoCz8JwcmLerMwAo

To claim this, I am signing this object:

@austince
austince / dockerrun-json-schema.json
Last active March 19, 2019 13:25
json schema to validate Dockerrun.aws.json files
{
"$id": "https://gist.githubusercontent.com/austince/44b9d6e6c6c4f5fc927166de9ff58f86/raw/191107271da5815845c77c988bf129493d4ee869/dockerrun-json-schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "AWS Dockerrun.aws.json schema",
"oneOf": [
{ "$ref": "https://gist.githubusercontent.com/austince/9c8240a98c5efa195a72be8eb76aef52/raw/ab96ba8866e8b13e9afd4e989b5b4f3d2feb9684/dockerrun-v1-json-schema.json" },
{ "$ref": "https://gist.githubusercontent.com/austince/c1e3b729590ecc43fd2d016a11b01954/raw/c03c33aa57707880f5413d841bda9e3de2a7595e/dockerrun-v2-json-schema.json" }
]
}
@austince
austince / dockerrun-v1-json-schema.json
Last active March 18, 2019 21:35
json schema to validate Dockerrun.aws.json Version 1 files
{
"$id": "https://gist.githubusercontent.com/austince/9c8240a98c5efa195a72be8eb76aef52/raw/ab96ba8866e8b13e9afd4e989b5b4f3d2feb9684/dockerrun-v1-json-schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "AWS Dockerrun.aws.json v1 schema",
"type": "object",
"additionalProperties": false,
"required": [
"AWSEBDockerrunVersion",
"Image"
],
@austince
austince / dockerrun-v2-json-schema.json
Last active March 18, 2019 21:38 — forked from sordina/dockerrun-jsen-schema.json
json schema to validate Dockerrun.aws.json Version 2 files
{
"$id": "https://gist.githubusercontent.com/austince/c1e3b729590ecc43fd2d016a11b01954/raw/c03c33aa57707880f5413d841bda9e3de2a7595e/dockerrun-v2-json-schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "AWS Dockerrun.aws.json v2 schema",
"type": "object",
"additionalProperties": false,
"required": [
"AWSEBDockerrunVersion",
"containerDefinitions"
],
#!/bin/sh
# Open CV 3.3.1 on Ubuntu 16.04
sudo apt-get -y install libtiff5-dev
sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev
sudo apt-get -y install libxine2-dev libv4l-dev
sudo apt-get -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
@austince
austince / install-opencv-2.4.13.4-in-ubuntu.sh
Last active March 19, 2019 13:31 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install opencv-2.4.13.4 in Ubuntu
#!/bin/sh
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y gcc-5 g++-5
@austince
austince / deprecated-keybase.md
Last active May 8, 2020 14:46
Keybase Authentication

Keybase proof

I hereby claim:

  • I am austince on github.
  • I am austince (https://keybase.io/austince) on keybase.
  • I have a public key ASAg3mNl3vNaAwAaovxoMBj0jsQC0DRRLbmuMasuKQgUZgo

To claim this, I am signing this object: