macOS markdown 转 docx

一行代码直接搞定:

➜  ~ pip3 install pypandoc
Collecting pypandoc
Downloading pypandoc-1.15-py3-none-any.whl.metadata (16 kB)
Downloading pypandoc-1.15-py3-none-any.whl (21 kB)
Installing collected packages: pypandoc
Successfully installed pypandoc-1.15
➜  ~ python3 -c "import pypandoc; pypandoc.convert_text(open('input.md').read(), 'docx', format='md', outputfile='output.docx', extra_args=['--standalone'])" 

Xcode安装 Simruntime 17.4 环境

XCode真的是越来越恶心了,升级macOS就必须升级Xcode,旧版本下载下来就没法运行。现在XcodeSimruntime还是分开的,下载了无数次都是失败,这个月的流量都给我干了100GB了 …

Snipaste 2024 04 05 17 20 40

还有个更蛋疼的就是新版本的模拟器巨卡,据说是新版本的模拟器依靠个什么硬件,必须换Mac才能搞定,哎 …

阅读更多

macOS 安装 Cocoapods 卡住

  1. 默认的安装是没有任何反馈的,所以可以添加参数--verbose查看具体的信息

  2. 切换中国源,

gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

Homebrew Unknown command services

macOS运行brew services报错 …

➜  ~ brew services start jenkins-lts
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
error: could not lock config file /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/.git/config: No such file or directory
fatal: could not set 'core.repositoryformatversion' to '0'
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-services /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services --origin=origin --template= --config core.fsmonitor=false` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/services` exited with 1.
阅读更多