CC Switch 超好用的AI配置管理工具
什么是 CC Switch
CC Switch 是一款跨平台桌面应用,专为使用 AI 编程工具的开发者设计。它帮助你统一管理 Claude Code、Claude Desktop、Codex、Gemini CLI、OpenCode、OpenClaw 和 Hermes 等受管应用的配置。
/etc/docker/daemon.json
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "log-driver": "json-file", "log-opts": { "max-size": "1000m", "max-file": "3", "compress": "true" }, "registry-mirrors" : [ "https://docker.m.daocloud.io", "https://docker.xuanyuan.me", "https://docker.1ms.run" ] } |
View Details
怎么把AppData移到D盘
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
业务实例如何指定IP(外网IP)注入Nacos
spring.cloud.nacos.discovery.ip = xx
spring.cloud.nacos.discovery.port = xxx
CentOS换源
|
1 2 3 4 5 |
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache yum update -y |
View Details
Centos7安装JDK21
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
tar -zxvf jdk-21_linux-aarch64_bin.tar.gz
export JAVA_HOME=/usr/local/jdk-21.0.2
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
root权限下修改文件权限遇到 chmod: changing permissions of '***': Operation not permitted
lsattr filename
chattr -ia authorized_keys
chattr +ia authorized_keys
Nginx给某个目录单独开启鉴权
location /work/ {
auth_basic "请输入用户和密码";
auth_basic_user_file /etc/nginx/conf.d/password;
sendfile on; # 开启高效文件传输模式(零拷贝)
autoindex on; # 开启目录文件列表
autoindex_exact_size on; # 显示出文件的确切大小,单位是bytes
autoindex_localtime on; # 显示的文件时间为文件的服务器时间
charset utf-8,gbk; # 避免中文乱码
}
View Details代码生成工具(mybatis-plus-generator)
代码生成器,对于我们提升开发效率还是非常有价值的,快速生成代码和避免手误操作,能给我们减少了很多麻烦,又多了一点摸鱼的时间[偷笑]。
以前我用的比较多的是easy code,但是需要安装插件,配置模版,所以多少还是有些不方便。
自从项目改用mybatis-plus后,mybatis-plus-generator就成了它的替代品,很方便,也很灵活,个人推荐使用。