THIS GIST IS DEPRECATED. CURRENT INSTALL NOTES ARE HERE: https://gist.github.com/kamidev/ee0d4b3deeaf6996a24d1fca9acc6b07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Author: Oleh Pshenychnyi | |
| # Date: 13.02.2021 | |
| # | |
| # Kill all processes matching a provided pattern. | |
| # | |
| # Usage: | |
| # | |
| # >> bash killer.sh celery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Qwen 3.5 9B Prefill Pipeline — ANE (Apple Neural Engine) | |
| // | |
| // 221 tok/s prefill, 5.05 TFLOPS ANE, FP16 weights, no quantization. | |
| // Apple M4 (10-core: 4P+6E), 24 GB, macOS 15. | |
| // Single self-contained file. No external dependencies beyond Apple frameworks. | |
| // | |
| // Architecture (32 layers, 24 DeltaNet + 8 Attention): | |
| // DeltaNet: QKV proj (ANE) → recurrence (CPU/OpenMP) → out proj (ANE) → FFN (ANE) | |
| // Attention: Q/K/V proj (ANE) → causal SDPA (CPU/AMX) → O proj (ANE) → FFN (ANE) | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { HookConfig } from '@directus/extensions'; | |
| import { FieldFilter, FieldFilterOperator, LogicalFilterOR } from '@directus/types'; | |
| import { validate as isUuid } from 'uuid'; | |
| type COLLECTION = string; | |
| type FIELD = string; | |
| type ISearchOptions = Record< | |
| COLLECTION, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory | |
| git clone https://github.com/myshell-ai/OpenVoice | |
| cd OpenVoice | |
| git clone https://huggingface.co/myshell-ai/OpenVoice | |
| cp -r OpenVoice/* . | |
| pip install whisper pynput pyaudio | |
| """ | |
| from openai import OpenAI | |
| import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| log() { | |
| format="$1"; shift | |
| # shellcheck disable=SC2059 | |
| >&2 printf "$format\n" "$@" | |
| } | |
| usage() { | |
| >&2 cat <<EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import SwiftUI | |
| let width : CGFloat = 82.0 | |
| let height : CGFloat = 82.0 | |
| struct ContentView: View { | |
| @State private var toggle = false | |
| var body: some View { | |
| VStack { | |
| Spacer() | |
| ZStack { | |
| Image(systemName: "heart.fill") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // HelloStartupAnimation | |
| // | |
| // Created by Apple Design Dev on 1/26/22. | |
| // | |
| import SwiftUI | |
| import PureSwiftUI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ContentView.swift | |
| // ActivityRingAnimation WatchKit Extension | |
| // | |
| // Created by AppleDesignDev on 1/25/22. | |
| // | |
| import SwiftUI | |
| struct ContentView: View { | |
| var body: some View { | |
| TimelineView(.periodic(from: .now, by: 1.0)) { timeline in |
NewerOlder