Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server12$ hexo server$ hexo s More info: Server Generate static files12$ hexo generate$ hexo g More info: Generating Deploy to remote sites12$ hexo deploy$ hexo d More info: Deployment
zinit on Apple terminal
Problem我很久之前一直在linux上用的omz,后来听说zinit可以自己控制插件的安装,而且启动速度更快,所以就转到使用zinit。起初是一直没什么问题的,但是后来我开始使用Mac。当我从Linux的配置文件转移到Mac时,使用Apple terminal执行命令就出现了: 1update_terminalapp_cwd:5: command not found: omz_urlencode 这样的错误信息,而且伴随着每次命令的执行都会出现。 由于我之前一直在Linux使用kitty作为终端,我也在Mac上下载了它。在kitty中执行命令是就没有出现问题。这让我感觉到很奇怪,我查阅了一些资料,直到看到了这段源码: termsupport.zsh 而且我的zinit正好加载了这个内容。剩下的就是搜索一下源码,找到这个遗失的函数的定义位置,将其加载进来即可。 需要加载的文件为: 1zi snippet OMZL::functions.zsh UPDATE今天用Linux的时候偶然发现不止Apple...
VPP and Pktgen
VPPvpp是一个大三层的交换机,内部操作与交换机类似。 123456show intshow hardwareshow runshow threadclear interfacesshow ? Pktgen-DBDKPktgen是一个打流软件,应该是linux原生的(记不清了),它支持lua语言,也有自己的一套语言(感觉就是特化的C)。最近看了一下将Pktgen打包成image,也把lua的功能加上了,最开始出现了一些问题,后来发现是没有指定版本而导致的不兼容,指定版本后就好了。 找机会把那段代码拷下来,嘿嘿。 主要用到的知识是Docker的Dockerfile吧 12docker