I hereby claim:
- I am athomason on github.
- I am athomason (https://keybase.io/athomason) on keybase.
- I have a public key whose fingerprint is 7566 A71B A837 7771 2FAD DFD3 EDB4 D59B 7551 BF6C
To claim this, I am signing this object:
| // +build linux | |
| package reset | |
| import ( | |
| "net" | |
| "strings" | |
| "testing" | |
| "unsafe" |
| // An implementation of https://arxiv.org/abs/1512.07901 | |
| // | |
| // Simple set cardinality estimation through random sampling | |
| // | |
| // We present a simple algorithm that estimates the cardinality n of a set V | |
| // when allowed to sample elements of V uniformly and independently at random. | |
| // Our algorithm with probability (1−δ) returns a (1±ε)−approximation of n... | |
| package main |
| // ==UserScript== | |
| // @name mltshp gif link adder | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description add a link for the .gif version of any <video> | |
| // @author daam | |
| // @match https://mltshp.com/* | |
| // @grant none | |
| // ==/UserScript== |
| /* | |
| Tags: golang http response drain copy close | |
| Q. Does it matter if you drain an http.Transport's Response.Body before | |
| Close'ing it? | |
| A. Yes, failing to read a non-empty Body until EOF can make a connection not | |
| reusable. |
| // usage: go run decrypt_pgp.go --keyfile private.key.asc file1.gz.pgp file.gz.pgp ... | |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "os" | |
| "strings" |
| #!/bin/bash | |
| t1=`tempfile` | |
| t2=`tempfile` | |
| trap "rm -f $t1.go $t2.go $t2" EXIT | |
| echo "package main; func main() { $@; }" > $t1.go | |
| goimports $t1.go > $t2.go | |
| if [[ $? != 0 ]]; then |
| package cmap | |
| import ( | |
| "sync" | |
| "sync/atomic" | |
| "testing" | |
| ) | |
| type ( | |
| Key int // any comparable type |
I hereby claim:
To claim this, I am signing this object:
| $ModLoad imtcp | |
| $Template Fastly, "/var/log/fastly/fastly-%$YEAR%-%$MONTH%-%$DAY%.log | |
| $RuleSet Fastly | |
| *.* ?Fastly | |
| $InputTCPServerBindRuleset Fastly | |
| $InputTCPServerRun 1514 |
| " vim: tw=0 ts=4 sw=4 | |
| " Vim color file | |
| " Derived from koehler.vim | |
| set background=dark | |
| hi clear | |
| if exists("syntax_on") | |
| syntax reset | |
| endif | |
| let g:colors_name = "adam" |