Skip to content

Instantly share code, notes, and snippets.

@hyoban
Last active August 12, 2025 01:10
Show Gist options
  • Save hyoban/7943d4c59c43b79d3f8388671437fe11 to your computer and use it in GitHub Desktop.
Save hyoban/7943d4c59c43b79d3f8388671437fe11 to your computer and use it in GitHub Desktop.
Hyoban's dotfiles
[user]
name = Stephen Zhou
email = [email protected]
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDg/3T8nsnp4yqbQ0PFTs2rFZZZ7z6WFzIkp+r5EXdQB
[init]
defaultBranch = main
[gpg]
format = ssh
[commit]
gpgsign = true
[gpg "ssh"]
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
# https://ohmyz.sh
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
export ZSH="$HOME/.oh-my-zsh"
# https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/README.md
# git clone https://github.com/hyoban/spaceship-node-package-manager.git $ZSH_CUSTOM/plugins/spaceship-node-package-manager
# git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=(
git
spaceship-node-package-manager
zsh-autosuggestions
zsh-syntax-highlighting
)
# https://github.com/spaceship-prompt/spaceship-prompt
# git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
# ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
ZSH_THEME="spaceship"
source $ZSH/oh-my-zsh.sh
spaceship add node_package_manager --before exec_time
eval "$(mise activate zsh)"

在重置系统之前

  • 反激活 surge

相信的同步服务

  • Google Chrome(拓展)(可以完全不使用)
  • 1Password(密码、软件购买记录、Git SSH Key)
  • VSCode(设置、插件)(备份于 Gist,可以完全不使用)
  • Folo(全部订阅信息)

奇怪的使用习惯

  • 不收藏,不光是浏览器收藏,各个平台也是一样
  • 不留历史记录,不依赖浏览器地址栏补全
  • 聚合关注的信息到 RSS 全部使用 Folo,(Twitter 还没有)

软件列表

基本上来说软件安装完了,就无法恢复安装之前的状态,清理卸载残留是没有意义的,不如隔一段时间重置系统。不要花时间来清理,只要保持只安装不可以避免的软件即可。

Surge

暂时未找到体验上和 Surge 一样好用的软件,不要折腾这个!

Homebrew

  • 注意安装完写入环境变量

Chrome

  • 登录同步
  • 1Password,AdGuard AdBlocker,File Icons for GitHub and GitLab,Grammarly,Immersive Translate,MetaMask,Refined GitHub,RSSHub Radar,Tampermonkey,划词翻译
  • 不用 Brave、Arc,不好用

Raycast

CleanShot X

  • 自动保存截图到剪贴板

1Password

  • 注意下载的是安装器
  • 设置拓展和 mac 互通
  • 拓展关闭填充后自动提交
  • 关闭开机自启

vscode

  • 注意下载 arm only 版本
  • 设置同步
  • 添加 code 命令

开发

  • 设置 gitconfig 和 1password agent
  • git ssh over https
  • 设置终端
  • 安装 node corepack
  • 拉代码,测试 git
  • 安装字体
  • gh cli、npm 登录
  • eas 登录

XCode

非必要不安装(可使用 ci 来构建 expo dev client)

  • brew install CocoaPods fastlane
  • xcode 安装完可能需要设置里选一下路径

https://docs.expo.dev/get-started/set-up-your-environment

OrbStack

非必要不安装(在家可以连 nas 的 docker 服务)

Mac Mouse Fix

  • 关闭按键绑定

Supercharge

Tweaks

  • Prevent accidental quits by quitting apps with
  • Prevent Dock from showing when moving mouse to screen edge
  • Context menu items: Airdrop, New Text File, Open in terminal, Open in App (VS Code)
  • Show hidden files
  • Automatically clear clipboard for improved privacy
  • Quit an app when closing its last window
  • Offer to install apps from mounted DMG files

Shortcuts

  • Dark mode
  • Start cleaning mode (beta)

iStat Menus

