Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

The easiest way to share localhost over the web - Showoff

This could come in handy: showoff.io is a service that creates a temporary or permanent public URL alias which will tunnel to your localhost.You can map to a general port or a particular vhost. You can even use a DNS CNAME forwarded to a permanent share.io URL, giving you a static name which always points to your machine, even if you switch networks. There are specific instructions for using it with a local WordPress install, working around WP’s canonical URL redirection. Oh, and it works through any firewall that allows outgoing ssh (port 22) connections. I could see this being useful for very quickly setting up/tearing down temporary demos for web development clients.

The easiest way to share localhost over the web – Showoff

WordPress Snippet: Add Uploadable File Types

My Documents Shortcode plugin lets you display uploaded attachments. WordPress limits what kinds of files you can upload, but you might need to upload additional types of files. Here’s an example of how to add new file types to the ones that WordPress will allow. In my case, I needed to upload a Keynote slideshow, which had the file extension .key: