“Casual Notes of a Programmer, Thanks to My Friends for Their Continued Support and Help” A Kai Hugo PaperMod 宇霞信息 黑豹科技
Search
Hugo 入门
创建新站点 hugo new site blog 添加主题 git submodule add \n https://github.com/theNewDynamic/gohugo-theme-ananke.git \n themes/ananke 设置主题 echo "theme = 'ananke'" >> hugo.toml 添加新文章 hugo new content content/go/p-1.md hugo new content content/go/p-2.md hugo new content content/about/a-1.md hugo new content content/about/a-2.md 开启导航菜单 sectionPagesMenu = 'main' 调试模式(热重载) hugo server --disableFastRender 打包 hugo
adb 命令及实用的快捷键
快捷键 电源键 adb shell input keyevent 26 返回键 adb shell input keyevent 4 HOME键 adb shell input keyevent 3 实用命令 查看手机版本号 adb shell getprop|grep release 查看运行的软件包名 1. 先执行 2. adb shell am monitor, 3. 然后打开想要查看宝软件, 观察终端输入的包名 删除系统自带应用 adb shell pm uninstall -k --user 0 包名
docker 运维常用命令
清理 docker 容器产生的日志 cd /var/lib/docker/containers/容器ID cat /dev/null > 容器的-json.log 下载其他系统镜像 docker pull --platform linux/amd64 镜像名称
Nginx 配置 vue 伪静态
nginx 中添加 location / { try_files $uri $uri/ /index.html; } nginx 允许 header 携带下划线, 在 nginx.conf 中 http 内添加 underscores_in_headers on;