Skip to content

Instantly share code, notes, and snippets.

View tonyljx's full-sized avatar
:octocat:
Focusing

JiongXin tonyljx

:octocat:
Focusing
View GitHub Profile
@tonyljx
tonyljx / ForceEnablingXcodeLLM.md
Created October 19, 2024 10:32 — 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

@tonyljx
tonyljx / react-markdown-toc.tsx
Created March 8, 2024 07:06 — forked from sobelk/react-markdown-toc.tsx
React Markdown TOC Proof-of-Concept
/*
This is based on an idea for building a table of contents on top of
React Markdown using a custom renderer. The original conversation is at
https://github.com/remarkjs/react-markdown/issues/48
*/
import React from "react";
import ReactMarkdown from "react-markdown";