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
| # A simple proxy that matches the interface for a Swift Package Registry. | |
| # make sure to `export GITHUB_TOKEN` in your environment and it should be a fine-grained token with: | |
| # - `content:read` scope on the browser company organization. | |
| # | |
| # Then run `caddy run --config Caddyfile` to start the proxy. | |
| { | |
| # Enable extra diagnostics in logs | |
| debug | |
| } |
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 | |
| TEST_DIR="/tmp/fio-test" | |
| mkdir -p $TEST_DIR | |
| # For macOS, use posixaio engine | |
| ENGINE="posixaio" | |
| echo "Testing with async I/O engine: $ENGINE" | |
| # Sequential tests (these are already good) |
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 | |
| # Comprehensive Disk Benchmark Suite using Hyperfine | |
| # Compares SSD, APFS RAM Disk, and HFS+ RAM Disk performance | |
| set -e | |
| # Color codes | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
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
| # Setup Versions | |
| ERLANG_VERSION=27.3.4 | |
| ELIXIR_VERSION=1.18.3 | |
| # Setup asdf | |
| go install github.com/asdf-vm/asdf/cmd/[email protected] | |
| asdf plugin add erlang https://github.com/michallepicki/asdf-erlang-prebuilt-ubuntu-24.04.git || true | |
| asdf plugin add elixir | |
| asdf install erlang $ERLANG_VERSION |
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
| Original WritableKeyPath is \MyFeatureFlags.fontOptions | |
| Got specialization: CaseIterable | |
| Reconstructed WritableKeyPath is \MyFeatureFlags.fontOptions | |
| Got specialization: Base |
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
| <# | |
| .SYNOPSIS | |
| Runs various networking tests to help debug connectivity issues to a specific host. | |
| .PARAMETER Uri | |
| The Uri that should be used as the remote host. This should be something like 'www.arc.net' which will be used | |
| to test by DNS and SSL connectivity as needed. | |
| .PARAMETER TestDns | |
| Whether or not to test DNS resolution to the provided Uri |
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 Foundation | |
| let b62 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | |
| func encode(data: [Double], min: Double, max: Double) -> String { | |
| let r = max - min | |
| var bs = [Character](repeating: b62.first!, count: data.count) | |
| if r == 0 { | |
| for i in 0..<data.count { | |
| bs[i] = b62.first! |
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 "AudioTap.h" | |
| @interface AudioTap () | |
| @property (nonatomic, nullable) AudioStreamBasicDescription const *audioDescription; | |
| @property (nonatomic, nullable) MTAudioProcessingTapRef tapReference; | |
| @property (nonatomic, weak) AVPlayer *audioPlayer; | |
| @end | |
| @implementation AudioTap |
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 swift | |
| import AppKit | |
| import Foundation | |
| import ScriptingBridge | |
| @objc public protocol SBObjectProtocol: NSObjectProtocol { | |
| func get() -> Any! | |
| } | |
| @objc public protocol SBApplicationProtocol: SBObjectProtocol { |
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
| <template> | |
| <div class="media-container" :style="dimensions"> | |
| <img :src="'/media/' + photo.name + '_preview.jpg'" /> | |
| </div> | |
| </template> | |
| <script lang="js"> | |
| import { defineComponent } from "vue"; | |
| export default defineComponent({ |
NewerOlder