Back to top

delicious "thai" peanut sauce

This is a delicious peanut sauce. I can't really say that it fits a particular cultural style, but it is a blend of various different recipes and most closely resembles a "Thai Satay" sauce.

peanut sauce
oil
soy sauce
peanut butter
coconut milk (optional)
curry paste (optional)
cilantro (optional)
garlic (optional)
onion (optional)
brown sugar (optional)
hot sauce to taste

People Involved: 

Drupal Fun at the Shell

So, if you have Drupal installed and maybe even configured and now you're saying hey, what database do all of my installations use? Are my settings files secure?

Well, you already know that I love DreamHost because of the shell access and why?

Well, fun stuff like this!

Drupal's Scripts

There's a few fun examples in the base directory of your drupal install in the scripts folder. code-clean.sh will get rid of backup files and clean up the code. There are also examples of scripts to use to call the site's cron script (you are doing that, aren't you? here's why you should) Lots of fun examples in that scripts directory.

A little database security

Let's say you have a bucket of domains hosted on the same account so they are all in the same home directory and you just realized that your settings.php files are readable by other people with shell access (permissions of 644) which is necessary on many shared hosting accounts because of the way they run PHP, but not necessary on DreamHost using php running as your user. If someone has the information in your settings.php file, they could get into your mysql database with some decent privileges. Yikes! So, just use this one liner to find those files, and chmod them down to something more reasonable like 600.

Find the files and list the permissions:

find ./ -name 'settings.php' -exec ls -l {} \;

And then to tighten down those permissions:


find ./ -name 'settings.php' -exec chmod 600 {} \;

Great! Security, and only one line of commands.

To break down what's happening in that line, I use the find command to find files. ./ is expanded by the shell to look for anything in the form {stuff}.{stuff} such as "knaddison.com" so that it looks in all the directories that correspond to domains. I have lots of other directories in my home folder, but I know I don't need to search those so I don't want to waste my computer's time. Next, I use the -name flag to only look for the file called "settings.php". Fair enough. Then, I use the "exec" command to call chmod.

Category: 
People Involved: 

Wine Taste Test

Last week we had a few friends over for a wine tasting night. The system was simple:

Everyone was instructed to bring two of the same bottle of wine, from a Spanish speaking country, that cost less than $13 (each). When people walked in the door we took off the foil from one of the bottles and stuffed it into a brown paper bag that had a symbol on the outside. The bags were in a box so you couldn't see the symbol of the one you were using.

People Involved: 
timeline: 

Good Graphics

I'm not trying to get all tufte on you and point out neat the topic cloud is because it shows not only all of the topics on our site but also how many pages have been published in each category. No, for this installation of good graphics I just want to point out how successful this image is at getting people to think and read the entire story:

How to be an expert

Category: 
People Involved: 

Pages

Subscribe to Knaddison.com RSS