http测试工具 curl 官网:https://curl.se/ Postman 官网:https://www.postman.com/ Apifox 官网:https://www.apifox.cn/ VSCode插件Thunder Client 用法:https://github.com/rangav/thunder-client-support#usage
常用的http请求分析工具 charles(收费) fiddler(windows免费)
lua面向对象编程 对象定义: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 local logger = require "common.
vim-surround插件用法 vim-surround插件有什么用? vim-surround插件能够帮助我们方便地处理代码中成对的符号,包括:
成对增加符号 成对修改符号 成对删除符号 使用plug插件管理器安装方法 在.vimrc中加入如下配置: 1 Plug 'tpope/vim-surround' 如何使用vim-surround? 普通模式使用vim-surround-添加成对符号 普通模式在单词2边加上双引号:
1 ysiw" 普通模式在整行加上双引号:
1 yss" 普通模式使用vim-surround-修改成对符号 普通模式在单词2边加上双引号改为单引号:
1 cs"' 普通模式使用vim-surround-删除成对符号 普通模式删除单词2边双引号:
1 ds" 参考链接 https://github.com/tpope/vim-surround https://zhuanlan.zhihu.com/p/158604935/ 总结 上面列举的是个人觉得比较实用的几种用法,更多用法可以参考一下上面的参考链接。
nginx如何检查配置文件是否正确? nginx如何检查配置文件是否正确?当然是靠自己了,只有自己才知道自己想用nginx干啥,当然你还可叫上你的同事、朋友帮你看看配置是否有错。nginx其实可以帮助你检查一些基础的语法错误。命令很简单:
1 nginx -t -c /etc/nginx/nginx.conf 有些情况线上需要修改配置文件怎么办? 保险的做法是:
先检查一下配置文件 1 nginx -t 然后热加载配置 1 nginx -s reload 最后去检查一下业务是否能够正常访问
ranger如何配置预览图片? ranger的配置文件在目录~/.config/ranger/rc.conf中,配置预览只需要在配置文件中加入2项配置即可:
1 2 set preview_images true set preview_images_method w3m ranger替代品 fff 对ubuntu不是很友好,不能直接安装,需要源码安装
安装 1 2 3 4 5 6 7 KISS Linux (based): kiss b fff FreeBSD: pkg install fff Haiku: pkgman install fff macOS: brew install fff Nix: nix-env -iA fff Void Linux: xbps-install -S fff Arch Linux: pacman -S fff github: https://github.com/dylanaraps/fff vim/neovim中使用fff: https://github.com/dylanaraps/fff nnn lf 使用go语言编写,跨平台,非常友好。
下载地址:https://github.com/gokcehan/lf/releases 更多 其它ranger的使用技巧可以参考这篇文件: https://zhuanlan.zhihu.com/p/476289339