大多数情况下不要安装这个,目前只是为了监控 Mac mini 跑 GitHub Runner 的情况(CPU,外接硬盘容量、温度)。

[tools]
bun = "latest"
node = "lts"
"npm:@antfu/ni" = "latest"
"npm:eas-cli" = "latest"
[settings]
idiomatic_version_file_enable_tools = []
{
"workbench.editor.limit.enabled": true,
"workbench.editor.limit.perEditorGroup": true,
"workbench.editor.limit.value": 5,
"workbench.sideBar.location": "right",
"breadcrumbs.enabled": false,
"editor.accessibilitySupport": "off",
"editor.bracketPairColorization.enabled": false,
"editor.minimap.enabled": false,
"editor.renderLineHighlight": "none",
"security.workspace.trust.enabled": false,
"window.commandCenter": false,
"window.restoreWindows": "none",
"workbench.layoutControl.enabled": false,
"workbench.startupEditor": "none",
"workbench.tips.enabled": false,
"editor.fontFamily": "Monolisa Variable",
"editor.fontSize": 15,
"terminal.integrated.fontSize": 15,
"editor.fontVariations": true,
"editor.lineHeight": 25,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "comment",
"settings": {
"fontStyle": "italic"
}
}
]
},
// git related
"diffEditor.ignoreTrimWhitespace": true,
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.hovers.enabled": false,
"gitlens.launchpad.indicator.enabled": false,
"gitlens.views.scm.grouped.views": {
"commits": false,
"branches": false,
"remotes": true,
"stashes": false,
"tags": true,
"worktrees": true,
"contributors": true,
"repositories": false,
"searchAndCompare": false,
"launchpad": false
},
// animations
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.smoothScrolling": true,
"workbench.list.smoothScrolling": true,
"window.title": "${rootName}${separator}${activeEditorLong}",
// "editor.renderWhitespace": "boundary",
"workbench.colorTheme": "Default Light Modern",
"files.simpleDialog.enable": true,
"zenMode.fullScreen": false,
// others
"files.readonlyFromPermissions": true,
"files.readonlyInclude": {
"**/node_modules/**": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true,
"**/yarn.lock": true
},
"search.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/.hg": true,
"**/.svn": true,
"**/CVS": true,
"**/Thumbs.db": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true,
"**/yarn.lock": true
},
"github.copilot.editor.enableCodeActions": false,
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
},
"debug.onTaskErrors": "debugAnyway",
"files.exclude": {
"**/.DS_Store": false,
"**/.git": false,
"**/.hg": false,
"**/.svn": false,
"**/CVS": false,
"**/Thumbs.db": false
},
"githubPullRequests.pullBranch": "never",
// "tailwindcss-classname-highlight.enableHoverProvider": true,
"diffEditor.renderSideBySide": false,
"workbench.editor.empty.hint": "hidden",
"window.autoDetectColorScheme": true,
"workbench.preferredDarkColorTheme": "GitHub Dark Default",
"workbench.preferredLightColorTheme": "GitHub Light Default",
"diffEditor.experimental.showMoves": true,
"typescript.updateImportsOnPaste.enabled": false,
"javascript.updateImportsOnPaste.enabled": false,
"editor.renderWhitespace": "boundary",
"cSpell.diagnosticLevel": "Hint",
"iconify.inplace": false,
// "tailwindCSS.annotations": true,
"tailwindCSS.colorDecorators": false,
"unocss.colorPreview": false,
"errorLens.enabledDiagnosticLevels": ["error", "warning", "info", "hint"],
"errorLens.excludeByMessage": [
{
"regex": "^\".*\": Unknown word\\.$"
}
// "Classname '.*' is not a Tailwind CSS class!"
// ".* is defined but never used",
// ".* is declared but never used",
// ".* is assigned a value but never used",
// ".* is declared but its value is never read"
],
"errorLens.fontStyleItalic": true,
"markdownlint.config": {
"no-bare-urls": false,
"no-inline-html": false,
"fenced-code-language": false,
"no-duplicate-heading": false,
"no-alt-text": false,
"first-line-h1": false
},
"files.associations": {
".env.*": "dotenv"
},
"githubPullRequests.ignoredPullRequestBranches": [
"dev",
"main"
],
"workbench.editorAssociations": {
"*.copilotmd": "vscode.markdown.preview.editor",
"*.svg": "default"
},
"workbench.iconTheme": "file-icons",
"workbench.activityBar.location": "top",
"github.copilot.nextEditSuggestions.enabled": true,
"diffEditor.hideUnchangedRegions.enabled": true,
"editor.lineNumbers": "off",
"diffEditor.maxComputationTime": 0
}

