knife cookbook site install fails

I assume due to very old, previously installed vendor branches. Do the following:

Cancel the merge the failed command put you into:
git reset --hard HEAD

Delete the problematic vendor branch:
git branch -D chef-vendor-

ATTENTION make sure you did not modify the vendor branch yourself - you'll lose those changes!!!

Delete a remote branch with git

Delete the local branch

git branch -d branch_to_delete

Delete the remote branch:

git push origin :branch_to_delete

NOTE Make sure you put the colon in front of the branch name

Thanks, @nistude

Display time of file

$ brew install coreutils
$ gdate -r file.ext '+%F %T'

Will print:

2007-06-27 20:03:44

Ext3 on Mac OSX Lion

To be able to read ext3 formatted disks on Mac OSX Lion (10.7) you need to install a current FUSE implementation (macFUSE is discontinued, but there are several newer projects):

Then, you need to install the filesystem itself. The fuse-ext2 is just right (and supports ext3 as well):

fuse-ext2

After installing both packages you should be able to plug-in a ext3 formatted linux disk and it should show up in your...

Save file in vi using sudo

If you edit a file with vi as normal user, but need superuser rights to save it, you can use this sequence to save it using sudo:

:w !sudo tee %

/hat tip to @nistude