xctrace record --template 'Time Profiler' --time-limit 10s --attach <app_name>
open <the_out_profile.trace>
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
| -- Usage: | |
| -- osascript wechat.scpt '<朋友昵称或备注,必须是字符串,且可以在微信搜索到的>' '<文字消息,可以带上 emoji>' | |
| on run argv | |
| -- random delay to mimic human behavior | |
| set minDelay to 0.2 | |
| set maxDelay to 1.5 | |
| -- open wechat |
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
| groups: | |
| - name: node_exporter_alerts | |
| rules: | |
| - alert: Node down | |
| expr: up{job="monitoring-pi"} == 0 | |
| for: 2m | |
| labels: | |
| severity: warning | |
| annotations: | |
| title: Node {{ $labels.instance }} is down |
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
| # 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 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
| --- | |
| - 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 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: elasticsearch.k8s.elastic.co/v1 | |
| kind: Elasticsearch | |
| metadata: | |
| name: elasticsearch | |
| labels: | |
| app: elasticsearch | |
| spec: | |
| version: 7.15.1 | |
| http: | |
| tls: |
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/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 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
| #!/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 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
| name: Rust | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always |