Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-mini-2024-07-18· OpenAIAi2 WildChat-4.8M (AI2)

красиво отформатируй /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources…

  1. User

    красиво отформатируй

    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources

    /System/Library/PreferencePanes ~/Library/PreferencePanes

    assetutil -I "/System/Applications/Utilities/Boot Camp Assistant.app/Contents/Resources/Assets.car"

    iconutil "/System/Applications/Utilities/Boot Camp Assistant.app/Contents/Resources/Assets.car" AppIcon -c icns -o "/Users/twondma/Downloads/Boot Camp Assistant.icns"

    https://formulae.brew.sh/formula/powerlevel10k https://formulae.brew.sh/formula/zsh-autosuggestions https://formulae.brew.sh/formula/zsh-syntax-highlighting https://formulae.brew.sh/formula/fzf https://formulae.brew.sh/formula/bat https://formulae.brew.sh/formula/lsd

    https://formulae.brew.sh/formula/gifski https://formulae.brew.sh/formula/jq

    https://formulae.brew.sh/formula/shellcheck https://formulae.brew.sh/formula/shfmt

    https://formulae.brew.sh/formula/jenv

    https://formulae.brew.sh/formula/grip

    https://formulae.brew.sh/formula/rust cargo install tex-fmt

    security add-generic-password -Ua $USER -s TSTRUCT_TOKEN -w "tstruct_eyJ2ZXJzaW9uIjoxLCJkYXRhIjp7InVzZXJJRCI6MTg4MTYyODM5MiwidXNlckVtYWlsIjoicGF3YXppbkBpbmJveC5ydSIsInRlYW1JRCI6MTExODk5MDIxNCwidGVhbU5hbWUiOiJwYXdhemluQGluYm94LnJ1J3MgdGVhbSIsInJlbmV3YWxEYXRlIjoiMjAyNC0wNS0yN1QxOToyNTowMy43MzU5MjA3MloiLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTIwVDE5OjI1OjAzLjczNTkyMjEwNloifSwic2lnbmF0dXJlIjoiZ0xvajE4YS9jUEJ1b0x0Nm0wYmZJeEthNU5zSUcxbkxNRzN4dzJCbXhRS2VPRkVLSGpRNGNrdEl3a2ZTTERFQTZ0bDJWTDdYSTFCY3lZb3hpbTVQQWc9PSJ9"

    security delete-generic-password -a $USER -s TSTRUCT_TOKEN

    https://docs.github.com/en/copilot/managing-copilot/configure-personal-settings/installing-github-copilot-in-the-cli

    app_id="(mdls−rnkMDItemCFBundleIdentifier"<APPPATH>")"(osascript−e′idofapp"<APPNAME>"′)defaultswrite"(mdls -rn kMDItemCFBundleIdentifier "<APP_PATH>")" (osascript -e 'id of app "<APP_NAME>"') defaults write "app_id" AppleAccentColor -int kitty, Visual Studio Code, iTerm, Postman, OrbStack, Navicat Premium, IntelliJ IDEA Ultimate (osascript), Rider (osascript), Wireshark, Cursor, Windsurf

    ValuePreference
    nilMulticolor
    -1Graphite
    0Red
    1Orange
    2Yellow
    3Green
    4Blue
    5Purple
    6Pink

    ^(?!#)(?!\s*$).+

    gh browse kitten themes

    pgcli -d iot_transit -h localhost -p 5432 -U pguser litecli "$HOME/Desktop/state.vscdb"

    sqlite "HOME/Library/ApplicationSupport/Code/User/globalStorage/state.vscdb""SELECTvalueFROMItemTableWHEREkey=′stneveadomi.grepc′;">"HOME/Library/Application Support/Code/User/globalStorage/state.vscdb" "SELECT value FROM ItemTable WHERE key = 'stneveadomi.grepc';" > "HOME/Desktop/grepc.json"

    ffmpeg -i input.mkv -vf "scale=1920:1080,format=nv12,colorspace=bt709:iall=bt2020" -c:v h264_videotoolbox -b:v 5731k -c:a copy -c:s copy output.mkv

    https://winget.run/pkg/SomePythonThings/WingetUIStore https://winget.run/pkg/Git/MinGit

    https://npmjs.com/package/prettier-plugin-css-order davidcahill.auto-select-pasted-text

    Запуск в обход alias command eslint

    jenv add /usr/local/opt/openjdk@8 jenv add /usr/local/opt/openjdk@11 jenv add /usr/local/opt/openjdk@17 jenv add /usr/local/opt/openjdk@21 jenv add /usr/local/opt/openjdk@22

    jenv exec mvn clean package

    nvm install lts/* --reinstall-packages-from=20.16.0 nvm uninstall 20.16.0

    nvm install stable nvm uninstall 22.5.1

  2. Assistant

    Вот отформатированный текст, представленный более читаемо:


    Системные пути

    /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
    /System/Library/Extensions/IOStorageFamily.kext/Contents/Resources
    /System/Library/Extensions/IOSCSIArchitectureModelFamily.kext/Contents/Resources
    
    /System/Library/PreferencePanes
    ~/Library/PreferencePanes
    

    Команды для работы с иконками

    assetutil -I "/System/Applications/Utilities/Boot Camp Assistant.app/Contents/Resources/Assets.car"
    iconutil "/System/Applications/Utilities/Boot Camp Assistant.app/Contents/Resources/Assets.car" AppIcon -c icns -o "/Users/twondma/Downloads/Boot Camp Assistant.icns"
    

    Ссылки на формулы Homebrew

    Установка зависимостей Rust

    cargo install tex-fmt
    

    Добавление и удаление пароля в Keychain

    security add-generic-password -Ua $USER -s TSTRUCT_TOKEN -w "tstruct_eyJ2ZXJzaW9uIjoxLCJkYXRhIjp7InVzZXJJRCI6MTg4MTYyODM5MiwidXNlckVtYWlsIjoicGF3YXppbkBpbmJveC5ydSIsInRlYW1JRCI6MTExODk5MDIxNCwidGVhbU5hbWUiOiJwYXdhemluQGluYm94LnJ1J3MgdGVhbSIsInJlbmV3YWxEYXRlIjoiMjAyNC0wNS0yN1QxOToyNTowMy43MzU5MjA3MloiLCJjcmVhdGVkQXQiOiIyMDI0LTA1LTIwVDE5OjI1OjAzLjczNTkyMjEwNloifSwic2lnbmF0dXJlIjoiZ0xvajE4YS9jUEJ1b0x0Nm0wYmZJeEthNU5zSUcxbkxNRzN4dzJCbXhRS2VPRkVLSGpRNGNrdEl3a2ZTTERFQTZ0bDJWTDdYSTFCY3lZb3hpbTVQQWc9PSJ9"
    security delete-generic-password -a $USER -s TSTRUCT_TOKEN
    

    Установка GitHub Copilot в CLI

    Документация

    Настройка значений приложения

    app_id="$(mdls -rn kMDItemCFBundleIdentifier "<APP_PATH>")" # или
    osascript -e 'id of app "<APP_NAME>"'
    
    defaults write "$app_id" AppleAccentColor -int <VALUE>
    

    Доступные приложения

    • kitty
    • Visual Studio Code
    • iTerm
    • Postman
    • OrbStack
    • Navicat Premium
    • IntelliJ IDEA Ultimate (osascript)
    • Rider (osascript)
    • Wireshark
    • Cursor
    • Windsurf
    ЗначениеПредпочтение
    nilMulticolor
    -1Graphite
    0Red
    1Orange
    2Yellow
    3Green
    4Blue
    5Purple
    6Pink

    Команды для работы с базами данных

    gh browse
    kitten themes
    
    pgcli -d iot_transit -h localhost -p 5432 -U pguser
    litecli "$HOME/Desktop/state.vscdb"
    
    sqlite "$HOME/Library/Application Support/Code/User/globalStorage/state.vscdb" "SELECT value FROM ItemTable WHERE key = 'stneveadomi.grepc';" > "$HOME/Desktop/grepc.json"
    

    Обработка видео с помощью ffmpeg

    ffmpeg -i input.mkv -vf "scale=1920:1080,format=nv12,colorspace=bt709:iall=bt2020" -c:v h264_videotoolbox -b:v 5731k -c:a copy -c:s copy output.mkv
    

    Ссылки на пакеты Winget

    Пакеты NPM

    Запуск в обход alias

    command eslint
    

    Условия окружения Java

    jenv add /usr/local/opt/openjdk@8
    jenv add /usr/local/opt/openjdk@11
    jenv add /usr/local/opt/openjdk@17
    jenv add /usr/local/opt/openjdk@21
    jenv add /usr/local/opt/openjdk@22
    
    jenv exec mvn clean package
    

    Установка Node.js с NVM

    nvm install lts/* --reinstall-packages-from=20.16.0
    nvm uninstall 20.16.0
    
    nvm install stable
    nvm uninstall 22.5.1
    

    Если потребуется дальнейшая модификация, дайте знать!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.