typora-picgo-minio
Brew 安装:
1
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
1 2 3
| brew install git brew install npm brew install iterm
|
代码高亮提示
1 2 3 4 5 6 7 8
| //提示 brew install zsh-autosuggestions
echo "source /opt/homebrew/Cellar/zsh-autosuggestions/0.7.0/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >>~/.zshrc //高亮 brew install zsh-syntax-highlighting
echo "source /opt/homebrew/Cellar/zsh-syntax-highlighting/0.7.1/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >>~/.zshrc
|
1 2 3
| //忽略大小写 autoload -Uz compinit && compinit zstyle ':completion:*' matcher-list 'm:{}={}' 'm:{}={} l:|=* r:|=*' 'm:{}={} l:|=* r:|=*' 'm:{}={} l:|=* r:|=*'
|
rclone
1 2 3 4 5 6 7
| curl https://rclone.org/install.sh | sudo bash brew install macfuse
mkdir -p .config/rclone&wget -O .config/rclone/rclone.conf https://alist.huijia21.com/d/hui/config/linux/rclone.conf
rclone mount ali: ali & umount mac-ali
|
picgo
1 2 3
| npm install picgo -g picgo install minio vim .picgo/config.json
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| { "picBed": { "uploader": "tcyun", "tcyun": { "secretId": "AKIDAKLJ8r5r8E74vdrfv0y29FBXZWIAtRyM", "secretKey": "Qkwyqy0tfEg09A0eFB0fBWgfT5X4axBE", "bucket": "img-1256282866", "appId": "1256282866", "area": "ap-beijing", "path": "", "customUrl": "", "version": "v5" } }, "picgoPlugins": { "picgo-plugin-minio": true } }
|
JDK
下载并安装安装包: jdk11 jdk17
查看已安装jdk cd /Library/Java/JavaVirtualMachines && ls

配置环境变量
1 2 3 4 5 6
| vi .zshrc export JAVA_11_HOME="$(/usr/libexec/java_home -v 11)" export JAVA_17_HOME="$(/usr/libexec/java_home -v 17)"
export JAVA_HOME=$JAVA_11_HOME source ~/.zshrc
|
配置自动切换
1 2 3
| alias jdk11="export JAVA_HOME=$JAVA_11_HOME" alias jdk17='export JAVA_HOME=$JAVA_17_HOME'
|
使用命令切换jdk版本jdk11或者jdk17

快捷键
c+h 隐藏
c+m 最小化
c+n 新建
c+o+c 复制路径
内置键盘配置:

外接键盘设置:

代理
代理http
export http_proxy=”socks5://127.0.0.1:1080”
代理https
export https_proxy=”socks5://127.0.0.1:1080”
代理所有协议,其中包括ftp等
export ALL_PROXY=”socks5://127.0.0.1:1080”
curl -vv https://www.google.com
OneDrive
1 2 3 4 5 6 7 8 9 10 11
| orgdir="/Users/huibaoqi/Desktop" outdir="/Users/huibaoqi/Library/CloudStorage/OneDrive-共享的库-onedrive/Desktop"
sudo rm -r $orgdir ln -s -n $outdir $orgdir
orgdir="/Users/huibaoqi/Downloads" outdir="/Users/huibaoqi/Library/CloudStorage/OneDrive-共享的库-onedrive/Downloads"
sudo rm -r $orgdir ln -s -n $outdir $orgdir
|
修复docker mysql启动
查看/private/var/db/timezone/tz目录,复制现有到提示
sudo cp -rfp /private/var/db/timezone/tz/2023c.1.0 /private/var/db/timezone/tz/2022g.1.0
虚拟机
1 2 3 4 5 6
| N401K-0AK5K-M80QA-0K1HK-CJK64
oobe\bypassnro
Set-ExecutionPolicy RemoteSigned
|
Cursor代理设置
1、看自己代理端口设置
2、Win环境按 ctrl+shitf+p,Mac按对应键打开用户配置,输入open,选择 Open User Settings(JSON)
3、配置代码
1 2
| "cursor.general.disableHttp2": true, "http.proxy": "http://127.0.0.1:1080"
|
// Define main function (script entry)
function main(config, profileName) {
return config;
}