- Configure behaviors to dedicate a tab for debugging
- LLDB expressions can modify program state
- Use auto-continuing breakpoints with debugger commands to inject code live Create dependent breakpoints using
breakpoint set * --one-shot true
po $arg1
($arg2, etc) in assembly frames to print function arguments- Skip lines of code by dragging Instruction Pointer or
thread jump --by 1
Pause when variables are modified by using watchpoints - Evaluate Obj-C code in Swift frames with
expression -l objc -O -- <expr>
- Flush view changes to the screen using
expression CATransaction.flush()
- Add custom LLDB commands using aliases and scripts. Alias examples:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation | |
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
# Easy Peasy | |
ffmpeg -i video.mp4 video.webm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'xcodeproj' | |
name = 'test_copy' | |
proj = Xcodeproj::Project.open('test.xcodeproj') | |
src_target = proj.targets.find { |item| item.to_s == 'test' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "escape", | |
"width": 64, | |
"align": "left" | |
}, | |
{ | |
"type": "exitTouchbar", | |
"align": "left", | |
"image": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>1 1 1 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>SFMono-Regular - 12.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>1 1 1 1</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pass as parameter a redbubble image link like https://ih1.redbubble.net/image.379381203.9755/st%2Csmall%2C420x460-pad%2C420x460%2Cf8f8f8.lite-1u2.jpg | |
url="$1" | |
newUrl=${url//420/512} | |
newUrl=${newUrl//460/512} | |
newUrl=${newUrl//f8/00} | |
curl "$newUrl" > "$(uuidgen).jpg" |