Skip to content

Instantly share code, notes, and snippets.


Michael Crosby crosbymichael

View GitHub Profile
> docker run --rm -t -i --logger d2-syslog --profile privileged --net d2 --net b2 alpine ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if28: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP
link/ether b2:da:6d:61:18:56 brd ff:ff:ff:ff:ff:ff
inet brd scope global eth0


apk-tools 2.10.4, compiled for x86_64.

Installing and removing packages:
  add       Add PACKAGEs to 'world' and install
            (or upgrade) them, while ensuring
            that all dependencies are met
  del       Remove PACKAGEs from 'world' and
View main.go
package main
import (
mkdir -p /sys/fs/cgroup/cpuset/buildkit
echo 5-7 >> /sys/fs/cgroup/cpuset/buildkit/cpuset.cpus
View metrics
# HELP go_gc_duration_seconds A summary of the GC invocation durations.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 2.1686e-05
go_gc_duration_seconds{quantile="0.25"} 5.9681e-05
go_gc_duration_seconds{quantile="0.5"} 7.8483e-05
go_gc_duration_seconds{quantile="0.75"} 9.5376e-05
go_gc_duration_seconds{quantile="1"} 0.000303761
go_gc_duration_seconds_sum 0.064228354
go_gc_duration_seconds_count 802
# HELP go_goroutines Number of goroutines that currently exist.
View smaps.go
package main
import (
View containerd.go
package main
import (
View stdin
package main
import (
_ "context"
_ "math"
_ "net/http"
_ ""
crosbymichael / init.c
Last active Aug 26, 2016
Simple Container Pid 1
View init.c
#define _GNU_SOURCE
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/resource.h>

Keybase proof

I hereby claim:

  • I am crosbymichael on github.
  • I am crosbymichael ( on keybase.
  • I have a public key whose fingerprint is 03AC FE05 5FF8 E919 F278 00FA 0930 0471 AA36 D4B3

To claim this, I am signing this object:

You can’t perform that action at this time.