$ kubectl get --raw /apis/rbac.authorization.k8s.io | jq
{
"kind": "APIGroup",
"apiVersion": "v1",
"name": "rbac.authorization.k8s.io",
"versions": [
{
"groupVersion": "rbac.authorization.k8s.io/v1",
"version": "v1"
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 | |
set -eou pipefail | |
# ${1} = <organization-name> | |
docker search ${1} | grep -o -E '^[[:alnum:]]+/[^[:blank:]]+' | xargs -L 1 -P 1 docker pull -a |
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 | |
set -eou pipefail | |
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
sudo dpkg -i /tmp/code_latest_amd64.deb |
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 | |
set -exou pipefail | |
helm init || true | |
kubectl create serviceaccount --namespace kube-system tiller | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' |
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
type T struct { | |
A int | |
B string | |
} | |
t := T{23, "skidoo"} | |
s := reflect.ValueOf(&t).Elem() | |
typeOfT := s.Type() | |
for i := 0; i < s.NumField(); i++ { |
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: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
creationTimestamp: 2018-11-27T10:05:51Z | |
generation: 1 | |
labels: | |
app: catalog | |
name: appbindings.appcatalog.appscode.com | |
resourceVersion: "1515" | |
selfLink: /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/appbindings.appcatalog.appscode.com |
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
{ | |
"kind": "AppBinding", | |
"apiVersion": "appcatalog.appscode.com/v1alpha1", | |
"metadata": { | |
"name": "kubedb:postgres:demo:infant-postgres", | |
"namespace": "demo", | |
"creationTimestamp": null, | |
"labels": { | |
"kubedb.com/kind": "Postgres", | |
"kubedb.com/name": "infant-postgres" |
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
Show hidden characters
{ | |
"cmd" : ["g++ -std=c++14 $file_name -o $file_base_name && timeout 4s ./$file_base_name<inputf.in>outputf.in"], | |
"selector" : "source.c", | |
"shell": true, | |
"working_dir" : "$file_path" | |
} |
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
{ | |
"hot_exit": false, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"remember_open_files": false, | |
"save_on_focus_lost": true, | |
// Save via writing to an alternate file, and then renaming it over the |
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
[ | |
{ | |
"keys":["ctrl+space"], | |
"command":"auto_complete" | |
}, | |
{ | |
"keys":["ctrl+space"], | |
"command":"replace_completion_with_auto_complete", | |
"Context":[ | |
{"key":"last_command","operator":"equal","operand":"insert_best_completion" |
OlderNewer