Chris Schuld's Blog

personal musings on the composition of software

Extracting Smarty variables from source

You can extract all of the variables in use from a Smarty template using a simple call to *nix grep with a trivial regex expression. Here is the command: grep -o “\{\$[-_a-zA-Z0-9]*\}” my-template.tpl

Dumping Addresses from phplist

We recently moved away from phplist (goodbye phplist — we loved you for a while but now we need more power). Here is the SQL used to rip our users out of the main list. Attributes 1 and 2 are the first and last name. SELECT DISTINCT phplist_user_user.email AS Email, phplist_user_user_attribute1.value AS FirstName, phplist_user_user_attribute2.value AS [...]

Installing vzdump on CentOS 5.4 (32-bit)

There are a few items required for installing vzdump for OpenVZ on 32bit CentOS.

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments