常用命令

Git

Generate Full Metadata List

 sf project generate manifest --from-org [Alias]

Jest

Run spectic test scenario

npm run test -- -t "[Test Case Name]"

NodeJS

Install http-server

npm install -g http-server

start http-server

http-server -p 8080 -c-1

Rust

pack wasm

wasm-pack build --target web

VS Code

Goto Function

Ctrl + Shift + o

Windows

Disable System Memory Compression

Disable-MMAgent -mc

Enable System Memory Compression

Enable-MMAgent -mc

解压命令

tar -xf [ZIP file name]

Mac

#  iCloud 同步下来的脚本报 operation not permitted
xattr -d com.apple.quarantine 文件名

# r=4、w=2、x=1
chmod +x 文件名        # 给所有人加执行权限
chmod 755 脚本.sh   # 主人 7(rwx) + 同组 5(r-x) + 其他 5(r-x) 

Ollama

launchctl setenv OLLAMA_ORIGINS "*"
launchctl setenv OLLAMA_HOST "0.0.0.0"
launchctl setenv OLLAMA_FLASH_ATTENTION 1
Launchctl setenv OLLAMA_KEEP_ALIVE "-1"
launchctl setenv OLLAMA_KV_CACHE_TYPE q8_0

launchctl unsetenv

tail -f ~/.ollama/logs/server.log