ProjectA
ProjectA
MAC设置显示隐藏文件
MAC设置显示隐藏文件# Mac显示“隐藏文件”命令:defaults write com.apple.finder AppleShowAllFiles -bool true# Mac隐藏“隐藏文件”命令:defaults write com.apple.finder AppleShowAllFiles -bool false
RN环境配置
RN环境配置nvm配置nvm下载安装
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm配置环境
# 打开~/.zshrcopen -e ~/.zshrc# 在zsh配置文件中添加如下代码export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm# 刷新配置文件source ~/.zshrc
nvm常用命令:
nvm install :安装指定版本的Node.js ...
zsh安装及配置
zsh安装及配置安装Homebrew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
配置brew(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/mukaikai/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
安装zshmacOS 安装 zsh
brew install zsh
zsh设置查看系统已有的 shell
cat /etc/shells
输出结果:
/bin/bash/bin/csh/bin/dash/bin/ksh/bin/sh/bin/tcsh/bin/zsh
以上输出结果可以看到已经有 zsh 了
更换默认 shell
chsh -s /bin/zsh
重启系统!
查看当前使用的 shel ...
Mac系统Python报错
在Mac系统上执行python文件会报错提示权限不够或者找不到文件
Mac安装软件“已损坏,无法打开.....”问题
在Mac上安装一些网站软件时候,提示“应用程序已损坏。您应该将他移到废纸篓。”
Typora配置PicGo-Core图床
Typora配置PicGo-Core图床配置PicGo
安装PicGo
npm install picgo -g
设置PicGo
picgo set uploader
secretId: API密钥的SecretId(腾讯云-访问管理-访问密钥)
secretKey: API密钥的SecretKey(腾讯云-访问管理-访问密钥)
appId: API密钥对应的APPID(腾讯云-访问管理-访问密钥)
bucket: 存储桶名称
area”: 存储桶所属区域,例如ap-shanghai
path”: 存储路径
version: v5
配置Typora
Git拉取报RPC&Bad Owner
Git拉取报RPC&Bad Owner报错信息error: RPC failed; curl 18 transfer closed with outstanding read data remainingfetch-pack: unexpected disconnect while reading sideband packetfatal: early EOFfatal: fetch-pack: invalid index-pack output
致命错误:无法访问 ' ' :transfer closed with outstanding read data remaining
描述之前在从git远程库拉取项目的时候,出现了如上错误,因为拉取时间过长才报的错,所以猜测是内存或者项目过大导致的无法拉取,所以搜了搜,网上说是解决方案有三种,一种是增大缓存区;二是浅克隆,也就是说克隆的时候,先少克隆一些,比如只克隆每个文件只取最近一次提交,不是整个历史版本,三是换协议.
具体解决方案如下:
加大缓存区 git config –global http.po ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post$ hexo new "My New Post"
More info: Writing
Run server$ hexo server
More info: Server
Generate static files$ hexo generate
More info: Generating
Deploy to remote sites$ hexo deploy
More info: Deployment
Particles.js库无法正常显示
报错信息:particles.min.js:9 uncaught typeerror:cannot read properties of null