I hereby claim:
- I am zeisss on github.
- I am zeisss (https://keybase.io/zeisss) on keybase.
- I have a public key ASBmYeTfh_UmZt2E_LnUuot3iOBPzO-HHQlK55dyoen49wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Run with | |
// | |
// $ GODEBUG=http2debug=2 go test . -v | |
// | |
// for debug output | |
package main | |
import ( | |
"crypto/tls" | |
"fmt" |
/* | |
find_ip search a local copy of https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html#aws-ip-download for a specific IP and prints the prefix. | |
*/ | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"net" | |
"os" |
FROM golang:1.6 | |
RUN go get github.com/nlopes/slack | |
COPY main.go /go/src/main.go | |
CMD ["go", "run", "/go/src/main.go"] |
core@ip-172-31-28-12 ~ $ cat test.service | |
[Unit] | |
Description=Stephan Test | |
[Service] | |
ExecStart=/bin/echo 01234567890123456789012345678901234567890123456789 012345678901\ | |
234567890123456789012345678901234567890123456789012345678901234567890123456789012345\ | |
678901234567890123456789012345678901234567890123456789012345678901234567890123456789\ | |
01234567890123456789012345678901234567890123456789012345678901234567890123456789\ | |
01234567890123456789012345678901234567890123456789012345678901234567890123456789\ |
[package] | |
name = "swarm-rust-example" | |
version = "0.1.0" | |
authors = ["root"] | |
[dependencies] | |
hyper = "0.6.1" |
curl https://api.slack.com/api/channels.list -d "token=${TOKEN}" | jq '.channels[] | {name: .name, m: (.members[] | contains("$MEMBERID"))}'|grep -B1 true|grep name |
etcdctl ls /path/api/ --recursive|xargs -I{} echo 'A="$(etcdctl get {})" && etcdctl set $(echo {}|sed s/api/othername/) "${A}"; unset A' |
# Go Channels | |
Dennis - [email protected] or @denderello | |
Stephan - [email protected] or @zeisss_public | |
> "Don't communicate by sharing memory, share memory by communicating." -- Rob Pike | |
## Problem |
package main | |
import "time" | |
import "fmt" | |
import "math/rand" | |
// parallel performs the given actions with `n` actions in parallel. | |
// Make `n == len(actions)` to perform all actions in parallel. | |
// | |
// Arguments |