SYNOPSIS Consul Key/Value Storage Notes
DESCRIPTION Structure and function of consul key-value storage. Easier to find and slightly less verbose than the resources on the Consul documentation and sources
WIRE FORMAT
kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create-f - |
package main | |
import ( | |
"crypto/rsa" | |
"errors" | |
"fmt" | |
"math/big" | |
) | |
const confidence = 100 |
:: Remove Apps from Windows 10 | |
:: - You need the go command for this | |
:: - %GOBIN% should be set, and in %PATH% | |
:: - This wont remove all of the apps | |
:: - You need to be "ADMIN" cmd prompt for this to work | |
:: - Paste this into cmd.exe | |
:: - Yes, this could be a powershell script, but who has time to do that? | |
:: - This script comes with no warranty | |
:: - This script is in the public domain, with the hopes that someone other than me will find it useful | |
:: - Windows 10 is insufferable |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
t0 := time.Now() | |
t1 := t0 |
package main | |
import "time" | |
// | |
// [ producer ] ---------- [ scheduler ] ----------- [ consumer ] | |
// | | | |
// [ cpu ] | |
// [ cpu ] | |
// [ cpu ] |
SYNOPSIS Consul Key/Value Storage Notes
DESCRIPTION Structure and function of consul key-value storage. Easier to find and slightly less verbose than the resources on the Consul documentation and sources
WIRE FORMAT
FROM golang:1.10 | |
ADD . /go/src/github.com/<user>/<repo> | |
WORKDIR /go/src/github.com/<user>/<repo> | |
RUN go test -coverpkg=all -coverprofile cover.out ./... |
// With no arguments, this program starts the launcher. For every line read from standard input, | |
// the launcher executes a second copy of itself with in 'calc' mode, and writes the line of input | |
// to that second process. The 'calc' process parses the data into a simple arithmetic expression | |
// and evaluates it. Then it writes the successful result back to the launcher, which prints it to | |
// the standard output or standard error. The calc process is launched once for every line of input | |
// typed by the user. This is intentional. The more optimal approach would be to run calc only once. | |
// | |
// go build pipes.go && pipes | |
package main |
package main | |
import ( | |
"crypto/sha256" | |
"encoding/base64" | |
"fmt" | |
"io" | |
) | |
var x = string(0x60) |
go get golang.org/x/tools/cmd/godoc | |
#:: Q: Where's godoc? | |
#:: A: They removed it.... | |
#:: | |
#:: This is a system agnostic script that will download and install the godoc command |