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=小红书去广告 | |
#!desc=去除广告和水印 | |
#!system=ios | |
# 修改自:https://raw.githubusercontent.com/ddgksf2013/Rewrite/master/AdBlock/XiaoHongShu.conf | |
[URL Rewrite] | |
# > 小红书_通用广告请求@ddgksf2013 | |
^https?:\/\/www\.xiaohongshu\.com\/api\/sns\/v\d\/(tag\/)?ads - reject | |
# > 小红书_隐私屏蔽@ddgksf2013 |
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
# Acknowledgements | |
# - https://raw.githubusercontent.com/yawenchim/QuantumultX-mix/master/YattaQuanX.conf | |
# - https://github.com/Koolson/Qure | |
# - https://github.com/Orz-3/mini | |
# - https://github.com/blackmatrix7/ios_rule_script | |
[general] | |
excluded_routes=192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8 | |
network_check_url=http://cp.cloudflare.com/generate_204 | |
server_check_url=http://cp.cloudflare.com/generate_204 |
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
def dump(res, *args, **kw): | |
"""dump HTTP request and response""" | |
# request spec | |
method = res.request.method | |
url = res.url | |
print(f"> {method} {url}") | |
# request headers | |
for k, v in res.request.headers.items(): | |
print(f"> {k}: {v}") |
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: helm.cattle.io/v1 | |
kind: HelmChart | |
metadata: | |
name: prometheus-node-exporter | |
namespace: kube-system | |
spec: | |
helmVersion: v3 | |
chart: prometheus-node-exporter | |
targetNamespace: monitoring | |
repo: https://apphub.aliyuncs.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
- job_name: stage-cadvisor | |
honor_timestamps: true | |
scrape_interval: 15s | |
scrape_timeout: 15s | |
metrics_path: /metrics | |
scheme: https | |
kubernetes_sd_configs: | |
- api_server: https://public-ip:6443 | |
role: node | |
bearer_token_file: /opt/prometheus/serviceaccount/stage/token |
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: v1 | |
kind: ServiceAccount | |
metadata: | |
name: prometheus | |
namespace: monitoring | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
name: prometheus |