首页
统计
留言
友链
更多
图片
关于
Search
1
软件开发 | flutter使用camera插件在安卓11以上的机器上调用availableCameras无法正常获得usb相机列表
48 阅读
2
设置 Git 全局代理
48 阅读
3
scoop包管理器
46 阅读
4
利用深度搜索求解回溯问题的通用模板
45 阅读
5
Word图片压缩
44 阅读
默认分类
技术开发
杂项
技术分享
相关配置
后端开发
异常处理
软件开发
登录
Search
标签搜索
java
golang
scoop
git
vue
hexo
sublime text
cpp
windows
mc
mod
fabric
mysql
word
计算机网络
go
html
flutter
camera
Wisansiiz
累计撰写
26
篇文章
累计收到
2
条评论
首页
栏目
默认分类
技术开发
杂项
技术分享
相关配置
后端开发
异常处理
软件开发
页面
统计
留言
友链
图片
关于
搜索到
4
篇与
的结果
2026-03-28
入坑mac-1
macOS 包管理器 Homebrew 完全配置指南前言Homebrew 是 macOS 上最受欢迎的包管理工具,被誉为"macOS 缺失的包管理器"。本文将详细介绍 Homebrew 的安装、配置以及常用命令,帮你快速搭建开发环境。一、Homebrew 是什么Homebrew 可以让你轻松安装和管理 macOS 原生没有预装的工具和软件,比如命令行工具(git、node、python 等)、macOS 应用(通过 Homebrew Cask)以及开发库和依赖。二、安装 Homebrew方法一:官方安装(需要梯子)/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"方法二:国内镜像安装(推荐)如果你在大陆地区,官方安装可能很慢,可以使用国内镜像:/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"这个脚本由国内开发者维护,会自动配置清华/中科大等镜像源,下载速度会快很多。验证安装brew doctor三、配置 PATH 环境变量安装完成后,需要将 Homebrew 的路径添加到配置文件:# 编辑配置文件(以 zsh 为例) nano ~/.zshrc # Apple Silicon Mac 添加 eval "$(/opt/homebrew/bin/brew shellenv)" # Intel Mac 添加 # eval "$(/usr/local/bin/brew shellenv)" # 使配置生效 source ~/.zshrc四、常用命令安装与管理包# 安装包 brew install git brew install nodejs # 卸载包 brew uninstall git # 查看已安装的包 brew list # 搜索包 brew search gitHomebrew Cask(安装 GUI 应用)# 安装 GUI 应用 brew install --cask visual-studio-code brew install --cask google-chrome # 卸载 GUI 应用 brew uninstall --cask visual-studio-code五、实用技巧批处理安装常用工具# 一次性安装多个包 brew install git node python go # 一次性安装多个 GUI 应用 brew install --cask visual-studio-code google-chrome其他常用命令# 更新 Homebrew 自身 brew update # 升级所有包 brew upgrade # 查看过时包 brew outdated # 清理旧版本 brew cleanup六、常见问题Q: Intel 和 Apple Silicon Mac 有什么区别?Mac 类型Homebrew 安装路径Intel Mac/usr/local/Apple Silicon/opt/homebrew/Q: Homebrew 命令找不到?source ~/.zshrc七、推荐安装的开发工具# 版本管理 brew install git gh # Node.js 生态 brew install node npm # Python brew install python pyenv # 容器 brew install --cask docker # 编辑器 brew install --cask visual-studio-code jetbrains-toolbox
2026年03月28日
2 阅读
0 评论
0 点赞
2026-02-20
goFrame配置文件的参数
goFrame配置文件的参数项目config# https://goframe.org/docs/web/server-config-file-template server: address: ":8000" openapiPath: "/api.json" swaggerPath: "/swagger" # https://goframe.org/docs/core/glog-config logger: level: "all" stdout: true path: "resource/log" rotate: "daily" rotateBackupLimit: 7 rotateBackupExpire: "7d" rotateBackupCompress: 9 # https://goframe.org/docs/core/gdb-config-file database: logger: - path: "resource/log/sql" level: "all" stdout: true default: link: "pgsql:postgres:postgres@tcp(127.0.0.1:5432)/go_admin" debug: true gToken: # 缓存模式 1 gcache 2 gredis 3 gfile cacheMode: 2 # 是否支持多端登录 multiLogin: true redis: default: address: 127.0.0.1:6379 db: 0 pass: 123456 cache: address: 127.0.0.1:6379 db: 1 pass: 123456 idleTimeout: 600rbac config[request_definition] r = sub, obj, act [policy_definition] p = sub, obj, act [role_definition] g = _, _ [policy_effect] e = some(where (p.eft == allow)) [matchers] m = g(r.sub, p.sub) && keyMatch(r.obj, p.obj) && regexMatch(r.act, p.act)
2026年02月20日
43 阅读
0 评论
0 点赞
2024-07-14
sublime-text中clang-format插件的配置
Custom style{ "BasedOnStyle": "Google", "IndentWidth": 4, "AlignAfterOpenBracket": true, "AlignConsecutiveAssignments": true, //# 连续声明时,对齐所有声明的变量名 "AlignConsecutiveDeclarations": false, "MaxEmptyLinesToKeep": 4, "BreakBeforeBraces": "Attach", "AllowShortIfStatementsOnASingleLine": true, "IndentCaseLabels": true, "ObjCBlockIndentWidth": 4, "ObjCSpaceAfterProperty": true, "ColumnLimit": 0, "AlignTrailingComments": true, "SpaceAfterCStyleCast": true, "SpacesInParentheses": false, "SpacesInSquareBrackets": false, "TabWidth": 4, "UseTab": "Never", "AllowShortBlocksOnASingleLine": false, "AllowShortIfStatementsOnASingleLine": true, "AllowShortLoopsOnASingleLine": true, "BraceWrapping":{ "AfterClass": false, "AfterControlStatement": false, "AfterEnum": false, "AfterFunction": false, "AfterNamespace": false, "AfterObjCDeclaration": false, "AfterStruct": false, "AfterUnion": false, "BeforeCatch": false, "BeforeElse": false, "IndentBraces": false, "SplitEmptyFunction": true, "SplitEmptyRecord": true, "SplitEmptyNamespace": true }, "Cpp11BracedListStyle": true, "ColumnLimit": 80, } User setting{ "binary": "D:\\LLVM\\bin\\clang-format.exe", "style": "Custom", "format_on_save": true, "languages": ["C", "C++"] }
2024年07月14日
16 阅读
0 评论
0 点赞
2024-06-06
codeforces-cpp模板
codeforces-cpp模板#include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define mk make_pair #define endl "\n" #define enld "\n" #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0) #define LCM(a, b) a *b / __gcd(a, b) #define GCD(a, b) __gcd(a, b) #define len(v) int(v.size()) #define all(v) v.begin(), v.end() #define sz 100010 #define mod 1000000007 #define inf 1e18 #define i32 1e9 typedef long long ll; typedef unsigned long long ull; typedef double ld; typedef long double lld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef tuple<int, int, int> iii; typedef vector<int> vi; typedef vector<pii> vpii; typedef vector<ll> vll; typedef vector<ld> vd; void solve() { int n; cin >> n; cout << n << endl; } int main() { fastio; int t = 1; cin >> t; while (t--) solve(); }
2024年06月06日
21 阅读
0 评论
0 点赞