-
Mission_control_is_constantly_changing_the_positions_of_windows
https://www.reddit.com/r/MacOS/comments/cuhcz2/mission_control_is_constantly_changing_the/ I'll bet you have "group windows by application" turned on in Mission Control preferences. If so, try turning that off. I think the reason why this happens when that...
-
Ebpf Permission Denied
报错: load program: permission denied: Unrecognized arg#0 type PTR ... ; bpf_map_update_elem(&birth, &pid, &v, BPF_ANY); 20: (18) r1 = 0xffff89a90e035c00 22: (bf) r2 = r7 23: (b7) r4 = 0...
-
tags in docker image name
In docker-Context here are the important informations you need. Alpine Url: https://alpinelinux.org/ Imagename: alpine Shorty: Its very small. Packagemanger: apk Shells: /bin/sh Size: Few MBs - current tag needs 2.7MB...
-
难受
过的很难受,只想得到父母的支持。
-
什么是爱
付出自己觉得珍贵的东西才叫爱。 觉得时间珍贵,还愿意付出时间,这叫爱。 觉得钱珍贵,还愿意花钱,这叫爱。
-
最大缺点
我最大的缺点就是自己有很多缺点,却不能容忍别人的缺点。
-
Golang Runtime Memory
https://pkg.go.dev/runtime#MemStats 一个例子 # runtime.MemStats # Alloc = 0.46 GB # TotalAlloc = 427382 GB # Sys = 6.25 GB # Lookups = 0 # Mallocs = 1864 # Frees =...
-
Golang Replace
github.com/spf13/cast v1.4.1 有问题,想改用 oasisprotocol/cast v0.0.0-20220606122631-eba453e69641 但是直接在代码里面使用后者会报错,因为后者的代码里面还是用的 spf13/cast,和项目名字对不起来。 但是 go.mod 里面使用 replace 可以做到使用 oasisprotocol/cast replace github.com/spf13/cast v1.4.1 => github.com/oasisprotocol/cast v0.0.0-20220606122631-eba453e69641
-
github-workflow
写了一个新的 workflow,可以自动 release,并上传打包好的 Binary,舒服一些了。 并在这个基础上修复了一下 Bug。
-
harbor devcenter-api 测试报 csrf 错误
harbor 2.0 版本 harbor devcenter-api 页面测试某些 API(不确定是不是全部 POST 请求) 的时候,报错 ‘CSRF token invalid’ 直接 curl 没问题。 查下来,是因为请求的 Cookie 里面带 sid 字段,Harbor 认为这是一个带 session 的请求,就不会跳过 csrf 验证。