xctrace record --template 'Time Profiler' --time-limit 10s --attach <app_name>
open <the_out_profile.trace>
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
# pylint.rc file in workspace folder | |
======================================== | |
[MASTER] | |
# A comma-separated list of package or module names from where C extensions may | |
# be loaded. Extensions are loading into the active Python interpreter and may | |
# run arbitrary code. | |
extension-pkg-whitelist= | |
# Add files or directories to the blacklist. They should be base names, not |
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
--- | |
- hosts: jinshannew | |
vars: | |
remote_user: root | |
tasks: | |
- name: Remove the existing repos | |
file: | |
state: absent | |
path: /etc/yum.repos.d/centos-base.repo | |
- name: Creating /etc/yum.repos.d/elrepo.repo |
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: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: elasticsearch | |
labels: | |
app: elasticsearch | |
spec: | |
version: 7.15.1 | |
http: | |
tls: |
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: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: pulsar-standalone | |
labels: | |
app.kubernetes.io/managed-by: test-infra | |
spec: | |
serviceName: pulsar-svc | |
replicas: 1 | |
selector: |
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 -xuo pipefail | |
IFS=' | |
' | |
pvc2tcs=( $(kubectl get pvc -l app.kubernetes.io/managed-by=tidb-operator,app.kubernetes.io/name=tidb-cluster -o jsonpath="{range .items[*]}{.metadata.name}{' '}{.metadata.labels.app\.kubernetes\.io/instance}{'\n'}{end}") ) | |
echo "Cleanup all dangling PVCs created by tidb-operator." | |
for pvc2tc in "${pvc2tcs[@]}"; do | |
pvc=$(echo "${pvc2tc}" | awk -F ' ' '{print $1}') | |
tc=$(echo "${pvc2tc}" | awk -F ' ' '{print $2}') |
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
name: Rust | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always |