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 "golang.org/x/tour/tree" | |
import "fmt" | |
// Walk walks the tree t sending all values | |
// from the tree to the channel ch. | |
func Walk(t *tree.Tree, ch chan int) { | |
// Recursive Approach | |
if (t.Left != nil) { |
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
#!/usr/bin/env python3 | |
import argparse | |
import random | |
import sys | |
def gen_key(): | |
random.seed() | |
key = "" | |
for idx in range(32): | |
key += hex(random.randrange(0, 16)).upper()[-1] |
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
[Unit] | |
Description=Docker service testing facility | |
After=network.target docker.service | |
[Service] | |
Restart=always | |
WorkingDirectory=/srv/tester | |
SyslogIdentifier=%i | |
ExecStart=/usr/bin/docker-compose up --no-color |