V2EX feedcode 的所有回复 第 1 页 / 共 8 页
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX    feedcode    全部回复第 1 页 / 共 8 页
回复总数  146
1  2  3  4  5  6  7  8  
21 天前
回复了 kemo 创建的主题 上海 买车的理由,唠唠普通人的生活
700 公里开车回家要开 8 个小时以上(出上海市区一般就要一个小时以上了),如果不是常年开长途的话,腰酸背痛很累的,坐车的也累,不如高铁舒服
在上海不买电车,不拍沪牌,高峰期上不了高架,只能在地面堵着。
分享一个大多人不知道的上海医保知识点, 个人账户缴得越多越吃亏

本市职工医保门急诊就医采用“三段式”保障模式,即:①账户段,先使用每年 7 月 1 日计入的个人账户当年资金支付门急诊费用; ②自负段(即门诊起付线 500),账户资金用完后,由个人现金支付门急诊费用; ③共付段,超出自负段以上门急诊费用,统筹基金按比例报销
127061
87 天前
回复了 mytsing520 创建的主题 签证 美签 H-1B 调整申请门槛
第二个是将来时态,还没有行政令。
Trump Says the U.S. Will Institute $100,000 Fee for Skilled Worker Visas

这个差别可大了,Trump Always Chickens Out (TACO)
不要 rewrite query parameter

nginx.ingress.kubernetes.io/configuration-snippet: |
if ($request_uri ~ "/dhq/([^\?]*)") {
set $path1 $1;
rewrite ^/dhq/ /$path1 break;
}
这个不是 ingress 的问题!
你只是恰巧用了 nginx ,解决方法
https://my.f5.com/manage/s/article/K000148648
试试在 configuration-snippet 再加一个
rewrite ^ $request_uri;
96 天前
回复了 fitme 创建的主题 Kubernetes k8s 下 nfs-provisioner 迁移
删掉 PV 后重建,记得 spec.claimRef 保持和之前的一样,PVC 会重新 Bound

while read share;do
echo "check $share"
kubectl get pv $share -o yaml > "$share-origin.yaml"
ns=$(yq '.spec.claimRef.namespace' "$share-origin.yaml")
pvc=$(yq '.spec.claimRef.name' "$share-origin.yaml")
echo "$ns $pvc"
if [ ! -f "all-pods-$ns.yaml" ] ;then
kubectl get pods -n $ns -o yaml > "all-pods-$ns.yaml"
fi
podname=$(yq ".items[]|select(.spec.volumes[].persistentVolumeClaim.claimName==\"$pvc\")|.metadata.name" "all-pods-$ns.yaml")
echo "pods $podname will be deleted"
# patch pv
kubectl patch pv $share -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}, "metadata":{"finalizers":null }}' --type=merge
kubectl delete pv $share --wait=false
sleep 5
kubectl delete pod -n $ns $podname
sleep 10
kubectl get pv $share || echo deleted
# recreate PV here
sed -e "REPLACE-HERE" "$share-origin.yaml" >"$share-new.yaml"
kubectl create -f "$share-new.yaml"
done<pv-shares.txt
ctr 不走 containerd 的 plugin 配置,plugins."io.containerd.grpc.v1.cri".registry 对 ctr 无用

The ctr utility is a command-line interface for directly interacting with the containerd daemon. It uses containerd's native API, not the CRI plugin's API. Therefore, when you use ctr image pull, it does not consult the registry mirror configurations set up for the CRI plugin.
137 天前
回复了 kyonn 创建的主题 NGINX 问个 nginx 配置问题
你如果认为这里应该是或的关系,那改成|就行了
137 天前
回复了 kyonn 创建的主题 NGINX 问个 nginx 配置问题
(?x) 这个表示 Free-Spacing , 后面的空格和换行会 ignore
https://www.regular-expressions.info/freespacing.html
用了新的 feature, range over functions

https://go.dev/blog/range-functions
As of Go 1.23 it now supports ranging over functions that take a single argument. The single argument must itself be a function that takes zero to two arguments and returns a bool; by convention, we call it the yield function.

```
func(yield func() bool)

func(yield func(V) bool)

func(yield func(K, V) bool)
```
154 天前
回复了 BlAckzkl 创建的主题 生活 胃痉挛
胃痉挛疼的厉害的时候一滴水都喝不下,只能打阿托品舒缓平滑肌
> 需要疯狂重启,才有机会点亮
这个试试关掉 UEFI 里的 fast boot 试试,fast boot 打开的时候关机不会重置硬件的状态
186 天前
回复了 cxhello 创建的主题 Kubernetes k8s 使用调研
如果运维有能力和时间的当然自建。举个例子,k8s 升级后发现新的版本有问题,想回退到上一个版本,很多云上都不支持,自建的话就灵活许多
202 天前
回复了 SeaSaltPepper 创建的主题 Linux Linux 如何找出本地 DNS 请求来源
# ptcpdump is a tcpdump-compatible packet analyzer powered by eBPF, automatically annotating packets with process/container/pod metadata when detectable.
https://github.com/mozillazg/ptcpdump
# audit
auditctl -a exit,always -F arch=b64 -S connect -k "connect-audit"
205 天前
回复了 pudgedoor 创建的主题 健康 有 v 友有颞下颌关节紊乱的问题吗
11 楼老哥都给你答案了,再给你个详细的
git filter-branch --tree-filter 'cp -f dir/a1 dir/a3' --tag-name-filter cat --prune-empty -- --all
kafka JVM 的 thread stack, heap dump 有吗?
dockerd 的 stack, trace 有吗?
没有的话只能靠猜
我 copy/paste 一个别人的答案
https://groups.google.com/g/golang-nuts/c/SNRW-f1F9aM
Copyright Ian Lance Taylor

HeapInUse tells you the amount of system memory allocated to hold Go
objects, which includes space allocated to hold objects that do not
yet exist or that have been released by the garbage collector. pprof
tells you about live memory that is accessible by your program. With
the default GOGC value of 100, in a program in steady state, it's
normal for HeapInUse to be around twice as much as pprof memory, and
that is what you are seeing.
1  2  3  4  5  6  7  8  
关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3737 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 63ms UTC 10:19 PVG 18:19 LAX 02:19 JFK 05:19
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86