This file contains hidden or 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
# modified to use gdate for macos -- obtain 'gdate' by running `brew install coreutils` | |
startdate=2020-01-01 | |
enddate=2020-12-31 | |
# controls the link format for each day: | |
# [[ $linkformat | $displayformat ]] | |
linkformat="%Y-%b-%d-%a" | |
displayformat="%d" | |
# marker for empty days in calendar view |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
- XCode is installed (via the App Store)
- XCode command line tools are installed (
xcode-select --install
will prompt up a dialog) - Java
Install Homebrew:
This file contains hidden or 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
find . -type f -name '*.m' | wc -l |
This file contains hidden or 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
# Explore all files in a directory and print out the file name and the number of lines in that file, sorted from large to small | |
# http://stackoverflow.com/questions/1358540/how-to-count-all-the-lines-of-code-in-a-directory-recursively | |
find . -name '*.m' | xargs wc -l | sort -nr |
This file contains hidden or 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
# Author: @pqnga | |
# This gist is inspired from an answer from stackoverlow.com | |
# http://stackoverflow.com/questions/13574933/ios-crash-reports-atos-not-working-as-expected/13576028#13576028 | |
# Use it when you want to symbolicate a crash log like this: | |
# 5 MyApp 0x0044e89a 0x29000 + 4348058 | |
def symbolicate(app_file, architecture, log_line) | |
cmd_get_slide = "otool -arch #{architecture} -l #{app_file} | grep -B 3 -A 8 -m 2 \"__TEXT\"" | |
result = %x[#{cmd_get_slide}] |