Inspired by this link: $ git diff -w | grep "diff –git" | awk ‘{print $4}’ | sed ‘s/^b\///’ | \ xargs -i git add ‘{}’
Category: Uncategorized
Migrating Outlook PST folders to Gmail
Iāve got about 20GB of email, going back to 2000 (Iām of the belief that you should save everything, with storage getting more and more free every year). Ā Unfortunately Iāve been using Outlook the whole time, so Iām saddled with this email in the form of PST files that are easily corrupted. Ā Backing them up… Continue reading Migrating Outlook PST folders to Gmail
Pretty Git notification emails using PHP
In this post I showed how to configure Smart HTTP on Virtualmin.Ā What was immediately obvious upon your first commit was that the alert emails stunk.Ā There were no code diffs and as plain text, they were largely unreadable anyway. There are a lot better emailing projects that show nicely-formatted HTML mails, with diffs, but… Continue reading Pretty Git notification emails using PHP
Controlling element caching in CakePHP 2.3
Element caching is critical to site performance if used judiciously.Ā Sometimes you want more control over the cache expiration than you get automatically. In CakePHP 1.X, you used to be able to do this as described here: <?php $key = ‘my_cached_element’; echo $this->element(’my_element’, array(’cache’ => array( ‘time’ => $do_update ? ‘-1 day’ : ‘+1 day’,… Continue reading Controlling element caching in CakePHP 2.3
My experience with Windows 8 so far
First a caveat: I’m no Redmond fanboy, but neither am I a hater and think the company’s products are always derivative crap (I use Windows Media Player and not iTunes for a reason).Ā Sure, the software and hardware is never as pretty as Apple’s stuff, but that’s what you get for having an open platform… Continue reading My experience with Windows 8 so far