I have moved this over to the Tech Interview Cheat Sheet Repo since a gist is too difficult to maintain as an open source endevaor and there is no way to version it. I have updated below, but I will not be able to keep this one up to date so please checkout the repo instead. The below is just for some preservation for those who stumble across here.
\
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jul 13 06:59:43.866998 [34mINFO[0m using home directory: /home/mmlab/testground | |
Jul 13 06:59:43.867076 [34mINFO[0m no .env.toml found at /home/mmlab/testground/.env.toml; running with defaults | |
Jul 13 06:59:43.868112 [34mINFO[0m supervisor worker started {"worker_id": 1} | |
Jul 13 06:59:43.868131 [34mINFO[0m supervisor worker started {"worker_id": 0} | |
Jul 13 06:59:43.869085 [34mINFO[0m listen and serve {"addr": "127.0.0.1:8042"} | |
Jul 13 06:59:43.869126 [34mINFO[0m daemon listening {"addr": "127.0.0.1:8042"} | |
Jul 13 07:00:09.301433 [34mINFO[0m handle request {"req_id": "d0e5a3e3", "command": "run"} | |
Jul 13 07:00:10.435391 [34mINFO[0m request handled {"req_id": "d0e5a3e3", "command": "run"} | |
Jul 13 07:00:10.883267 [34mINFO[0m worker processing task {"worker_id": 0, "task_id": "c3mjjunrm20paq5eduo0"} | |
Jul 13 07:00:10.883657 [34mINFO[0m performing build for groups {"plan": "mldht-test", "groups": ["nodes"], "builder": "docker:go"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"time" | |
"github.com/libp2p/go-libp2p" | |
"github.com/libp2p/go-libp2p-core/host" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/looplab/fsm" | |
) | |
type Turnstile struct { | |
To string |