Skip to content

Instantly share code, notes, and snippets.

View dsh0416's full-sized avatar
🕷️
Living in Cyber World

Delton Ding dsh0416

🕷️
Living in Cyber World
View GitHub Profile
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active July 22, 2024 11:16
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

@wakhub
wakhub / polyglot.pl.php.py.rb.cpp.m
Created June 8, 2012 13:58 — forked from SaswatPadhi/polyglot.pl.php.py.rb.cpp
PHP + Perl + Python + Ruby + C + C++ + Objective-C - polyglot
#/*<?php echo "PHP Code\n"; __halt_compiler();?> */
#include <stdio.h> /*
print (("b" + "0" == 0 and "Perl Code\n") or (0 and "Ruby Code\n" or "Python Code"));
__DATA__ = 1
"""""
__END__