Skip to content

Instantly share code, notes, and snippets.

View benhoyt's full-sized avatar

Ben Hoyt benhoyt

View GitHub Profile
@wolsen
wolsen / cprocess.py
Last active February 4, 2023 10:25
quick cmd runner for ops framework
import subprocess
import textwrap
import time
import typing
import weakref
from ops import model
from ops import pebble
import uuid
@mholt
mholt / everything.go
Last active April 14, 2020 13:53
Implements 103 of the 114 Go 1.3 standard library interfaces
package interfaces
import (
"bufio"
"crypto/elliptic"
"crypto/tls"
"database/sql/driver"
"debug/dwarf"
"encoding/xml"
"fmt"
@jordanorelli
jordanorelli / example.go
Created April 7, 2012 19:22
a regex router in go.
package main
import (
"fmt"
"io"
"log"
"routes"
"net/http"
)