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
### Keybase proof | |
I hereby claim: | |
* I am chrsblck on github. | |
* I am chrisblack (https://keybase.io/chrisblack) on keybase. | |
* I have a public key ASAXes-ucqQIl9R_YtdBWgZyWAMRIaBVX3auemjUsXSQOwo | |
To claim this, I am signing this object: |
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" | |
"io/ioutil" | |
"path/filepath" | |
"gopkg.in/yaml.v2" | |
) |
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
func (m *MetricSeter) Setup(cfg *ucfg.Config) { | |
config := struct { | |
Hosts []string `config:"hosts"` | |
Network string `config:"network"` | |
MaxConn int `config:"maxconnections"` | |
}{} | |
if err := cfg.Unpack(&config); err != nil { | |
return err | |
} |
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/perl | |
use strict; | |
use warnings; | |
use Benchmark qw/:all/; | |
use Digest::MD5 qw/md5 md5_hex/; | |
use File::Find; | |
use Cwd qw/abs_path/; |