Skip to content

Instantly share code, notes, and snippets.

# ~/.lldbinit-Xcode
# Apple private methods
command regex ivars 's/(.+)/po [%1 _ivarDescription]/'
command regex methods 's/(.+)/po [%1 _methodDescription]/'
command regex shortmethods 's/(.+)/po [%1 _shortMethodDescription]/'
command regex nextviewcontroller 's/(.+)/po [%1 _nextViewControllerInResponderChain]/'
command alias nextvc nextviewcontroller
# Convenience
#!/bin/sh
PLIST_BUDDY=/usr/libexec/PlistBuddy
function add_compatibility() {
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \
"$1/Contents/Info.plist"
}
function has_compatibility() {
@ultragtx
ultragtx / github_clone_in_desktop_bookmark
Created May 16, 2014 09:38
github_clone_in_desktop_bookmark
javascript:window.location = document.querySelector('a.minibutton.sidebar-button.js-conduit-rewrite-url').getAttribute('data-url')