12 2024 档案

摘要:前言:git 回滚指定commit重新提交 情况介绍 当前git-study的代码仓库的commit记录,如下图所示 git log命令行中查看历史commit记录 回滚到指定提交的commit记录,这里的记录为a57e9185fe8a960e3a866c775acba0e5b7647c51 强制推 阅读全文
posted @ 2024-12-31 15:07 zpchcbd 阅读(13) 评论(0) 推荐(0) 编辑
摘要:前言:patch 动态链接库权限维持 参考文章:https://github.com/NixOS/patchelf 参考文章:https://xz.aliyun.com/t/13671 LD_PRELOAD 实验模拟 #include <dlfcn.h> #include <stdio.h> #in 阅读全文
posted @ 2024-12-27 11:24 zpchcbd 阅读(16) 评论(0) 推荐(0) 编辑
摘要:前言:git blame 花活 参考文章:https://www.banyudu.com/posts/git-assassin-defend 配置如下信息,目的是伪造luyi用户进行提交commit信息 git config --global user.name luyi git config -- 阅读全文
posted @ 2024-12-25 15:02 zpchcbd 阅读(5) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-22 00:19 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
摘要:前言:git未push提交commit将其合并 场景1 场景:自己碰到这种情况,当第一次git add file1后进行提交git commit,但是此时还没有进行git push,后续发现还需要再次git add file2,此时再次git commit之后,最后进行push的则会出现两次comm 阅读全文
posted @ 2024-12-20 15:16 zpchcbd 阅读(78) 评论(0) 推荐(0) 编辑
摘要:前言:gitignore编写准则 参考文章:https://github.com/github/gitignore gitignore x 相关语言gitignore模版 这边可以访问https://github.com/github/gitignore查看各个语言推荐的gitignore编写模版, 阅读全文
posted @ 2024-12-20 14:25 zpchcbd 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-19 17:52 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
摘要:前言:Jenkins 整合 SonarQube代码质量自动扫描 参考文章:https://cloud.tencent.com/developer/article/1982589 x 阅读全文
posted @ 2024-12-17 13:54 zpchcbd 阅读(5) 评论(0) 推荐(0) 编辑
摘要:前言:开发过程中需要用到,这边实践操作alembic数据库迁移增删改查 根据模型model类生成数据表 alembic revision --autogenerate -m "initial migration" 执行完上面的命令之后,alembic目录中会多出对应commit的文件,如下图所示 应 阅读全文
posted @ 2024-12-10 23:53 zpchcbd 阅读(124) 评论(0) 推荐(0) 编辑
摘要:前言:Knative Eventing概念与核心组件实现事件驱动,还有记录一些坑点 参考文章:https://knative.dev/docs/serving/request-flow/ 参考文章:https://zhuanlan.zhihu.com/p/660488519 关于Knative Kn 阅读全文
posted @ 2024-12-10 16:03 zpchcbd 阅读(12) 评论(0) 推荐(0) 编辑
摘要:前言:开发技巧,指数退避策略实现重试笔记 参考文章:https://xiaorui.cc/archives/5836 业务场景 下游的服务时不时的阻塞,为了确保数据一致性,不断的重试请求,连续高速率请求会导致服务器处理资源的浪费和阻塞,这里的话通过backoff指数退避算法能够有效的节省资源实现重试 阅读全文
posted @ 2024-12-10 02:07 zpchcbd 阅读(165) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-06 14:04 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-06 13:22 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-06 03:19 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
摘要:前言:uprobe用户态调试bash的readline调用 uprobe uprobe是一种用户空间user space探针,uprobe探针允许在用户空间程序中动态插桩,插桩位置包括:函数入口、特定偏移处,以及函数返回处。 当我们定义uprobe时,内核会在附加的指令上创建快速断点指令(x86机器 阅读全文
posted @ 2024-12-02 22:21 zpchcbd 阅读(19) 评论(0) 推荐(0) 编辑
摘要:前言:tracepoint内核调试sys_enter_openat系统调用 参考文章:https://linux.die.net/man/2/openat 参考文章:https://eunomia.dev/zh/tutorials/4-opensnoop/ sys_enter_openat系统调用 阅读全文
posted @ 2024-12-02 14:08 zpchcbd 阅读(40) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2024-12-02 01:38 zpchcbd 阅读(0) 评论(0) 推荐(0) 编辑
摘要:前言:kprobe内核调试unlink系统调用 参考文章:https://www.kernel.org/doc/html/latest/trace/kprobes.html 参考文章:https://linux.die.net/man/2/unlinkat 参考文章:https://github.c 阅读全文
posted @ 2024-12-02 00:26 zpchcbd 阅读(32) 评论(0) 推荐(0) 编辑
摘要:前言:解决某个进程强制kill的问题,这边记录下搭建ebpf环境搭建及tracepoint内核调试sys_enter_write 参考文章:https://www.cnxct.com/an-applied-introduction-to-ebpf-with-go/ 搭建eunomia-bpf编译工具 阅读全文
posted @ 2024-12-01 23:54 zpchcbd 阅读(35) 评论(0) 推荐(0) 编辑
摘要:前言:扫描器如何减少发包次数 参考文章:https://blog.lyle.ac.cn/2023/11/25/single-tcp-service-probe/ x 阅读全文
posted @ 2024-12-01 16:55 zpchcbd 阅读(5) 评论(0) 推荐(0) 编辑
摘要:前言:开发准则,rebase和merge的不同点笔记 rebase环境 x merge环境 x 阅读全文
posted @ 2024-12-01 12:28 zpchcbd 阅读(2) 评论(0) 推荐(0) 编辑
摘要:前言:k8s ACK 容器服务学习笔记 部署k8s ACK 阿里云的k8s支持自动化部署,在部署完成之后通过控制台的kubeconfig配置即可进行连接使用,如下图所示 将对应的kubeconfig存储到本地的$HOME/.kube/config进行保存,如下图所示 接着通过kubectl工具来进行 阅读全文
posted @ 2024-12-01 03:36 zpchcbd 阅读(11) 评论(0) 推荐(0) 编辑
摘要:前言:规范代码提交的命名以及流程,开发者从创建分支开发到合并主分支的整体交付流程 A开发者创建git项目 A开发者在main分支中编写了hello.py文件,内容如下所示 # coding=utf-8 def test(): print("this is test func") if __name_ 阅读全文
posted @ 2024-12-01 03:35 zpchcbd 阅读(7) 评论(0) 推荐(0) 编辑
摘要:前言:开发中需要用到k8s集群部署,为了更好的了解k8s,学习etcd未授权到控制k8s集群 参考文章:https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd/ 参考文章:https://mp. 阅读全文
posted @ 2024-12-01 03:25 zpchcbd 阅读(26) 评论(0) 推荐(0) 编辑