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.