This file contains hidden or 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
| unbind C-b | |
| # set -g prefix ` | |
| # bind-key ` send-prefix | |
| # Example tmux.conf | |
| # 2014.10 | |
| ### General | |
| ########################################################################### | |
| set -g mouse on |
This file contains hidden or 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
| ## Question | |
| Suppose i have a command cmd | |
| ``` | |
| cmd --opt1=['public'|'private'] --opt2=[true|false] | |
| ``` | |
| How do i define `--opt2` defaut value to `false` if `--opt1` is `public` | |
| and `--opt2` default value to `true` if `--opt1` is `private` ? |
This file contains hidden or 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
| code: 0 | |
| data: | |
| avg_latency: 0.001652 | |
| histogram: | |
| - [0, 993783] | |
| - [1, 2130949] | |
| - [2, 720051] | |
| - [3, 163491] | |
| - [4, 107124] | |
| - [5, 51909] |
This file contains hidden or 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
| test |
This file contains hidden or 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: kops/v1alpha2 | |
| kind: Cluster | |
| metadata: | |
| name: kube.kamilhristov.com | |
| spec: | |
| cloudProvider: aws | |
| etcdClusters: | |
| - etcdMembers: | |
| - instanceGroup: master-1 | |
| name: master-1 |
This file contains hidden or 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: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| labels: | |
| name: weave-net | |
| role.kubernetes.io/networking: "1" | |
| name: weave-net | |
| namespace: kube-system | |
| spec: | |
| selector: |
This file contains hidden or 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" | |
| "strings" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/credentials" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/elb" |
This file contains hidden or 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: apps/v1beta2 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: kube-state-metrics | |
| name: kube-state-metrics | |
| namespace: monitoring | |
| spec: | |
| replicas: 1 | |
| selector: |
This file contains hidden or 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: autoscaling/v1 | |
| kind: HorizontalPodAutoscaler | |
| metadata: | |
| name: {{ name }} | |
| namespace: {{ namespace }} | |
| spec: | |
| metrics: | |
| - type: Object | |
| object: | |
| metricName: {{ hpa.metrics_metric_name }} |
This file contains hidden or 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: Service | |
| metadata: | |
| labels: | |
| k8s-addon: coredns.addons.k8s.io | |
| k8s-app: node-local-dns | |
| kubernetes.io/cluster-service: "true" | |
| kubernetes.io/name: NodeLocalDNS | |
| name: node-local-dns | |
| namespace: kube-system |
OlderNewer