Skip to content

Instantly share code, notes, and snippets.

View wseaton's full-sized avatar
🌱

Will Eaton wseaton

🌱
View GitHub Profile
import json
import graphviz
import trino
import os
import sys
import logging
import concurrent.futures
from concurrent.futures import ThreadPoolExecutor
from cachier import cachier
import datetime
@wseaton
wseaton / init.vim
Created October 26, 2022 15:27
init.vim
set shell=/bin/zsh
let mapleader = "\<Space>"
" =============================================================================
" # PLUGINS
" =============================================================================
" Load vundle
set nocompatible
filetype off
call plug#begin()
@wseaton
wseaton / custom_root_span.rs
Last active April 13, 2022 21:18
Envoy + Rust + SignalFX Tracing Config
use tracing_actix_web::TracingLogger;
use actix_web_opentelemetry::RequestMetrics;
use opentelemetry::{global, runtime::TokioCurrentThread};
use actix_http::header::{self, HeaderMap, HeaderValue};
use actix_web::dev::{ServiceRequest, ServiceResponse};
use opentelemetry_zipkin::Propagator as ZipkinPropagator;
use tracing::Span;
use tracing_actix_web::{DefaultRootSpanBuilder, RootSpanBuilder};
0a1,2
> #![allow(non_snake_case)]
>
4a7
>
12c15
< pub initiatedBy: Option<ApplicationOperation>,
---
> pub initiatedBy: Option<ApplicationOperationInitiatedBy>,
14c17
@wseaton
wseaton / gist:12cd0a041ae67d7f41552106f9069e6d
Created October 18, 2021 15:34
tekton mr comment listener
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: gitlab-review-comment-on-mergerequest-custom
spec:
params:
- name: mergereq-url
value: $(body.merge_request.url)
- name: comment-description
value: $(body.object_attributes.description)
@wseaton
wseaton / notebook.patch
Last active March 16, 2021 20:27
add nbviewer button to jupyterhub
diff --git a/notebook/templates/page.html b/notebook/templates/page.html
index 9e68da1b2..a5539711b 100644
--- a/notebook/templates/page.html
+++ b/notebook/templates/page.html
@@ -133,7 +133,13 @@ dir="ltr">
{% endblock %}
{% block header_buttons %}
-
+

Keybase proof

I hereby claim:

  • I am wseaton on github.
  • I am weaton (https://keybase.io/weaton) on keybase.
  • I have a public key ASCmxy5G8CcM1kDSMl3bYvgDKhYoyGTpO3Zj1TKuR60qqQo

To claim this, I am signing this object: