Skip to content

Instantly share code, notes, and snippets.

View xream's full-sized avatar

xream xream

View GitHub Profile
@retroplasma
retroplasma / README.md
Last active August 3, 2026 19:08
Unlag Neo: Macbook Neo Cursor lag "fix"

Unlag Neo: A "fix" for the cursor lag on Macbook Neo

Macbook Neo (I'm on macOS Tahoe 26.5.2) cursor is lagging when the cursor is near the screen's edges or when it enters a Terminal window. [1][2][3][4][5]

[Click here for more info and background]

Why is it lagging?

I don't know. But at the moment when it lags the system switches from hardware cursor to software cursor (CGCursorIsDrawnInFramebuffer() goes from 0 to 1) so maybe that transition is stalled somehow on Macbook Neo.

@EYHN
EYHN / main.ts
Last active August 15, 2026 02:54
velopack electron workflow, with macos codesign & notarized & dmg image
import { VelopackApp } from 'velopack'
VelopackApp.build().run()
import { UpdateManager } from './update-manager'
import electron from 'electron'
const { app, ipcMain } = electron
const UPDATE_URL = 'https://s3.eyhn.in'
@n-connect
n-connect / llama.cpp build with Vulkan support via Molten-VK.md
Created November 26, 2025 20:37
llama.cpp with Vulkan support on macOS

Install dependencies:

brew install libomp vulkan-headers glslang molten-vk shaderc vulkan-loader

Now Molten-VK is already above v1.4 -> therefore no need to get older version and manually apply PR2434.

git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build -DLLAMA_CURL=1 -DGGML_METAL=OFF -DGGML_VULKAN=ON
@krisstibex
krisstibex / bilidl.py
Last active April 15, 2025 09:02
need yt-dlp & ffmpeg
import subprocess
import re
from urllib.parse import urlparse
from typing import Optional
def extract_uid(url: str) -> Optional[str]:
if url.isdigit():
return url
parsed = urlparse(url)
match = re.search(r'/(\d+)', parsed.path)
@CHIZI-0618
CHIZI-0618 / sing-box-sub-store-template_tproxy.json
Last active August 18, 2026 07:58
sing-box v1.11.1 Sub-Store-Template TProxy and Tun
{
"log": {
"disabled": false,
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"experimental": {
"cache_file": {
"enabled": true,
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active September 1, 2026 15: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

@Kyle-Ye
Kyle-Ye / iPhone Mirroring.md
Last active March 16, 2026 23:38
Launch iPhone Mirroring.app on macOS 15 Beta 1
@douo
douo / README.org
Created January 2, 2024 13:55
Journald Telegram Notifier
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active August 24, 2026 14:28
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

@CHIZI-0618
CHIZI-0618 / PuerNya_sing-box_fakeip_client_config.jsonc
Last active August 18, 2026 07:58
sing-box 带有 Proxy Providers 的客户端配置示例
{
"log": {
"level": "info",
"output": "sing-box.log",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "cloudflare",