Skip to content

Instantly share code, notes, and snippets.

View alphajc's full-sized avatar
🎯
Focusing

Jerry Chan alphajc

🎯
Focusing
View GitHub Profile
#!/bin/bash
_APISERVER=127.0.0.1:10085
_V2CTL=/usr/bin/v2ray/v2ctl
apidata () {
local ARGS=
if [[ $1 == "reset" ]]; then
ARGS="reset: true"
fi
#!/usr/bin/env python
import sys
import pandas as pd
df = pd.read_csv(sys.argv[1])
last = ''
for row in df[df['Vpc名称'].notna()][df['主IPv4公网IP'].notna()].sort_values(by=['Vpc名称']).iterrows():
if last != row[1]['Vpc名称']:
---
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
namespace: kube-system
labels:
k8s-app: filebeat
data:
filebeat.yml: |-