Skip to content

Instantly share code, notes, and snippets.

View jsipprell's full-sized avatar

Jesse Sipprell jsipprell

  • Growers
  • Raleigh, Durham
View GitHub Profile
@jsipprell
jsipprell / cgroupoom.go
Created September 20, 2015 13:29
cgroup deletion race test (based on libcontainer from docker 1.7)
// cgroup eventfd oom event_control tester
// To build: go build -o cgroupoom cgroupoom.go
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
@jsipprell
jsipprell / cap.go
Last active May 25, 2022 05:41
Capture 20 ethernet frames from an interface in promiscuous mode (native go, no libpcap)
package main
import (
"fmt"
"github.com/mdlayher/ethernet"
"github.com/mdlayher/raw"
"log"
"net"
"os"
"strings"