git auto-completion: Open .bash_profile: vi ~/.bash_profile Add script execution lines: if [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi # Git branch in prompt. parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " #End Git branch in promt.
Posts
symbolicatecrash from terminal
- Get link
- X
- Other Apps
Put *.crash, *.dSYM and *.app file to one folder. After that execute symbolicatecrash method as shown below: symbolicatecrash -v crash.crash > Symbolicated.crash Xcode 8: /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash Xcode 7: /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/ symbolicatecrash
FFMPEG
- Get link
- X
- Other Apps
Print out media metadata: ffprobe -v quiet -print_format json -show_format -show_streams output1200x900.mov { "streams": [ { "index": 0, "codec_name": "prores", "codec_long_name": "ProRes", ... }, { "index": 1, "codec_name": "aac", "codec_long_name": "AAC (Advanced Audio Coding)", ... } ], "format": { "filename": "output1200x900.mov", "nb_streams": 2, ... } }...
Git points to wrong bin
- Get link
- X
- Other Apps
Search for installed git paths. sudo find / -name git List of gits in my machine. /Applications/Xcode.app/Contents/Developer/usr/bin/git -> git version 1.9.3 (Apple Git-50) /opt/local/bin/git -> git version 1.7.9.2 /usr/bin/git -> git version 1.9.3 (Apple Git-50) /usr/local/git/bin/git -> git version 2.0.1 Places where to change $PATH vi ~/.bash_profile vi ~/.profile After execution of this line default version for git will be 2.0.1 export PATH=/usr/local/git/bin:$PATH