Finder

  • General
    • Show these items on the desktop (Turn off all)
    • New Finder windows show (Home folder)
  • Sidebar
    • Hide tags; Show home folder and all Locations and iCloud
  • Advanced
    • Show all filename extensions (On)
  • View -> Show Path Bar (On)
  • Top folder -> Right click -> Show View Options -> Sort by Name, Use as Defaults

Desktop & Dock

  • Remove all apps from Dock
  • Dock
    • Automatically hide and show the Dock (On)
    • Show suggested and recent apps in Dock (Off)
  • Desktop & Stage Manager
    • Click wallpaper to reveal desktop (Only in Stage Manager)
  • Windows
    • Tiled windows have margins (Off)
  • Hot Corners (Only for Desktop)
    • Bottom left: Launchpad
    • Bottom right: Mission Control

Control Center

  • Don't Show in menu bar (Spotlight)
  • Always Show in Menu Bar (Sound)
  • Clock Options
    • Display the time with seconds (On)

Keyboard

  • Keyboard navigation (On)
  • Key repeat rate (Fast) and Delay until repeat (Short)
  • Text Input
    • Add period with double-space (Off)
  • Keyboard Shortcuts
    • Screenshots (Turn off all, use CleanShot X)
    • Spotlight (Turn off, use Raycast)
    • Modifier keys (Caps Lock -> Control)

Trackpad

  • Tap to click (On)

Accessibility

  • Pointer Control -> Trackpad Options
    • Use trackpad for dragging (On)
    • Dragging style (Three finger drag)

Energy

  • Prevent automatic sleeping when the display is off (Desktop && GitHub Action runner Only)

Apple Account

Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
Host github.com
Hostname ssh.github.com
Port 443
User git
# https://stackoverflow.com/a/49398449/15548365
# code --list-extensions | xargs -L 1 echo code --install-extension
code --install-extension amodio.tsl-problem-matcher
code --install-extension antfu.array-index-inlay
code --install-extension antfu.unocss
code --install-extension biomejs.biome
code --install-extension bradlc.vscode-tailwindcss
code --install-extension davidanson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension eamodio.gitlens
code --install-extension editorconfig.editorconfig
code --install-extension esbenp.prettier-vscode
code --install-extension github.copilot
code --install-extension github.copilot-chat
code --install-extension github.github-vscode-theme
code --install-extension github.vscode-github-actions
code --install-extension github.vscode-pull-request-github
code --install-extension hyoban.file-icons-continue
code --install-extension hyoban.tailwindcss-classname-highlight
code --install-extension johnsoncodehk.vscode-tsconfig-helper
code --install-extension johnsoncodehk.vscode-tsslint
code --install-extension mikestead.dotenv
code --install-extension mxsdev.typescript-explorer
code --install-extension naumovs.color-highlight
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension usernamehw.errorlens
code --install-extension vue.volar
code --install-extension yutengjing.package-manager-enhancer
@hyoban
Copy link
Author

hyoban commented Mar 2, 2025

sudo find 2>/dev/null /private/var/folders/ -type d -name com.apple.dock.launchpad -exec rm -rf {} +; killall Dock

https://www.reddit.com/r/mac/comments/1hfzakq/unable_to_reset_launchpad_using_terminal/?rdt=33626

@hyoban
Copy link
Author

hyoban commented Jun 8, 2025

