Matt Croydon mcroydon

View keybase.md

Keybase proof

I hereby claim:

  • I am mcroydon on github.
  • I am mcroydon (https://keybase.io/mcroydon) on keybase.
  • I have a public key whose fingerprint is C765 426F 3BBA 6092 72CB 9EC5 3EF0 1933 64B0 BAAB

To claim this, I am signing this object:

View serf-join-on-start.txt
1 2 3 4 5 6 7 8 9 10
[14:16:36] <rgarcia_> is there a reason why you can't start a serf agent and simultaneously tell it to join a cluster?
[14:16:56] <rgarcia_> seems awkward to have to run another cmd to tell it to join
[14:17:43] <Kyle> thought you could?
[14:18:41] • Kyle: looks
[14:19:20] m0hit (~mohit@208.66.30.174) joined the channel.
[14:19:27] <Kyle> heh, guess you can't
[14:20:05] <Kyle> rgarcia_: could use a member join event, look for you, and serf join then?
[14:20:06] <Kyle> *shrug*
[14:20:43] <jacques_> could open a GI for it
[14:20:46] <@mitchellh> rgarcia_ So I originally coded that in
View noflo.json
1 2 3 4 5 6 7 8 9 10
{
"properties": {
"environment": {
"runtime": "html",
"src": "./preview/iframe.html",
"width": "300",
"height": "300",
"content": "<div id='content'></div>"
},
"name": "Hello World"
View gist:5666964

Context: I was asked for a list of interesting reading relating to "distributed databases, behavior under partitions and failures, failure detection." Here's what I came up with in about an hour.

For textbooks, "Introduction to Reliable and Secure Distributed Programming" is a superb introduction to distributed computing from a formal perspective; it's really not about "programming" or "engineering" but about distributed system fundamentals like consensus, distributed registers, and broadcast. Used in Berkeley's Distributed Computing course (and HT to @lalithsuresh) Book Site

Notes from courses like Lorenzo Alvisi's Distributed Computing class can be great.

There are a bunch of classics on causality, [Paxos](ht

View fingure.clj
1 2 3 4 5 6 7 8 9 10
(ns fingure.core
(:gen-class))
 
(use 'lamina.core 'aleph.tcp 'gloss.core)
 
(defn response [query]
(println (str "Received a request for " (if (clojure.string/blank? query) "index" query) "."))
(if (clojure.string/blank? query)
"Greetings from the fingure finger daemon."
(str "Greetings from the fingure finger daemon.\r\nNo information about " query " found.")))
View finger.lua
1 2 3 4 5 6 7 8 9 10
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> local socket = require("socket")
> client = socket.tcp()
> client:connect("mit.edu", 79)
> client:send("\r\n")
> print(client:receive("*a"))
Student data loaded as of Mar 24, Staff data loaded as of Mar 24.
 
Notify Personnel or use WebSIS as appropriate to change your information.
View tcpfing.pas
1 2 3 4 5 6 7 8 9 10
program TCPFing;
uses
DOS, TrumpTCP, Crt, StrTools;
 
 
CONST
NulAddr: TIPAddr = (S_B1:0; S_B2:0; S_B3:0; S_B4:0);
 
var Result: Byte;
TmpAddr: TIPAddr;
View sillyproto.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"bufio"
"flag"
"fmt"
"io"
"log"
"net"
"net/textproto"
View finger.go
1 2 3 4 5 6 7 8 9 10
package main
 
import (
"fmt"
"net"
"io/ioutil"
)
 
func main() {
// Create connection
View s3up.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# coding=utf-8
#
# s3up.py
# 2010-2011, Mike Tigas
# https://mike.tig.as/
#
# Usage:
# s3up filename
# Uploads the given file to the DEFAULT_BUCKET (see below)
Something went wrong with that request. Please try again.