Posts

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.
TextMate support for git commit command: Open .bash_profile: vi ~/.bash_profile Insert command to support TextMate: # ------------------------ # TextMate support for git export PATH="$HOME/bin:$PATH" export EDITOR="$HOME/bin/mate -w" # End TextMate support for git # ----------------------------

symbolicatecrash from terminal

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

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,         ...     } }...

Open SSL

Save certificate: openssl s_client -showcerts -connect server.edu:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem

Git points to wrong bin

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

Free UI Stuff

Textures:  http://www.texturemate.com Useful UI stuff like polaroid frames, fire and other:  http://www.fuzzimo.com/archives/