https://www.cudy.com/zh-cn/pages/download-center/tr3000-1-0
https://www.right.com.cn/forum/thread-8428621-1-1.html
https://openwrt.ai/?target=mediatek%2Ffilogic&id=cudy_tr3000-v2-mod

定制固件无需下载,需要复制 ui

curl -s -L https://fastly.jsdelivr.net/gh/nikkinikki-org/OpenWrt-nikki/feed.sh | ash
opkg install nikki
opkg install luci-app-nikki
opkg install luci-i18n-nikki-zh-cn

https://github.com/nikkinikki-org/OpenWrt-nikki
https://github.com/MetaCubeX/meta-rules-dat

GeoLite2-ASN.mmdb
country.mmdb
geoip.db
geosite.db

https://github.com/Zephyruso/zashboard

关闭网络 -> DHCP/DNS -> DNS 重定向这一选项

https://openwrt.org/docs/guide-user/network/wan/smartphone.usb.tethering

f50 是 eth2

wan 改 eth1,设备 by lan 改 eth0

https://soulteary.com/2025/03/27/xiaomi-router-be3600-pro-notes-analytics-and-docker-play.html

ssh [email protected] -oHostKeyAlgorithms=+ssh-rsa

root

https://github.com/juewuy/ShellCrash/blob/dev/README_CN.md

@hyoban
Copy link
Author

hyoban commented Aug 12, 2025

Last login: Mon Aug 11 22:46:01 on console

~
➜ cd Developer

~/Developer
➜ git clone https://github.com/ggml-org/whisper.cpp
Cloning into 'whisper.cpp'...
remote: Enumerating objects: 22153, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 22153 (delta 3), reused 2 (delta 2), pack-reused 22146 (from 2)
Receiving objects: 100% (22153/22153), 24.19 MiB | 8.98 MiB/s, done.
Resolving deltas: 100% (15773/15773), done.

~/Developer took 5.1s
➜ cd whisper.cpp

whisper.cpp on  master
➜ sh ./models/download-ggml-model.sh base.en
Downloading ggml model base.en from 'https://huggingface.co/ggerganov/whisper.cpp' ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1370 100 1370 0 0 1847 0 --:--:-- --:--:-- --:--:-- 1846
100 141M 100 141M 0 0 14.9M 0 0:00:09 0:00:09 --:--:-- 26.1M
Done! Model 'base.en' saved in '/Users/hyoban/Developer/whisper.cpp/models/ggml-base.en.bin'
You can now use it like this:

$ ./build/bin/whisper-cli -m /Users/hyoban/Developer/whisper.cpp/models/ggml-base.en.bin -f samples/jfk.wav

whisper.cpp on  master took 9.5s
➜ cmake -B build
zsh: command not found: cmake

whisper.cpp on  master
➜ which cmake
cmake not found

whisper.cpp on  master
➜ brew install cmake
==> Auto-updating Homebrew...
Adjust how often this is run with $HOMEBREW_AUTO_UPDATE_SECS or disable with
$HOMEBREW_NO_AUTO_UPDATE=1. Hide these hints with $HOMEBREW_NO_ENV_HINTS=1 (see man brew).
==> Auto-updated Homebrew!
==> Updated Homebrew from 4.6.0 (dbe68ef80c) to 4.6.3 (a0d01bc7c4).
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
apache-polaris: Interoperable, open source catalog for Apache Iceberg
mk: Wrapper for auto-detecting build and test commands in a repository
==> New Casks
icon-composer: Apple tool to create multi-platform icons

You have 12 outdated formulae installed.

