I hereby claim:
- I am jzelinskie on github.
- I am jzelinskie (https://keybase.io/jzelinskie) on keybase.
- I have a public key whose fingerprint is 306E 99CB 7069 D6B1 8943 B14F AB71 936A 73BD 25F1
To claim this, I am signing this object:
#!/bin/sh | |
name="tailscale" | |
exe="/config/tailscale/tailscaled" | |
cmd="$exe --state=/config/tailscale/tailscaled.state --port 41641" | |
is_running() { | |
sudo ifconfig tailscale0 > /dev/null 2>&1 | |
} |
-- Refer to manual: https://knot-resolver.readthedocs.io/en/latest/daemon.html#configuration | |
-- Listen on all interfaces (localhost would not work in Docker) | |
net.listen('0.0.0.0') | |
net.listen('0.0.0.0', 853, {tls=true}) | |
-- Auto-maintain root TA | |
trust_anchors.file = '/data/root.keys' | |
-- Load Useful modules |
package main | |
import "fmt" | |
func SuperMario64RNG(input uint16) uint16 { | |
if input == 0x560A { | |
input = 0 | |
} | |
var s0 uint16 = uint16(uint8(input) << 8) | |
s0 = s0 ^ input |
Delivered-To: [email protected] | |
Received: by 10.237.52.230 with SMTP id x93csp1047052qtd; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
X-Received: by 10.200.56.253 with SMTP id g58mr8090851qtc.201.1479154411609; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
Return-Path: <[email protected]> | |
Received: from newmail.tetrasec.net (mail.tetrasec.net. [74.117.189.117]) | |
by mx.google.com with ESMTP id s23si16209759qka.36.2016.11.14.12.13.31; | |
Mon, 14 Nov 2016 12:13:31 -0800 (PST) | |
Received-SPF: neutral (google.com: 74.117.189.117 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=74.117.189.117; |
package main | |
import ( | |
"log" | |
"time" | |
"golang.org/x/net/context" | |
"google.golang.org/grpc" | |
pb "github.com/jzelinskie/grpc/simple" |
# vim:ft=dockerfile | |
FROM phusion/baseimage:latest | |
# Install the dependencies. | |
# Change the comment on the line below to bust the cache and refresh the apt-cache. | |
RUN apt-get update # 24JUN2015 |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/url" | |
"github.com/chihaya/bencode" |
import random | |
def uniform_random_from_stream(stream): | |
""" Returns a random number from an enumerable with uniform probability | |
by using a "reservoir sampling" algorithm """ | |
reservoir = [] | |
sample_count = 1 | |
for index, item in enumerate(stream): | |
if index < sample_count: |
a list of OCaml complexities extracted from Real World OCaml
let array = [| "this";"is";"a";"array"; |];;
(* val array : string array = [|"this"; "is"; "a"; "array"|] *)
(** accessing a value *)
array.(2);;