Skip to content

Instantly share code, notes, and snippets.

View lpgneg19's full-sized avatar

SteveShi lpgneg19

View GitHub Profile
@lpgneg19
lpgneg19 / ForceEnablingXcodeLLM.md
Created June 17, 2024 09:07 — forked from unixzii/ForceEnablingXcodeLLM.md
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

@lpgneg19
lpgneg19 / optimize.sh
Created April 24, 2024 02:12 — forked from taurusxin/optimize.sh
Linux Optimization Script
#!/usr/bin/env bash
echo=echo
for cmd in echo /bin/echo; do
$cmd >/dev/null 2>&1 || continue
if ! $cmd -e "" | grep -qE '^-e'; then
echo=$cmd
break
fi
done