The 4.6.3 changelog can be found at:
https://github.com/Homebrew/brew/releases/tag/4.6.3
==> Fetching downloads for: cmake
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/manifests/4.1.0
######################################################################### 100.0%
==> Fetching cmake
==> Downloading https://ghcr.io/v2/homebrew/core/cmake/blobs/sha256:bb2ee3355e25
######################################################################### 100.0%
==> Pouring cmake--4.1.0.arm64_sequoia.bottle.tar.gz
==> Caveats
To install the CMake documentation, run:
brew install cmake-docs
==> Summary
🍺 /opt/homebrew/Cellar/cmake/4.1.0: 3,913 files, 58.6MB
==> Running brew cleanup cmake...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP=1.
Hide these hints with HOMEBREW_NO_ENV_HINTS=1 (see man brew).
==> No outdated dependents to upgrade!
==> Caveats
Emacs Lisp files have been installed to:
/opt/homebrew/share/emacs/site-lisp/cmake

whisper.cpp on  master took 29.0s
➜ cmake -B build
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- The C compiler identification is AppleClang 17.0.0.17000013
-- The CXX compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.39.5 (Apple Git-154)")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- GGML_SYSTEM_ARCH: ARM
-- Including CPU backend
-- Accelerate framework found
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning at ggml/src/ggml-cpu/CMakeLists.txt:79 (message):
OpenMP not found
Call Stack (most recent call first):
ggml/src/CMakeLists.txt:361 (ggml_add_cpu_backend_variant_impl)

-- ARM detected
-- Performing Test GGML_COMPILER_SUPPORTS_FP16_FORMAT_I3E
-- Performing Test GGML_COMPILER_SUPPORTS_FP16_FORMAT_I3E - Failed
-- ARM -mcpu not found, -mcpu=native will be used
-- Performing Test GGML_MACHINE_SUPPORTS_dotprod
-- Performing Test GGML_MACHINE_SUPPORTS_dotprod - Success
-- Performing Test GGML_MACHINE_SUPPORTS_i8mm
-- Performing Test GGML_MACHINE_SUPPORTS_i8mm - Success
-- Performing Test GGML_MACHINE_SUPPORTS_sve
-- Performing Test GGML_MACHINE_SUPPORTS_sve - Failed
-- Performing Test GGML_MACHINE_SUPPORTS_nosve
-- Performing Test GGML_MACHINE_SUPPORTS_nosve - Success
-- Performing Test GGML_MACHINE_SUPPORTS_sme
-- Performing Test GGML_MACHINE_SUPPORTS_sme - Success
-- ARM feature DOTPROD enabled
-- ARM feature MATMUL_INT8 enabled
-- ARM feature FMA enabled
-- ARM feature FP16_VECTOR_ARITHMETIC enabled
-- ARM feature SME enabled
-- Adding CPU backend variant ggml-cpu: -mcpu=native+dotprod+i8mm+nosve+sme
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework
-- BLAS found, Libraries: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework
-- BLAS found, Includes:
-- Including BLAS backend
-- Metal framework found
-- The ASM compiler identification is AppleClang
-- Found assembler: /usr/bin/cc
-- Including METAL backend
-- ggml version: 0.0.2975
-- ggml commit: b02242d0
-- Configuring done (3.9s)
-- Generating done (0.3s)
-- Build files have been written to: /Users/hyoban/Developer/whisper.cpp/build

