Skip to content

Instantly share code, notes, and snippets.

View shousper's full-sized avatar
🌤️
Sometimes there aren't limitations

Corey McGregor shousper

🌤️
Sometimes there aren't limitations
View GitHub Profile
@shousper
shousper / index.ts
Created June 23, 2022 05:37
Failing Airflow chart release deployment with Pulumi
import '@pulumi/kubernetes';
import { Namespace } from '@pulumi/kubernetes/core/v1';
import { Release } from '@pulumi/kubernetes/helm/v3';
const name = 'fail-airflow';
const namespace = new Namespace(name, { metadata: { name } });
new Release(name, {
@shousper
shousper / metrics.ts
Created August 13, 2021 02:42
knexjs Query Instrumentation
import { UpDownCounter, ValueRecorder } from '@opentelemetry/api-metrics';
import { hrTime, hrTimeDuration } from '@opentelemetry/core';
type QueryEvent = {
sql: string;
__knexUid: string;
__knexTxId?: string;
};
export function install(db: Knex): void {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@shousper
shousper / index.html
Last active October 9, 2018 00:55 — forked from RubaXa/index.html
for-in +/- hasOwnProperty vs. Object.keys vs. Сached keys (http://jsbench.github.io/#0ef90fc0dfc3dafcb4be1230f4834946) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>for-in +/- hasOwnProperty vs. Object.keys vs. Сached keys</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>