Archive for May, 2009
Javascript/PHP Linkerizer (link creator)
by admin on May.19, 2009, under Utility
Why would you need a linkerizer? Well, some stuff is hard to directly download. This makes it easy. You can also send requests to this page via either POST or GET. Go ahead and give it a try.
Also, if you’re using Firefox, you can make using this little script even easier. Right-click in the text-entry field and select the option “Add a Keyword for this Search” — The Name can be whatever you like, and I’ve found “link” to be a good value for the Keyword. Hit “Add” and you can use it right from your address bar. Prepending any location on the web with the word “link” will route that location to this script.
For example: “link http://www.google.com/intl/en_ALL/images/logo.gif” will take you to:
http://colinmccann.com/utility/linkerizer?url=http://www.google.com/intl/en_ALL/images/logo.gif
Enjoy. If you’ve got any suggestions as to how this could be improved, feel free to say so in the comments.
Automated Email-to-SMS gateway PHP script
by admin on May.07, 2009, under Code
I’ll cut right to the awesome. This script runs every minute, checks an IMAP mailbox (that happens to be my work email), and detects if any new messages have been received. If so, all HTML and special characters are stripped (leaving plain ASCII text) from the message body, and truncated to 150 characters. Next, the script sends me a text message through Verizon’s email gateway “from” the original sender’s email address. (continue reading…)