whisper.cpp on  master took 4.9s
➜ cmake --build build --config Release
[ 1%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml.c.o
[ 3%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml.cpp.o
[ 5%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml-alloc.c.o
[ 7%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-backend.cpp.o
[ 8%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-opt.cpp.o
[ 10%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/ggml-threading.cpp.o
[ 12%] Building C object ggml/src/CMakeFiles/ggml-base.dir/ggml-quants.c.o
[ 14%] Building CXX object ggml/src/CMakeFiles/ggml-base.dir/gguf.cpp.o
[ 15%] Linking CXX shared library libggml-base.dylib
[ 15%] Built target ggml-base
[ 17%] Generate assembly for embedded Metal library
Embedding Metal library
[ 19%] Building C object ggml/src/ggml-metal/CMakeFiles/ggml-metal.dir/ggml-metal.m.o
[ 21%] Building ASM object ggml/src/ggml-metal/CMakeFiles/ggml-metal.dir///__/autogenerated/ggml-metal-embed.s.o
[ 22%] Linking C shared library libggml-metal.dylib
[ 22%] Built target ggml-metal
[ 24%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu.c.o
[ 26%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ggml-cpu.cpp.o
[ 28%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/repack.cpp.o
[ 29%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/hbm.cpp.o
[ 31%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/quants.c.o
[ 33%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/traits.cpp.o
[ 35%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/amx/amx.cpp.o
[ 36%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/amx/mmq.cpp.o
[ 38%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/binary-ops.cpp.o
[ 40%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/unary-ops.cpp.o
[ 42%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/vec.cpp.o
[ 43%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/ops.cpp.o
[ 45%] Building C object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/quants.c.o
[ 47%] Building CXX object ggml/src/CMakeFiles/ggml-cpu.dir/ggml-cpu/arch/arm/repack.cpp.o
[ 49%] Linking CXX shared library libggml-cpu.dylib
[ 49%] Built target ggml-cpu
[ 50%] Building CXX object ggml/src/ggml-blas/CMakeFiles/ggml-blas.dir/ggml-blas.cpp.o
[ 52%] Linking CXX shared library libggml-blas.dylib
[ 52%] Built target ggml-blas
[ 54%] Building CXX object ggml/src/CMakeFiles/ggml.dir/ggml-backend-reg.cpp.o
[ 56%] Linking CXX shared library libggml.dylib
[ 56%] Built target ggml
[ 57%] Building CXX object src/CMakeFiles/whisper.dir/whisper.cpp.o
[ 59%] Linking CXX shared library libwhisper.dylib
[ 59%] Built target whisper
[ 61%] Building CXX object examples/CMakeFiles/common.dir/common.cpp.o
[ 63%] Building CXX object examples/CMakeFiles/common.dir/common-ggml.cpp.o
[ 64%] Building CXX object examples/CMakeFiles/common.dir/common-whisper.cpp.o
[ 66%] Building CXX object examples/CMakeFiles/common.dir/grammar-parser.cpp.o
[ 68%] Linking CXX static library libcommon.a
[ 68%] Built target common
[ 70%] Building CXX object tests/CMakeFiles/test-vad.dir/test-vad.cpp.o
[ 71%] Linking CXX executable ../bin/test-vad
[ 71%] Built target test-vad
[ 73%] Building CXX object tests/CMakeFiles/test-vad-full.dir/test-vad-full.cpp.o
[ 75%] Linking CXX executable ../bin/test-vad-full
[ 75%] Built target test-vad-full
[ 77%] Building CXX object examples/cli/CMakeFiles/whisper-cli.dir/cli.cpp.o
[ 78%] Linking CXX executable ../../bin/whisper-cli
[ 78%] Built target whisper-cli
[ 80%] Building CXX object examples/bench/CMakeFiles/whisper-bench.dir/bench.cpp.o
[ 82%] Linking CXX executable ../../bin/whisper-bench
[ 82%] Built target whisper-bench
[ 84%] Building CXX object examples/server/CMakeFiles/whisper-server.dir/server.cpp.o
[ 85%] Linking CXX executable ../../bin/whisper-server
[ 85%] Built target whisper-server
[ 87%] Building CXX object examples/quantize/CMakeFiles/quantize.dir/quantize.cpp.o
[ 89%] Linking CXX executable ../../bin/quantize
[ 89%] Built target quantize
[ 91%] Building CXX object examples/vad-speech-segments/CMakeFiles/vad-speech-segments.dir/speech.cpp.o
[ 92%] Linking CXX executable ../../bin/vad-speech-segments
[ 92%] Built target vad-speech-segments
[ 94%] Building CXX object examples/deprecation-warning/CMakeFiles/main.dir/deprecation-warning.cpp.o
[ 96%] Linking CXX executable ../../bin/main
[ 96%] Built target main
[ 98%] Building CXX object examples/deprecation-warning/CMakeFiles/bench.dir/deprecation-warning.cpp.o
[100%] Linking CXX executable ../../bin/bench
[100%] Built target bench

whisper.cpp on  master took 26.9s
➜ sudo make install -C build
Password:
[ 15%] Built target ggml-base
[ 22%] Built target ggml-metal
[ 49%] Built target ggml-cpu
[ 52%] Built target ggml-blas
[ 56%] Built target ggml
[ 59%] Built target whisper
[ 68%] Built target common
[ 71%] Built target test-vad
[ 75%] Built target test-vad-full
[ 78%] Built target whisper-cli
[ 82%] Built target whisper-bench
[ 85%] Built target whisper-server
[ 89%] Built target quantize
[ 92%] Built target vad-speech-segments
[ 96%] Built target main
[100%] Built target bench
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libwhisper.1.7.6.dylib
-- Installing: /usr/local/lib/libwhisper.1.dylib
-- Installing: /usr/local/lib/libwhisper.dylib
-- Installing: /usr/local/include/whisper.h
-- Installing: /usr/local/lib/cmake/whisper/whisper-config.cmake
-- Installing: /usr/local/lib/cmake/whisper/whisper-version.cmake
-- Installing: /usr/local/lib/pkgconfig/whisper.pc
-- Installing: /usr/local/lib/libggml-cpu.dylib
-- Installing: /usr/local/lib/libggml-blas.dylib
-- Installing: /usr/local/lib/libggml-metal.dylib
-- Installing: /usr/local/lib/libggml.dylib
-- Installing: /usr/local/include/ggml.h
-- Installing: /usr/local/include/ggml-cpu.h
-- Installing: /usr/local/include/ggml-alloc.h
-- Installing: /usr/local/include/ggml-backend.h
-- Installing: /usr/local/include/ggml-blas.h
-- Installing: /usr/local/include/ggml-cann.h
-- Installing: /usr/local/include/ggml-cpp.h
-- Installing: /usr/local/include/ggml-cuda.h
-- Installing: /usr/local/include/ggml-opt.h
-- Installing: /usr/local/include/ggml-metal.h
-- Installing: /usr/local/include/ggml-rpc.h
-- Installing: /usr/local/include/ggml-sycl.h
-- Installing: /usr/local/include/ggml-vulkan.h
-- Installing: /usr/local/include/ggml-webgpu.h
-- Installing: /usr/local/include/gguf.h
-- Installing: /usr/local/lib/libggml-base.dylib
-- Installing: /usr/local/lib/cmake/ggml/ggml-config.cmake
-- Installing: /usr/local/lib/cmake/ggml/ggml-version.cmake
-- Installing: /usr/local/bin/whisper-cli
-- Installing: /usr/local/bin/whisper-bench
-- Installing: /usr/local/bin/whisper-server
-- Installing: /usr/local/bin/vad-speech-segments

whisper.cpp on  master took 5.5s
➜ cd ..

~/Developer
➜ git clone https://code.ffmpeg.org/FFmpeg/FFmpeg.git
Cloning into 'FFmpeg'...
remote: Enumerating objects: 768293, done.
remote: Counting objects: 100% (10705/10705), done.
remote: Compressing objects: 100% (479/479), done.
remote: Total 768293 (delta 10521), reused 10227 (delta 10226), pack-reused 757588 (from 1)
Receiving objects: 100% (768293/768293), 158.51 MiB | 8.05 MiB/s, done.
Resolving deltas: 100% (624522/624522), done.

~/Developer took 32.1s
➜ cd FFmpeg

FFmpeg on  master
➜ ./configure --prefix=/usr --enable-version3 --disable-shared --enable-gpl
--enable-nonfree --enable-static --enable-pthreads --enable-filters
--enable-openssl --enable-runtime-cpudetect --enable-libvpx --enable-libx264 \
--enable-libx265 --enable-libspeex --enable-libfreetype --enable-fontconfig
--enable-libzimg --enable-libvorbis --enable-libwebp --enable-libfribidi
--enable-libharfbuzz --enable-libpulse --enable-libass --enable-whisper
ERROR: libass >= 0.11.0 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment