Skip to content

Instantly share code, notes, and snippets.

View haujoe's full-sized avatar
😘
Welcome!

Charlie haujoe

😘
Welcome!
View GitHub Profile
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active June 27, 2024 03:23
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@mecid
mecid / Calendar.swift
Last active June 24, 2024 13:17
SwiftUI Calendar view using LazyVGrid
import SwiftUI
extension Calendar {
func generateDates(
inside interval: DateInterval,
matching components: DateComponents
) -> [Date] {
var dates: [Date] = []
dates.append(interval.start)