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/bash | |
| echo "================================================" | |
| echo "ProtocolZero Cleanup Script (DRY RUN)" | |
| echo "================================================" | |
| echo "" | |
| echo "⚠️ WARNING: This will permanently delete all" | |
| echo " ProtocolZero folders from your system!" | |
| echo "" | |
| echo "Searching for ProtocolZero directories in $HOME..." |
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
| let windowStyles: NSWindow.StyleMask = [.titled, .utilityWindow, .hudWindow] | |
| let windowRect = NSRect.init(x: 0, y: 0, width: 600, height: 400) | |
| let window = NSPanel.init(contentRect: windowRect, styleMask: windowStyles, backing: .buffered, defer: true) | |
| window.title = "Title" | |
| window.titleVisibility = .hidden | |
| window.titlebarAppearsTransparent = true | |
| let view = NSView() | |
| window.contentView = view | |
| window.contentView?.wantsLayer = true | |
| window.contentView?.layer?.cornerRadius = 0.0 |
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
| from openai import AsyncOpenAI | |
| from typing import Type, TypeVar, Optional | |
| import logging | |
| import os | |
| from pydantic import BaseModel | |
| logger = logging.... for logger | |
| T = TypeVar('T', bound=BaseModel) |
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 Dependencies | |
| import Foundation | |
| public struct IntervalKey { | |
| let key: String | |
| let config: IntervalConfig | |
| public init(_ key: String, config: IntervalConfig) { | |
| self.key = "interval." + key | |
| self.config = config |
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
| // | |
| // NetworkMonitorClient.swift | |
| // Notto | |
| // | |
| // Created by Aayush Pokharel on 2025-01-09. | |
| // | |
| import Dependencies | |
| import Foundation | |
| import Network |
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 Dependencies | |
| import Foundation | |
| import os | |
| import XCTestDynamicOverlay | |
| // Add Logger | |
| private let logger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "RetryClient", category: "Retry") | |
| public struct RetryClient { | |
| public var retry: @Sendable (RetryConfiguration, @Sendable () async throws -> Void) async -> Void |
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 LinkPresentation | |
| import UIKit | |
| struct LinkMetadata { | |
| let title: String | |
| let image: Data? | |
| let url: URL? | |
| init(_ metadata: LPLinkMetadata, imageData: Data? = nil) { | |
| self.title = metadata.title ?? "Untitled Website" |
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 AVFoundation | |
| import Foundation | |
| import SwiftUI | |
| class AssemblyAIWebSocketClient: ObservableObject { | |
| private var webSocketTask: URLSessionWebSocketTask? | |
| private let urlSession: URLSession | |
| private let apiKey: String = "" // Replace with your actual API key | |
| private let audioSampleRate: Int | |
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
| --- | |
| version: "2.1" | |
| services: | |
| radarr: | |
| image: lscr.io/linuxserver/radarr:latest | |
| container_name: radarr | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=America/Toronto |
NewerOlder