Skip to content

Instantly share code, notes, and snippets.

View GreyElaina's full-sized avatar
take books

Elaina GreyElaina

take books
View GitHub Profile
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active December 2, 2025 21:19
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

@NoteAfterNote
NoteAfterNote / note-after-note-2024-may-19-termux-usbredirect-qemu.md
Last active October 19, 2025 19:57
Reading and writing a USB drive connected to a Linux server using Termux, termux-usb, usbredirect, and QEMU on a smartphone that is not rooted
@Bluefissure
Bluefissure / fix.py
Last active July 18, 2025 03:25
Fix broken palworld save caused by existing guild & too many capture logs
# author: Bluefissure
# License: MIT License
# Description: Fixes Palworld brokwn save files corrupted by someone existing the guild
# Based on the work of https://github.com/cheahjs/palworld-save-tools/releases/tag/v0.13.0
import argparse
import codecs
import os
import json
from lib.gvas import GvasFile
@kamidev
kamidev / zig_install_m3_max_macos.md
Last active July 31, 2025 12:49
zig_macos_m3_max_install

Personal notes building zig 0.15.0-dev.xxxx on Macbook M3 Max

20250731 Sequoia 15.6, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.8 (llvm@20)

This way of building probably works on all Apple Silicon Macs, but you must check other models yourself. I keep a list of some successful M3 Max builds here

Some Intel Macs should also work (default homebrew path is the only significant difference). But I don't test that anymore.

@dylech30th
dylech30th / SystemFSub.cs
Last active October 2, 2022 00:42
A SystemF<: (Bounded Quantification) implementation in C#, along with some simple extensions including union type, intersection type, condition, and general recursion through fixed-point combinator
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedType.Global
// ReSharper disable ClassNeverInstantiated.Global
// ReSharper disable ParameterTypeCanBeEnumerable.Local
// ReSharper disable ReturnTypeCanBeEnumerable.Local
using System.Diagnostics;
using System.Text;
namespace SystemFSub;
from pprint import pprint
from random import shuffle
from typing import Set, List
class LaunchComponent:
id: str
required: Set[str]
def __init__(self, id, required=None):
@yojohanshinwataikei
yojohanshinwataikei / main.ts
Last active March 25, 2024 01:23
Arcaea score prober backend
import fs = require("fs-extra")
import path = require("path")
import net = require("net")
import https = require("https")
import child = require("child_process")
import util = require("util")
import WebSocket = require("ws")
import brotli = require("brotli")
import mysql2 = require("mysql2/promise")
import sqlite3 = require("better-sqlite3")
@MrHallows
MrHallows / fastboot_help.md
Last active December 5, 2025 21:58
fastboot commands

Command:

$ fastboot help

Output:

usage: fastboot [OPTION...] COMMAND...

flashing: