Skip to content

Instantly share code, notes, and snippets.

View maplebed's full-sized avatar

Ben Hartshorne maplebed

View GitHub Profile
@maplebed
maplebed / main.go
Created February 1, 2019 23:58
Test script to race the go beeline by sending supposedly synchronous spans asynchronously. It should work, though the resulting spans will have some marked as having been sent early by the parent. It shouldn't deadlock, which sadly does happen against the beeline at git revision 609a95f
package main
import (
"context"
"fmt"
"runtime"
"time"
beeline "github.com/honeycombio/beeline-go"
libhoney "github.com/honeycombio/libhoney-go"
@hvr
hvr / gist:662196
Created November 4, 2010 07:02
Show key fingerprints of public keys in .ssh/authorized_keys file
#!/bin/bash
( while read L
do echo $L > /tmp/pubkey
printf "%-16s => " $(cut -f 3 -d ' ' /tmp/pubkey)
ssh-keygen -l -f /tmp/pubkey
done
rm /tmp/pubkey
) < .ssh/authorized_keys