cfanzp

个人Linux开发笔记

常用工具下载地址汇总

常用工具下载地址汇总 在线工具 tool.lu: https://tool.lu 智能命名工具 CODELF: https://unbug.github.io/codelf ssh远程连接 WindTerm: https://github.com/kingToolbox/WindTerm/releases git: https://git-scm.com/download/ windows版本的安装后会自带ssh客户端,配合.ssh/文件夹下的config文件使用也是非常方便的。 Xshell: https://www.xshell.com/zh/xshell/ git git: https://git-scm.com/download/ linux常用软件 截图工具flameshot: https://github.com/flameshot-org/flameshot wechat: https://www.ubuntukylin.com/applications/106-cn.html 飞书: https://www.feishu.cn/download 有道云笔记: https://note.youdao.com/download.html 流程图软件Dia: https://zhuanlan.zhihu.com/p/366116011 wps: https://www.wps.cn/product/wpslinux 安装:sudo apt install ./wps-office_11.1.0.11664_amd64.deb 字体问题: https://zhuanlan.zhihu.com/p/145114644 字体下载,链接: https://pan.baidu.com/s/18PWLr_t6Lub9PoEg9zUSzg 提取码: isiz linux开发工具 httpperf: https://github.com/httperf/httperf 教程: https://www.cnblogs.com/cllovewxq/p/5533487.html 搜索资源工具 Bing: https://cn.bing.com/ DuckDuckGo: https://duckduckgo.com/ 不搜集用户信息,没有广告 Stack Overflow: https://stackoverflow.com/ 技术问题可以直接查这个网站 Gitlogs: https://www.gitlogs.com/ 搜索GitHub项目的搜索引擎 jiumo search: https://www.jiumodiary.com/ 文档搜索引擎 鸠摩搜书 pexels: https://www.pexels.com/ 高质量的图片网站。 在线画图,ProcessOn: https://www.processon.com/ draw.io: https://app.

Markdown需要掌握的基础

markdown 基础 标题 1 2 3 4 5 6 # 标题1 ## 标题2 ### 标题3 #### 标题4 ##### 标题5 ###### 标题6 效果: 标题1 标题2 标题3 标题4 标题5 标题6 分割线 可以使用三个及以上的星号、减号、下划线来表示一条分割线 1 2 3 --- *** ___ 效果: 删除线 1 ~~ del line ~~ 效果: del line 图片链接 1 ![公众号二维码](/images/gzh.jpeg#pic_center "公众号") 效果: 公众号 脚注 1 2 cfanzp主页[^cfanzp] [^cfanzp]: 主页地址:[https://cfanzp.com](https://cfanzp.com) 效果: cfanzp主页1 列表 无序列表 1 2 - item1 - item2 效果: item1 item2 有序列表 1 2 1.

弱网测试环境的搭建

弱网测试环境的搭建 最近有一个线上项目反馈在弱网环境下,容易掉线。我们自己测试的时候网络环境都还比较好,想模拟一下弱网环境,这里介绍一下几个方案。 路由器限速 路由器可以直接对某个设备进行限速,这个登录路由器就可以配置了,方法比较简单,这里就不赘述了。 chrome开发者工具 chrome开发者工具自带网络限速功能,可以限制速度,可以自定义各种网络带宽,使用比较方便。 使用Charles设置代理限速 这种方法配置起来相比前面2种情况,稍微麻烦一些,另外有一个缺点,websockt限速好像没办法设置(Charles 4.6.2)。

lua中的self

lua中的self self的用法 使用:定义的函数默认接收第一个参数是self 使用:调用函数默认传入第一个参数是调用者 使用.定义和调用函数不会接受或传入self :为我们省下了一个参数,下面例子中的A:Add()与A.Add(t)是等价的 1 2 3 4 5 6 7 local A = {x = 1, y = 2} function t:Add() return (self.x + self.y) end print(A:Add()) print(A.Add(A))

git tag排序,解决默认看到的最后一个不是最新的tag的问题

git tag排序,解决默认看到的最后一个不是最新的tag的问题 git tag的问题 在使用git tag查看标签的时候,默认是按tag的字符串排序的,只有命名的顺序与字符串排序相同的时候,显示在最后的tag才是最新的,例如,有下面几个标签: 1 2 v0.9.0 v0.10.0 v0.10.0按字符串排序会默认显示在上面: 1 2 v0.10.0 v0.9.0 git tag加上排序 让git按照打标签的时间进行排序,加上参数–sort=taggerdate 1 git tag -n --sort=taggerdate 为了方便平时输入在.gitconfig上加上缩写 1 2 [alias] stag = tag -n --sort=taggerdate 1 git tag -n --sort=taggerdate

Hugo学习笔记

hugo学习笔记 hugo 下载 linux,ubuntu 1 wget https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_0.101.0_Linux-64bit.tar.gz 扩展版本 1 wget https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_extended_0.101.0_Linux-64bit.tar.gz macos 1 wget https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_0.101.0_macOS-64bit.tar.gz 如果是需要使用custom.scss配置需要使用扩展版本: 1 wget https://github.com/gohugoio/hugo/releases/download/v0.101.0/hugo_extended_0.101.0_macOS-64bit.tar.gz m1 https://github.com/gohugoio/hugo/releases/download/v0.111.3/hugo_extended_0.111.3_darwin-universal.tar.gz hugo集成搜索 hugo在集成搜索的时候还是有多种方案的,LoveIt默认的方案个人不太喜欢。这里个人测试了hugo-search-fuse-js的方案和gcse的方案,目前在使用的是hugo-search-fuse-js的方案。 注意 hugo-search-fuse-js 在配置搜索时,默认显示有点不正常,需要添加一点自定义的css样式到_custom.scss中。 这里的hugo需要安装扩展版本的。 hugo集成hugo-search-fuse-js hugo-search-fuse-js:https://github.com/kaushalmodi/hugo-search-fuse-js 添加站内搜索(gcse) mac m1 hugo-search-fuse-js报错 1 Error: Error building site: failed to render pages: render of "page" failed: "/linux_dev_blog/themes/hugo-search-fuse-js/layouts/_default/search.html:124:66": execute of template failed: template: _default/search.html:124:66: executing "footer" at <fingerprint>: error calling fingerprint: <nil> can not be transformed 默认启动端口 1313 hugo推荐主题LoveIt LoveIt LoveIt主题使用demo网站 https://hugoloveit.