A random collection of git commands that were helpful to me, and might be helpful to you.
git log --grep="search query"
| var isMSIE = /*@cc_on!@*/false; | |
| var isIE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; |
| /** | |
| * convert a JSONDATE (something like /Date(1284604200000-0700)/) to something more human readable | |
| */ | |
| function jsonDate(str) { | |
| return new Date(parseInt(str.replace(/\/Date\((.*?)\)\//gi, "$1"), 10)); | |
| } | |
| // jsonDate('/Date(1284604200000-0700)/'); | |
| // -> Wed Sep 15 2010 19:30:00 GMT-0700 (PDT) | |
| /** | |
| * Quick/dirty polyfill for placeholder attribute | |
| * Requirements: jQuery | |
| * Usage: | |
| * var placeIt = Placeholder.init('input#search'); | |
| */ | |
| var Placeholder = (function() { | |
| // private methods |
| /** | |
| * Check if :before pseudo selector is supported. This can be useful for sprites. | |
| * usage: if(!pseudoTest()) { | |
| * // do polyfill | |
| * } | |
| */ | |
| var pseudoTest = (function() { | |
| var cache; | |
| return function() { |
| git archive --format zip --output /full/path/to/zipfile.zip master |
| /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-media-stream |
| List just aliases | |
| $ git config --get-regexp alias | |
| List all config parameters | |
| $ git config --list |
| Open FileMerge from command line | |
| opendiff | |
| If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer |
I hereby claim:
To claim this, I am signing this object: