Skip to content

Instantly share code, notes, and snippets.


Timothy J. Wood tjw

View GitHub Profile
huytd /
Last active May 18, 2023 02:13
Wordle in less than 50 lines of Bash


How to use:


Or try the unlimit mode:

danielpunkass /
Last active July 22, 2018 02:50
A simple lldb module for adding an "fsa" command to inject F-Script anywhere into any process
Automate loading of F-Script Anywhere into any app.
By Daniel Jalkut - @danielpunkass -
To set up:
0. Make sure you have FScript.framework installed in /Library/Frameworks (
1. Copy this script to ~/.lldb/
2. Add the following to your ~/.lldbinit file:
chrismiles /
Last active September 2, 2021 00:26
Lazy script to wrap Reveal lib load/start commands in one LLDB command.
""" File:
Add to ~/.lldbinit:
command script import ~/.lldb-scripts/
Q: Want to automatically load the Reveal lib on launch while debugging from Xcode?
A: In Xcode:
Add a Symbolic Breakpoint
Symbol: "UIApplicationMain"
Action: Debugger Command with value "reveal"
depth42 / gist:6886194
Last active December 25, 2015 00:09
The xib compiler in Xcode 5.0.1 always sets the scaling bit of all NSViews which results in dramatically reduced performance. Until Apple fixes this severe bug, we work around this by patching NSKeyedUnarchiver to clear the bit during decoding of the compiled xib files. By the way: We filed this bug three months ago under rdar://14359398.
View gist:6886194
@interface NSKeyedUnarchiver (Xcode5Fix)
@implementation NSKeyedUnarchiver (Xcode5Fix)
+ (void)load
[self exchangeInstanceMethod:@selector(decodeInt32ForKey:)
iloveitaly / graffle2hash.rb
Created December 16, 2011 18:34
Convert Hierarchical OmniGraffle Document to JSON
View graffle2hash.rb
#!/usr/bin/env ruby
# rubycocoa
require 'osx/cocoa'
include OSX
OSX.require_framework 'ScriptingBridge'
class GraffleConverter
def initialize
@graffle = SBApplication.applicationWithBundleIdentifier_("com.omnigroup.OmniGraffle")
mikeash / gist:1264419
Created October 5, 2011 13:28
Ideas for with blocks for weak variables
View gist:1264419
// function
void with(id obj, void (^block)(id obj))
// example use
with(blah, ^(Blah *blah) {
// use blah here
benstiglitz / sys_param-better.h
Created August 11, 2011 15:37
Hygenic and shadow-safe MIN.
View sys_param-better.h
#define MIN_PASTE(A,B) A##B
#define MIN_IMPL(A,B,L) ({ __typeof__(A) MIN_PASTE(__a,L) = (A); __typeof__(B) MIN_PASTE(__b,L) = (B); MIN_PASTE(__a,L) < MIN_PASTE(__b,L) ? MIN_PASTE(__a,L) : MIN_PASTE(__b,L); })
#define MIN(A,B) MIN_IMPL(A,B,__COUNTER__)