linux 下脚本中显示对话框
手册:https://help.gnome.org/users/zenity/stable/index.html.en 不少发行版本中集成了 zenity 例子 显示一条信息 zenity --info --title "提示" --text="显示信息" 常规选项 --title=title 标题 --wi…
2025-8-19 18:06
|
23
|
|
204 字
|
4 分钟
Avalonia 打包应用
以 Ubuntu 下打包为例子 dotnet-packaging 工具地址 https://github.com/quamotion/dotnet-packaging 安装工具 dotnet tool install --global dotnet-deb 项目目录中配置项目 dotnet deb install 生成安装包 dotnet deb …
2025-8-19 15:22
|
24
|
|
174 字
|
3 分钟
ubuntu 执行定时任务
临时执行定时任务 at 精度只有一分钟 安装 sudo apt install at 执行定时合集 echo "sudo systemctl suspend" | at 23:00 2025-04-05 echo "sudo systemctl suspend" | at 23:00 echo 'e…
2025-8-11 1:17
|
111
|
|
78 字
|
几秒读完
git 签出部分目录中文件
一个 git 学习站 https://learngitbranching.js.org/?locale=zh_CN 不需要 git 历史数据 优点: 非常轻量,只传输你需要的文件内容。 不包含 .git 目录,适合部署或分发。 简单一些,但是 github 不允许这么操作,要使用 sparse-checkout 的方式 # 从远程仓库获取某个目录并…
2025-8-02 0:21
|
167
|
|
166 字
|
2 分钟
AxCrypt 文件加密工具免费的新版本
下载地址 (有 1.x r 版本) https://www.axantum.com/download-xecrets 或是直接下载开源的命令行版本 https://github.com/xecrets/xecrets-cli # 加密 XecretsCli -p pass -e file file.axx # 加密 ,输出时间戳 XecretsCl…
2025-7-29 1:13
|
182
|
|
50 字
|
1 分钟内
mock api
Apifox https://apifox.aosom.com/help/api-mock/intro-to-mock https://www.bilibili.com/video/BV1BZ4y1B7tD/?t=5.337083&bvid=BV1BZ4y1B7tD mockapi.io 手册 https://github.com/mockapi-…
2025-7-23 17:15
|
131
|
|
127 字
|
1 分钟内
Ubuntu 下运行 wps 提示缺少字体
提示缺少 Symbol, Wingdings, Wingdings 2, Wingdings 3, MT Extra 等字体 从 https://github.com/udoyen/wps-fonts 下载字体 创建字体目录 mkdir -p ~/.fonts 复制字体 cp *ttf ~/.fonts/ 刷新字体缓存 fc-cache -fv 再…
2025-7-22 18:15
|
210
|
|
63 字
|
几秒读完
ubuntu ps1 设置网卡参数
cat /opt/bin/NetworkParamUpdater.ps1 # NetworkParamUpdater.ps1' -Auto 将当前连接设置为自动分配 ip # NetworkParamUpdater.ps1' -Ip '192.168.1.1' 将当前连接设置为指定 ip [CmdletBin…
2025-7-15 13:22
|
262
|
|
151 字
|
8 分钟
shell 中调用 AI
微软的方案 https://learn.microsoft.com/zh-cn/powershell/utility-modules/aishell/overview?view=ps-modules windows 可以直接整合入 pwsh, linux 目前只能运行独立版本 linux 下,直接下载,解压缩,运行 aish。或是加入到全局路径中 …
2025-7-14 1:20
|
283
|
|
130 字
|
2 分钟
.net 设置机密
# 在项目中初始化, 会在项目中增加一项 user_secrets_id dotnet user-secrets init # 机密保存在以下文件 %APPDATA%\Microsoft\UserSecrets\<user_secrets_id>\secrets.json ~/.microsoft/usersecrets/<use…
2025-7-08 0:34
|
272
|
|
28 字
|
2 分钟