Wednesday, April 19th, 2006
Earlier this year, Jon posted a Perl script that Scott wrote which strips out deprecated HTML tags and showed how to run this as a plugin for BBEdit. Slowly over the last few months I’ve convinced Jon to use TextMate as his text editor of choice. The one thing holding him back from fully migrating away from BBEdit was this plugin. Luckily, implementing it in TextMate is dead simple. Here’s how:
Right-click and save this Perl script to your computer and move it into your home directory. (Or wherever you’d like it to be.)
Open TextMate’s Bundle Editor. Window → Show Bundle ...
http://raven-seo-tools.com/blog/2913/deprecated-html-tag-stripper-for-textmate
Friday, February 10th, 2006
After testing a few too many SMTP servers and email addresses using Telnet, I finally broke down and wrote a perl script to do it for me. The SMTP Telnet test is handy, but the Debug mode for Net::SMTP does the same thing, and with less typing.
This script requires Net::SMTP and Net::DNS. Just set the $from variable to your own email address, and give the recipient address as the first argument. Or hack it however you like.
my $from = "you\@yourdomain";
my $email = $ARGV[0];
my $domain;
if ($email =~ /^[^\@]+\@([^\@]+)$/) {
$domain = $1;
} else {
die "Can't ...