Skip to content

Instantly share code, notes, and snippets.

View bradwindy's full-sized avatar
💻
⌘⇧K

Bradley Windybank bradwindy

💻
⌘⇧K
View GitHub Profile
@zoltan-magyar
zoltan-magyar / xcode-claude-code-third-party.md
Last active February 12, 2026 17:54
Xcode Claude Code integration with third-party APIs

Setting Up Xcode Claude Code with Third-Party API Endpoints

This guide explains how to configure Xcode's built-in Claude Code integration to work with third-party API endpoints instead of the official Anthropic API.

Step 1: Bypass the Authentication UI

Xcode normally requires signing in through the UI with an Anthropic account or API key and doesn't offer any bypass. Even if the Xcode internal claude can use your third-party endpoint Xcode won't send any query because YoU ARe NOt LOgGeD IN. To bypass this when using a third-party endpoint, set a placeholder API key override, which you cannot do through the UI:

defaults write com.apple.dt.Xcode IDEChatClaudeAgentAPIKeyOverride ' '
@ftischhauser
ftischhauser / DoVi_Check_Infuse_Compatibility.ps1
Last active September 13, 2025 09:13
DoVi_Check_Infuse_Compatibility.ps1
$fn = $args[0]
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"ffmpeg.exe -hide_banner -loglevel panic -i `"$fn`" -c:v copy -frames:v 1 -bsf hevc_mp4toannexb -f hevc - | dovi_tool extract-rpu - -o `"$($fn).RPU.bin`"`""
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"dovi_tool.exe info `"$($fn).RPU.bin`" -f 0 > `"$($fn).RPU.json`"`""
$rpu = (Get-Content "$($fn).RPU.json" | Select-Object -Skip 1) | ConvertFrom-Json
if ($rpu.dovi_profile) {
Write-Output "Profile: $($rpu.dovi_profile)"
if ($rpu.dovi_profile -eq 5) {
Write-Output "Natively supported."
}
@bradwindy
bradwindy / guide.txt
Last active January 19, 2025 20:14
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps:
Chapter 1 - The Basics:
1) Connect computer to eth0
2) Set computer to have a static/manual IP connection over this ethernet connection with the following settings:
- IP addr: 192.168.1.2
- Subnet: 255.255.255.0
- Router/gateway: 192.168.1.1
3) Navigate to 192.168.1.1 in a browser
@emilyst
emilyst / 99-usb-cdrom.rules
Last active January 15, 2026 18:54
Description for getting MakeMKV working on Synology with DSM 7 using jlesage/makemkv via Docker Compose
SUBSYSTEMS=="usb", ATTRS{idVendor}=="", ATTRS{idProduct}=="", GROUP="cdrom", MODE="0666"
@Samyak2
Samyak2 / oh-my-zsh-bira-conda-venv.md
Last active October 7, 2024 22:04
Adding virtualenv and conda support to Oh My Zsh Bira theme
@nomaster
nomaster / config.boot
Last active December 23, 2025 14:10
EdgeRouter: DNS forwarding to CloudFlare with DNSSEC
set service dns forwarding name-server 1.1.1.1
set service dns forwarding name-server 1.0.0.1
set service dns forwarding name-server '2606:4700:4700::1111'
set service dns forwarding name-server '2606:4700:4700::1001'
set service dns forwarding options dnssec
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
set service dns forwarding options dnssec-check-unsigned
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time
@sgbasaraner
sgbasaraner / titlecase.swift
Created November 29, 2017 08:32
Title Case Extension for Swift 4
extension String {
func titlecased() -> String {
if self.count <= 1 {
return self.uppercased()
}
let regex = try! NSRegularExpression(pattern: "(?=\\S)[A-Z]", options: [])
let range = NSMakeRange(1, self.count - 1)
var titlecased = regex.stringByReplacingMatches(in: self, range: range, withTemplate: " $0")

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@csarigoz
csarigoz / run_exe_file_in_wine
Created March 8, 2016 08:24
Applescript for Running an exe file in wine
#open gemius explorer
tell application "Terminal"
do script "/usr/local/bin/wine ~/.wine/drive_c/Program\\ Files/Gemius/gemiusExplorer/gemiusExplorer.exe"
end tell