This post is a little off-topic, but when setting up a development box, I needed to have a neutral smtp server setup, so I used smtp.gmail.com:587 for outbound test emails.
Important step 1 is this (running on ubuntu)
apt-get install libsasl2-modules
Step 2. is to follow this tutorial:
https://help.ubuntu.com/community/GmailPostfixFetchmail
I’m in the process of converting a MCMS generated site over to php / unix environment and was suffering from the “default.htm” problem. So I needed to copy all the default.htm files to index.htm. Was sitting there playing with some shell scripting for a minute and then found this GREAT link: awesome one-liner:
for f in `find . -name '*replaceme.jpg'` ; do mv $f ${f/replaceme/withme}; done
Ok, so I had to see how this thing works… I’ve used bash for several years and never saw this ${f/x/y} syntax.. looking at the bash reference guide, it looks like “shell parameter expansion”. Very convenient.. if only I had read the manual sooner….