In order of first appearance in The Morning Paper.
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
## based on the blogpost here: http://blog.sjas.de/posts/colored-iptables-output.html | |
iptables --line-numbers -vnL |\ | |
sed -E 's/^Chain.*$/\x1b[4m&\x1b[0m/' |\ | |
sed -E 's/^num.*/\x1b[33m&\x1b[0m/' |\ | |
sed -E '/([^y] )((REJECT|DROP))/s//\1\x1b[31m\3\x1b[0m/' |\ | |
sed -E '/([^y] )(ACCEPT)/s//\1\x1b[32m\2\x1b[0m/' |\ | |
sed -E '/([ds]pt[s]?:)([[:digit:]]+(:[[:digit:]]+)?)/s//\1\x1b[33;1m\2\x1b[0m/' |\ | |
sed -E '/([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}(\/([[:digit:]]){1,3}){0,1}/s//\x1b[36;1m&\x1b[0m/g' |\ | |
sed -E '/([^n] )(LOGDROP)/s//\1\x1b[33;1m\2\x1b[0m/'|\ |
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
#!/bin/bash -eux | |
ARCH=${ARCH:-linux} | |
K8S_VER=${K8S_URL:-v1.1.8} | |
K8S_URL=https://storage.googleapis.com/kubernetes-release/release | |
curl -Lo /usr/local/bin/kubectl ${K8S_URL}/${K8S_VER}/bin/$ARCH/amd64/kubectl | |
chmod +x /usr/local/bin/kubectl |
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
$ dep ensure | |
Solving failure: No versions of github.com/habitat-sh/habitat-operator met constraints: | |
v0.5.1: Could not introduce github.com/habitat-sh/habitat-operator@v0.5.1, as it has a dependency on k8s.io/api with constraint kubernetes-1.9.0, which has no overlap with existing constraint kubernetes-1.9.1 from github.com/kubernetes-incubator/service-catalog@v0.1.14 | |
v0.5.0: Could not introduce github.com/habitat-sh/habitat-operator@v0.5.0, as it has a dependency on k8s.io/api with constraint kubernetes-1.9.0, which has no overlap with existing constraint kubernetes-1.9.1 from github.com/kubernetes-incubator/service-catalog@v0.1.14 | |
v0.4.0: Could not introduce github.com/habitat-sh/habitat-operator@v0.4.0, as its subpackage github.com/habitat-sh/habitat-operator/pkg/apis/habitat/v1beta1 is missing. (Package is required by (root).) | |
v0.3.0: Could not introduce github.com/habitat-sh/habitat-operator@v0.3.0 due to multiple problematic subpackages: | |
Subpackage github.com/habitat-sh/habitat-operator/pkg/apis/ha |
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
// -*- mode:go;mode:go-playground -*- | |
// snippet of code @ 2018-04-06 15:35:29 | |
// === Go Playground === | |
// Execute the snippet with Ctl-Return | |
// Remove the snippet completely with its dir and all files M-x `go-playground-rm` | |
package main | |
import ( |
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" | |
"os" | |
// osb "github.com/pmorie/go-open-service-broker-client/v2" | |
"github.com/pmorie/osb-broker-lib/pkg/broker" | |
"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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: habitat-broker | |
namespace: habitat-broker | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: habitat-broker |
- checkbox is done with the two brackets next to the P key
- checkbox is done with the two brackets next to the P key
- checkbox is done with the two brackets next to the P key
- checkbox is done with the two brackets next to the P key