start new:
tmux
start new with session name:
tmux new -s myname
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: admin-user | |
| namespace: kube-system | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: admin-user |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "time" | |
| "github.com/alexellis/faas/gateway/metrics" | |
| "github.com/gorilla/mux" | |
| "github.com/prometheus/client_golang/prometheus" |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "os/exec" | |
| "strings" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "bufio" | |
| "compress/gzip" | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
| program firetest; | |
| { Classic fire animation using VGA mode 13h and colors 0 to 63... wee !!! } | |
| uses Crt, VGA; | |
| var i, heat: Integer; | |
| quit: Boolean; | |
| c: Char; |
| package gziphandler | |
| import ( | |
| "compress/gzip" | |
| "log" | |
| "net/http" | |
| "strings" | |
| "sync" | |
| ) |
| package main | |
| import "net" | |
| func echoServer(c net.Conn) { | |
| for { | |
| buf := make([]byte, 512) | |
| nr, err := c.Read(buf) | |
| if err != nil { | |
| return |