Skip to content

Instantly share code, notes, and snippets.

View pacoxu's full-sized avatar
🥊
no big project yet, still low review qualities 💪

Paco Xu pacoxu

🥊
no big project yet, still low review qualities 💪
View GitHub Profile
@pacoxu
pacoxu / gist:eff6cd290cf28fdebd98d8036c03c002
Created October 30, 2024 09:52
开源工具与项目开发 分享后讨论
有什么问题或者想法,都可以在这里讨论,谢谢。
W1018 07:27:12.724757 1105 e2e_node_suite_test.go:207] /proc/mounts: /dev/root / ext2 ro,relatime 0 0
W1018 07:27:12.724794 1105 e2e_node_suite_test.go:207] /proc/mounts: devtmpfs /dev devtmpfs rw,nosuid,noexec,relatime,size=2004204k,nr_inodes=501051,mode=755 0 0
W1018 07:27:12.724806 1105 e2e_node_suite_test.go:207] /proc/mounts: proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
W1018 07:27:12.724815 1105 e2e_node_suite_test.go:207] /proc/mounts: sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
W1018 07:27:12.724825 1105 e2e_node_suite_test.go:207] /proc/mounts: securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
W1018 07:27:12.724834 1105 e2e_node_suite_test.go:207] /proc/mounts: tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
W1018 07:27:12.724843 1105 e2e_node_suite_test.go:207] /proc/mounts: devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
W1018 07:27:12.724857 1105 e2e_node_suite_tes
username reason
k8s-publishing-bot bot account
k8s-infra-ci-robot bot account
k8s-github-robot bot account
k8s-ci-robot bot account
k8s-ci-robot bot account
k8s-publishing-bot bot account
thelinuxfoundation bot account
k8s-infra-cherrypick-robot bot account
{"diagram":{"elements":{"elements":{"ejwwLGGsIN841189":{"textBlock":[],"points":[{"x":406,"y":791},{"x":406,"y":691}],"dataAttributes":[],"props":{"zindex":32},"linkerType":"broken","lineStyle":{"endArrowStyle":"solidArrow"},"name":"linker","from":{"x":215,"y":791,"angle":3.141592653589793,"id":"wGAwQcKGFu987537"},"id":"ejwwLGGsIN841189","text":"","to":{"x":507,"y":691,"angle":0,"id":"tpqVonsjyK581824"},"locked":false,"group":""},"LguUyQBiTF309440":{"textBlock":[{"location":0.5,"text":"下面 Probe、Hook"}],"props":{"zindex":62},"dataAttributes":[],"points":[{"x":827.75,"y":990.25},{"x":827.75,"y":990.25}],"linkerType":"broken","lineStyle":{"endArrowStyle":"none"},"name":"linker","from":{"x":3.75,"y":990.25},"to":{"x":1651.75,"y":990.25},"id":"LguUyQBiTF309440","text":"下面 Probe、Hook","locked":false,"group":""},"IUlalvUdsU456851":{"parent":"","link":"","shapeStyle":{"alpha":1},"textBlock":[{"position":{"w":"w-20","x":10,"h":"h","y":0},"text":"Sandbox<div>(Container)</div>"}],"anchors":[{"x":"w/2","y":"0"},{"x":"w/2
@pacoxu
pacoxu / gist:e5049e44f9a6d8dc112fecb85d7161b9
Created July 14, 2023 04:42
#113245 Tim's demo code to check dup ports
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
type ContainerPort struct {
Port int32
Protocol string
HostPort int32
Install
I0224 18:07:50.738072 97872 initconfiguration.go:104] detected and using CRI socket: /var/run/dockershim.sock
I0224 18:07:50.739159 97872 interface.go:400] Looking for default routes with IPv4 addresses
I0224 18:07:50.739187 97872 interface.go:405] Default route transits interface "ens160"
I0224 18:07:50.742019 97872 interface.go:208] Interface ens160 is up
I0224 18:07:50.742251 97872 interface.go:256] Interface "ens160" has 2 addresses :[10.6.177.40/16 fe80::c46f:119c:6e9c:cf7c/64].
I0224 18:07:50.742318 97872 interface.go:223] Checking addr 10.6.177.40/16.
I0224 18:07:50.742344 97872 interface.go:230] IP found 10.6.177.40
I0224 18:07:50.742367 97872 interface.go:262] Found valid IPv4 address 10.6.177.40 for interface "ens160".
I1224 06:44:17.492696 1 controller_utils.go:593] Controller app1-859d7f4f9c created pod app1-859d7f4f9c-9wjtg
I1224 06:44:17.493286 1 event.go:291] "Event occurred" object="default/app1-859d7f4f9c" kind="ReplicaSet" apiVersion="apps/v1" type="Normal" reason="SuccessfulCreate" message="Created pod: app1-859d7f4f9c-9wjtg"
I1224 06:44:17.493969 1 graph_builder.go:627] GraphBuilder process object: v1/Pod, namespace default, name app1-859d7f4f9c-9wjtg, uid 2d394ca3-4712-4a4c-991b-1ebffc3b3bf2, event type add, virtual=false
I1224 06:44:17.493991 1 replica_set.go:376] Pod app1-859d7f4f9c-9wjtg created: &v1.Pod{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ObjectMeta:v1.ObjectMeta{Name:"app1-859d7f4f9c-9wjtg", GenerateName:"app1-859d7f4f9c-", Namespace:"default", SelfLink:"", UID:"2d394ca3-4712-4a4c-991b-1ebffc3b3bf2", ResourceVersion:"1937589", Generation:0, CreationTimestamp:v1.Time{Time:time.Time{wall:0x0, ext:63744389057, loc:(*time.Location)(0x6f30340)}}, DeletionTimestamp:(*v1.Time)(n
@pacoxu
pacoxu / cover.html
Created December 17, 2020 13:32
Coverage Report 2020-12-17 Kubernetes
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Go Coverage Report</title>
<style>
body {
background: black;
color: rgb(80, 80, 80);
@pacoxu
pacoxu / 📊 Weekly development breakdown
Last active February 14, 2021 00:53
waka dashboard
Other 13 hrs 8 mins ███████████████████▏░ 91.3%
Go 1 hr 8 mins █▋░░░░░░░░░░░░░░░░░░░ 8.0%
Markdown 3 mins ░░░░░░░░░░░░░░░░░░░░░ 0.4%
TOML 2 mins ░░░░░░░░░░░░░░░░░░░░░ 0.2%
Text 1 min ░░░░░░░░░░░░░░░░░░░░░ 0.2%