Daily Archives: April 16, 2016

Always Be Prepared . . .

Or Oops!

Nothing much new this morning, just the same old, same old. Coffee, breakfast, and webstuff.

About 3:30 I headed into Conroe and the Sam’s Club to pick up the prescription I dropped off yesterday. And always being prepared saved me $73.62.

For some reason every time I pick this one up, the price is all over the place. Sometimes it’s $25, sometimes it’s $42.17, and today, it was $83.62. But it should only be $10.00

So I always carry a printout of my Walmart/Sam’s Club prescription history when I go to pick up this particular one. It shows the price I’ve paid in the past. And strangely, the clerk couldn’t find the $10 cost, until I showed him my list, and then he found it immediately.

Funny how that worked out.

On the way home, I made a Kroger’s stop to pick up a couple of Kroger-specific items – 2 bags of their Private Selection Coffee, and a couple of containers of  their really good Cranberry Fruit & Nut Salad.

Then it was home just in time for Jan to have a great dinner ready for us. One that starts with Chicken Rice-A-Roni, adds large chunks of grilled chicken, and some extra spices, and gets served with a side of the Cranberry Salad, and some sliced tomatoes. Really good.

Tomorrow night we’ll finish off the Cheesy Beef & Potato Casserole from the other night., with hopefully, some more of the Cranberry Salad. Looking forward to it.

Under the Oops! heading, here’s how to destroy your company with one line of Unix code. And this is it.

rm -rf {foo}/{bar}

‘rm’ is the ‘remove’ command, i.e. delete
’r’ stands for ‘recursive’ which delete this directory
and every subdirectory below it
(the article has this command wrong)

‘f’ is the ‘force’ command, which means ‘Don’t give me any of those pesky “Are You Really Sure You Want To Delete This?” messages.

But that wasn’t his only mistake. Because he had a error in the script he wrote that contained this command, the variables ‘foo’ and ‘bar’ were undefined.

So when he ran the script, ‘rm –rf’ started at the very top directory (called ‘root’) and began deleting everything under it. In other words, EVERYTHING!

But wait, it gets worse.

He had correctly done his backups before he ran this script to clean up some old Temp files and other unwanted stuff, BUT he left them mounted, i.e. online. So when ‘rm –rf’ was finished with his main drive, it moved over to his backup drives and started deleting everything on them too.

OOPS!

Passport America, Save 50% on Campsites
Sign up for Passport America before 4/30 and get 4 extra FREE Months!

And it was the owner of the company who did this. He owned a small website hosting company with about 1500 customers, so he actually deleted all of his customer’s websites.

This is the reason that, although I host all my websites on Godaddy, where their backups have backups, I have full copies of all my client’s data on my  hard drive, which is backed up on two different external hard drives.

You can’t be too careful.


Thought for the Day:

A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man. – Lana Turner

asdfasdf