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
# http://kb.detlus.com/articles/git/how-to-update-remote-branch-list-on-local-machine/ | |
git remote update origin --prune |
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
# Delete local branch | |
git branch -D <branch> | |
# Delete remote branch | |
git push origin --delete <branch> |
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
# Fix Vagrant "Warning: Authentication failure. Retrying..." error | |
# Add this line to your Vagrant file | |
# https://github.com/mitchellh/vagrant/issues/5186 | |
config.ssh.insert_key = false |
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
mkdir converted; for i in *.jpg; do sips -s format png $i --out converted/$i.png; done |
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
sips -Z 640 *.jpg |
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
git shortlog -s | 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
istanbul cover _mocha -- -R spec |
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
- (IBAction)showNotification:(id)sender{ | |
NSUserNotification *notification = [[NSUserNotification alloc] init]; | |
notification.title = @"Hello, World!"; | |
notification.informativeText = @"A notification"; | |
notification.soundName = NSUserNotificationDefaultSoundName; | |
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification]; | |
} |
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
db.items.aggregate( | |
{ $group : {_id : "$fieldName", total : { $sum : 1 } } }, | |
$match : { total : { $gte : 2 } } }, | |
$sort : {total : -1} }, | |
$limit : 5 } | |
); |
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
git update-index --assume-unchanged <file> | |
git update-index --no-assume-unchanged <file> | |
git ls-files -v|grep '^h' |
NewerOlder