Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import {promisify} from 'node:util';2import process from 'node:process';3import {execFile} from 'node:child_process';4 5const execFileAsync = promisify(execFile);6 7export default async function defaultBrowserId() {8 if (process.platform !== 'darwin') {9 throw new Error('macOS only');10 }11 12 const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']);13 14 // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`.15 const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);16 17 const browserId = match?.groups.id ?? 'com.apple.Safari';18 19 // Correct the case for Safari's bundle identifier20 if (browserId === 'com.apple.safari') {21 return 'com.apple.Safari';22 }23 24 return browserId;25}26 