Skip to content

Instantly share code, notes, and snippets.

View neror's full-sized avatar

Nathan Eror neror

View GitHub Profile
@capyvara
capyvara / gist:5230032
Last active May 18, 2018 19:25
Process the Unity generated Xcode project to allow dSYM generation on Release but keeping the distribution size the same, only tested in a clean generated project.
// Adjust dSYM generation
var xcodeProjectPath = Path.Combine(xcodeProjectDir, "Unity-iPhone.xcodeproj");
var pbxPath = Path.Combine(xcodeProjectPath, "project.pbxproj");
var sb = new System.Text.StringBuilder();
var xcodeProjectLines = File.ReadAllLines(pbxPath);
foreach (var line in xcodeProjectLines)
{
// Remove from OTHER_LDFLAGS
@johntyree
johntyree / getBlockLists.sh
Last active June 4, 2025 15:24
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@jeredb
jeredb / Log to Day One.scpt
Created February 24, 2012 19:26
Based on Brett Terpstra's Log Taskpaper Archives to Day One, except for Omnifocus.
(*
Jered Benoit
jeredb.com
Omnifocus -> Day One Daily Completed Task Log
Based upon [Version 1.0] [1] of [OmniFocus - Weekly Project Report Generator] [2]
Originally Authored by Chris Brogan and Rob Trew
February 5, 2012
@neror
neror / example_run
Created March 12, 2011 23:55
Trace call stacks of random objc methods
neror@neror-laptop:~/Work/Cocoa/DTrace$ ps aux|grep FTAnimationExamples
neror 21643 0.0 0.0 2435120 544 s000 S+ 6:21PM 0:00.00 grep FTAnimationExamples
neror 21570 0.0 0.3 777004 27784 ?? SX 6:12PM 0:02.81 /Users/neror/Library/Application Support/iPhone Simulator/4.3/Applications/C624085B-7FA1-4860-BE75-EEF244470FBF/FTAnimationExamples.app/FTAnimationExamples
neror@neror-laptop:~/Work/Cocoa/DTrace$ sudo ./traceMethodFlow.d -p21570 "FTAnimation*" "-fade*"
dtrace: script './traceMethodFlow.d' matched 63636 probes
CPU FUNCTION
1 -> -fadeAnimationFor:duration:delegate:startSelector:stopSelector:fadeOut: FTAnimationManager
1 -> +animationWithKeyPath: CAPropertyAnimation
1 -> +alloc NSObject(NSObject)
1 -> +allocWithZone: NSObject(NSObject)