Skip to content

Instantly share code, notes, and snippets.

View ParsifalC's full-sized avatar
🏀
Where Amazing Happens!

Parsifal ParsifalC

🏀
Where Amazing Happens!
View GitHub Profile
@Kyle-Ye
Kyle-Ye / XcodeLLM.md
Last active June 19, 2024 11:36
Enable XcodeLLM for ChinaSKU Mac on macOS 15 Beta 1

Warning

The following guide need to disable SIP to work.

Please confirm the risk of disabling the SIP by yourself.

Another solution which does not require disabling SIP is currently under investigation.

Step 0

Reboot into Recovery OS + Disable SIP

@ParsifalC
ParsifalC / libReveal.plist
Last active July 25, 2016 12:58
Reveal 越狱机子
{
Filter = {
Bundles = (
"com.sina.weibo",
"com.tencent.xin",
"com.tencent.mqq",
"com.apple.AppStore",
);
};
}
@jokefaker
jokefaker / PonyDebugger Install
Last active November 4, 2015 14:40
PonyDebugger Install Commands
# 去掉了curl的-sk参数,-s为静默状态(不提示错误),-k为允许不适用ssl
curl https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
# 报错 Could not find any downloads that satisfy the requirement pybonjour (from ponydebugger),运行下面的命令
# activate your virtualenv
source ~/Library/PonyDebugger/bin/activate
# update the ponyd source
sudo pip install -U -e git+https://github.com/square/PonyDebugger.git#egg=ponydebugger --allow-external pybonjour --allow-unverified pybonjour
# updates chrome dev tools source
@steipete
steipete / PSPDFUIKitMainThreadGuard.m
Last active May 27, 2024 12:11
This is a guard that tracks down UIKit access on threads other than main. This snippet is taken from the commercial iOS PDF framework http://pspdfkit.com, but relicensed under MIT. Works because a lot of calls internally call setNeedsDisplay or setNeedsLayout. Won't catch everything, but it's very lightweight and usually does the job.You might n…
// Taken from the commercial iOS PDF framework http://pspdfkit.com.
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Licensed under MIT (http://opensource.org/licenses/MIT)
//
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it.
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit.
#import <objc/runtime.h>
#import <objc/message.h>
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ndarville
ndarville / diff.mdown
Created July 23, 2012 20:33
Paul Heckel's Diff Algorithm

[Isolating Differences Between Files][paper]

Advantage over Other Algorithms

The diff output is more specific:

[I]f a whole block of text is moved, then all of it, rather than just the beginning and end, is detected as changed.

>The algorithm described here avoids these difficulties. It detects differences that correspond very closely to our intuitive notion of difference.