How To Create and Apply a Patch File Using the diff and patch Commands

Author: , January 25th, 2016

Create the patch by using the diff -u command:

To use the patch file, apply it to the original. The patch command will create a backup with the extension .orig, and the original file will be updated:

You may need to add the flag –ignore-whitespace to the patch command.

How To Patch the Linux Ghost gethostbyname Buffer Overflow Vulnerability in glibc

Author: , January 28th, 2015

As per ARS Technica: “An extremely critical vulnerability affecting most Linux distributions gives attackers the ability to execute malicious code on servers used to deliver e-mail, host webpages, and carry out other vital functions.” To patch, run: yum update glibc Article: Amazon Alert: Original Advisory:

How To Patch the ShellShock bash Bug on Older or Beta AWS Linux AMI’s

Author: , October 1st, 2014

This is the standard upgrade method for AWS Linux AMI’s:

Or use this for the version 2012.09, 2012.03, or 2011.09 repositories:

For older AWS Linux AMI’s, you may not be able to use the standard upgrade method as described in this link: These are the steps needed to manually patch bash 4.1: […]

Disgusted with Apple

Author: , February 9th, 2013

Today my mother got a replacement 2TB Time Capsule delivered from the Apple store. It turns out that unlike most other vendors of home networking equipment, they no longer provide a network patch cable. Considering the wholesale cost of a cat-5 cable is less than $1, the lack thereof on a $299 purchase in unforgivable.

Amazon Linux Upgrade Woes

Author: , April 10th, 2012

Upgraded the OS on one of my Amazon server instances today. After rebooting I had the unpleasant experience of seeing my rpc.rstatd monitoring daemon stop functioning. It turns out that AWS changed the actual kernel version for this release, I guess to “celebrate” the fact that it is no longer “beta”. The difficulty is that […]

How To See The GIT History Of A File

Author: , January 30th, 2012

git log -p filename ~or~ git whatchanged -p filename

Spring Cleaning

Author: , April 4th, 2010

My systems got some TLC with the install of a variety of patches and software. Now at 10.6.3 – all seems well. Even re-installed Parallels to see if it still crashes my system. SO very happy to have a beta version of Unsanity’s Windowshade X working on Snow Leopard. Really huge productivity increase. Have no […]