2025年7月24日

编译 Rust 项目为 x86_64-unknown-linux-musl

摘要: 一、WSL2 安装与配置 1. 启用 WSL2 和安装 Ubuntu 启用 WSL 和虚拟机平台(仅需一次) 打开 PowerShell(管理员),执行: wsl --install 2. 在 Ubuntu (WSL2) 下准备 Rust 环境 1. 更新系统 sudo apt update && 阅读全文

posted @ 2025-07-24 11:19 zyp_java_net 阅读(117) 评论(0) 推荐(0)

2025年7月13日

常用

摘要: https://github.com/yeongpin/cursor-free-vip/releases 阅读全文

posted @ 2025-07-13 14:22 zyp_java_net 阅读(9) 评论(0) 推荐(0)

2025年7月10日

wsl 安装ubuntu

摘要: wsl --list --all wsl --unregister ubuntu wsl --list --online wsl --install -d Ubuntu curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash -sud 阅读全文

posted @ 2025-07-10 15:39 zyp_java_net 阅读(6) 评论(0) 推荐(0)

2025年6月20日

提取 MySQL 数据库元数据

摘要: -- 查询所有表结构信息(包含注释)SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE, COLUMN_COMMENT FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '您的数据库名'; SELECT c. 阅读全文

posted @ 2025-06-20 10:23 zyp_java_net 阅读(21) 评论(0) 推荐(0)

uv管理python项目

摘要: powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/uv/releases/download/0.7.13/uv-installer.ps1 | iex" windows 环境变量在 C:\Users\Adm 阅读全文

posted @ 2025-06-20 09:15 zyp_java_net 阅读(9) 评论(0) 推荐(0)

2025年6月19日

rust format! 宏 {} 占位符

摘要: 具名参数(Rust 1.58+ 支持)​​ 从 ​Rust 1.58​ 开始,format! 支持在 {} 中指定变量名(需同名局部变量): rust 复制 let name = "Bob"; let age = 25; let msg = format!("Name: {name}, Age: { 阅读全文

posted @ 2025-06-19 09:01 zyp_java_net 阅读(17) 评论(0) 推荐(0)

2025年6月8日

用命令行更新vs code

摘要: # Windows PowerShell(管理员权限) winget upgrade Microsoft.VisualStudioCode # macOS/Linux(通过Homebrew) brew upgrade --cask visual-studio-code 阅读全文

posted @ 2025-06-08 08:30 zyp_java_net 阅读(60) 评论(0) 推荐(0)

2025年6月3日

Cursor 配置中文界面并设置浅色背景的方法

摘要: 1、打开 Cursor 软件,按下键盘组合键Ctrl+Shift+X 2、2在搜索框中输入 “chinese”,搜索中文语言包。 3、在搜索结果中找到合适的中文语言包,点击安装。 4、安装完成后,按下键盘组合键Ctrl+Shift+P,打开命令面板。 5、在命令面板的搜索框中输入 “configur 阅读全文

posted @ 2025-06-03 10:55 zyp_java_net 阅读(1215) 评论(0) 推荐(0)

2025年3月11日

centos系统默认硬件时间是12小时,修改成24小时制,设置日期格式

摘要: 添加临时变量:export LANG= vim /etc/profile export LANG= export DATE_FORMAT="+%Y-%m-%d %H:%M:%S" export TIME_STYLE='+%Y/%m/%d %H:%M:%S' source /etc/profile 使 阅读全文

posted @ 2025-03-11 12:44 zyp_java_net 阅读(145) 评论(0) 推荐(0)

CentOS 修改时区为上海时区

摘要: 1、查看时间各种状态: timedatectl 2、 列出所有时区: timedatectl list-timezones 3、将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间: timedatectl set-local-rtc 1 4、设置系统时区为上海: timedatectl s 阅读全文

posted @ 2025-03-11 10:46 zyp_java_net 阅读(147) 评论(0) 推荐(0)

导航