Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

Christopher http://horrell.ca/

« Newer Snippets
Older Snippets »
5 total  XML / RSS feed 

Launchd item for starting MySQL

This will start MySQL with a low priority on reboot

<?xml version="1.0" encoding="UTF-8"?>
DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Labelkey>
        com.mysql.MySQL</string>
        <key>LowPriorityIOkey>
        />
        <key>ProgramArgumentskey>
        
                /usr/local/mysql/bin/mysqld_safestring>
        </array>
        <key>RunAtLoadkey>
        />
dict>
</plist>

Adding "post to" links for del.icio.us, digg, and ma.gnolia in Textpattern

Here's how to add "post to" links for del.icio.us, digg, and ma.gnolia to individual articles in Textpattern

del.icio.us


              
post to <a href="http://del.icio.us/post?url=&title=">del.icio.usa> 



digg


              
post to <a href="http://www.digg.com/submit?phase=2&url=">digga>



ma.gnolia


              
post to <a href="http://ma.gnolia.com/bookmarklet/add?url=&title=">ma.gnoliaa>



Clicking one of the those links will automatically post a permanent link for an article and, in the case of del.icio.us and ma.gnolia, the title to one of the above services.

Garlic Rosemary Mashed Potatoes

Here's another winner I busted out at Thanks Giving. I modified it slightly in that I used a potato ricer so as not to over mash and render them gluey (originally found on http://www.allrecipes.com/ and tips specifically from here)

Ingredients
2 pounds potatoes 
4 cloves garlic 
1/4 cup freshly grated 
   Parmesan cheese 
1 tablespoon butter or margarine 
1 tablespoon chopped fresh rosemary 
1/2 cup Evaporated Lowfat Milk 
salt and ground black pepper to taste


Directions
1 PLACE potatoes and garlic in large saucepan. Cover 
   with water; bring to a boil. Cook over medium-high heat 
   for 15 to 20 minutes or until potatoes are tender; drain. 
2 RETURN potatoes and garlic to saucepan. Mash potatoes and
 garlic together with a potato ricer. Add cheese, butter and 
   rosemary; stir until smooth (but not too much). Gradually stir in evaporated milk. Season with salt and pepper.

Switching a working copy with subversion

If you find that the location to a subversion repository has changed, do this:

svn switch --relocate http://textpattern.com/svn/repos/current/textpattern http://svn.textpattern.com/current/textpattern


Where the old url is http://textpattern.com/svn/repos/current/textpattern

And the new one is http://svn.textpattern.com/current/textpattern

To see if it worked, do this:

svn info | grep URL


And you should see something like this:

URL: http://svn.textpattern.com/current/textpattern


(source: Switching a Working Copy)

Cranberry Chutney

I made this for last Thanks Giving (Canadian) and it was well received by all, even my mother who likes her festive dinners to be on the traditional side. (originally found on http://www.allrecipes.com/)

Ingredients:
1 cup water 
3/4 cup white sugar 
1 (12 ounce) package fresh cranberries 
1 cup apples - peeled, cored 
   and diced 
1/2 cup cider vinegar 
1/2 cup raisins 
1/2 teaspoon ground cinnamon 
1/4 teaspoon ground ginger 
1/4 teaspoon ground allspice 
1/8 teaspoon ground cloves


Directions
1 In a medium saucepan combine the water and sugar. Bring 
   mixture to a boil over medium heat. Add the cranberries, 
   apples, cider vinegar, raisins and spices. Bring to a boil, 
   then simmer gently for 10 minutes stirring often. 
2 Pour mixture into a mixing bowl. Place plastic wrap 
   directly on the surface of the sauce. Cool to room temperature 
   and serve or cover and refrigerate. Bring chutney to room 
   temperature before serving.
« Newer Snippets
Older Snippets »
5 total  XML / RSS feed