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 | |
# nth-commit.sh | |
# Usage: `nth-commit.sh n [branch]` | |
branch=${2:-'master'} | |
SHA1=$(git rev-list $branch | tail -n $1 | head -n 1) | |
git checkout $SHA1 |
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 | |
# copy_reveal.sh | |
# Ref: https://gist.github.com/airdrummingfool/9557257 | |
APPBUNDLEPATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/" | |
REVEALFRAMEWORKPATH="/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib" | |
if [ -f "${REVEALFRAMEWORKPATH}" ] && [ "${CONFIGURATION}" == "Debug" ]; then |
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
""" File: reveal.py | |
1. Add to ~/.lldbinit: | |
command script import ~/.lldb-scripts/reveal.py | |
2. Add Run Script Build Phase to copy libReveal.dylib into the bundle | |
(see https://gist.github.com/airdrummingfool/9557257) | |
Q: Want to automatically load the Reveal lib on launch while debugging from Xcode? | |
A: In Xcode: | |
Add a Symbolic Breakpoint |