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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Q: abandon | |
A: 【考法 1】 n. 放纵: carefree, freedom from constraint | |
A: 【考法 2】 v. 放纵: to give (oneself) over unrestrainedly | |
A: 【考法 3】 v. 放弃: to withdraw from often in the face of danger or encroachment | |
A: 【考法 4】 v. 停止做某事: to put an end to (something planned or previously agreed to) | |
Q: awning | |
A: 【考法 1】 n. 雨篷,遮阳篷: a piece of material attached to a caravan or building which provides shelter from the rain or sun | |
Q: mercenary |
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
import fileinput | |
import sys | |
file_name = "" | |
file_buf = "" | |
file_object = "" | |
def deal_line(line): | |
global file_object | |
if line[0] == 'Q': |
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: Build | |
apiVersion: v1 | |
metadata: | |
name: "ruby-hello-world-2" | |
spec: | |
source: | |
strategy: | |
type: Custom | |
customStrategy: | |
from: |
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: Build | |
apiVersion: v1 | |
metadata: | |
name: ruby-hello-world-2 | |
spec: | |
source: | |
strategy: | |
type: Custom | |
customStrategy: | |
from: |
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
if err := printPolicyRoleMultilineWithIndent(w, name, rolesString, policy); err != nil { | |
return err | |
} | |
func printPolicyRoleMultilineWithIndent(w io.Writer, name string, rolesString string, policy *authorizationapi.Policy) error{ | |
if len(rolesString) > 50 { | |
if _, err := fmt.Fprintf(w, "%s\t%s\t%v", name, rolesString, policy.LastModified); err != nil { | |
return err | |
} | |
} else { |
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
[librehat-shadowsocks] | |
name=Copr repo for shadowsocks owned by librehat | |
baseurl=https://copr-be.cloud.fedoraproject.org/results/librehat/shadowsocks/fedora-$releasever-$basearch/ | |
type=rpm-md | |
skip_if_unavailable=True | |
gpgcheck=1 | |
gpgkey=https://copr-be.cloud.fedoraproject.org/results/librehat/shadowsocks/pubkey.gpg | |
repo_gpgcheck=0 | |
enabled=1 | |
enabled_metadata=1 |
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
https://github.com/kubernetes/kubernetes/issues/36391 |
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
GOROOT=/usr/local/go | |
GOPATH=/home/shiywang/go | |
/usr/local/go/bin/go test -c -o "/tmp/TestPodAndContainerAttach in attach_test.gogo" k8s.io/kubernetes/pkg/kubectl/cmd | |
"/tmp/TestPodAndContainerAttach in attach_test.gogo" -test.v -test.run ^TestPodAndContainerAttach$ | |
panic: expected pointer, but got invalid kind [recovered] | |
panic: expected pointer, but got invalid kind | |
goroutine 11 [running]: | |
panic(0x182bcc0, 0xc4204ac360) | |
/usr/local/go/src/runtime/panic.go:500 +0x1a1 |
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
./kubectl apply view last-applied -f update_deployment.yaml | |
{"kind":"Deployment","apiVersion":"extensions/v1beta1","metadata":{"name":"nginx-deployment","creationTimestamp":null},"spec":{"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"nginx"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.12.10","ports":[{"containerPort":80}],"resources":{}}]}},"strategy":{}},"status":{}} | |
Spec: | |
MinReadySeconds: 0 | |
Paused: false | |
ProgressDeadlineSeconds: null | |
Replicas: 1 | |
RevisionHistoryLimit: null | |
RollbackTo: null |
OlderNewer