mochahochabeachside.com

Tag: wordpress

Auto-install of WordPress Theme from CLI

by on Mar.25, 2010, under Blog, Scripts, wordpress

If you're like me, and you still like to install your WordPress themes from the command line (or you were 3/4 asleep and forgot WordPress now has a nice, easy-to-use auto-installer built into the admin interface), you know it can be a pain.  You have to download the file, unzip it, make sure it's right, delete the archive, chwon the files, etc...  It can be a pain.

So, I created a nice little script to take care of all of that.  wpthemeget will take a download URL from the WordPress Themes directory (in the format of http://(www.)wordpress.org/extend/themes/download/themename.ver.zip (or .tar.gz, or .tgz)), and will download, unarchive, chown, and remove the downloaded file, with no muss or fuss...  The output?:

root@fyre [.../wp-content/themes]# wpthemeget http://wordpress.org/extend/themes/                                        download/motion.1.0.4.zip
Downloading theme motion.1.0.4.zip...
Theme is a zip archive...
Unzipping... [COMPLETE]
...Removing downloaded archive file... removed `motion.1.0.4.zip'
...Chowning files... [COMPLETE]
...Installation Complete!

No muss, no fuss. The only caveat is that you have to be in your themes directory when you run it.  Future versions probably won't have this requirement, but hey, I hacked this out when I was barely awake, on heavy medication, and repeatedly falling asleep at the keyboard.  At one point, I had to delete something like 40 lines of "zzzzzzzzzzz......" because I fell asleep with my finger on the key.  Fortunately, vi treated it as all one paragraph so '<esc> dd' did the job.  The code for this little script is after the break.  Grab it, chmod it to exec, and drop it in /usr/local/bin, and it'll be good to go anywhere on your system, for all your blogs.  Happy blogging!

(continue reading...)

Leave a Comment :, , more...

Signups « WordPress.com

by on Nov.19, 2009, under Interesting

Image representing WordPress.com as depicted i...
Image via CrunchBase

Signups -- Stats « WordPress.com.

Maks me wonder what happened to cause that spike around the 10th of November.  That's a big jump. From approximately 20,000 to approximatel 65,000 for one day. O_o  Perhaps an over-zealous spam bot managed to break through their systems...  but still, a difference of 45,000 accounts? I'll be there's a great story behind that.  I'd save the image and host it here so it would keep a month had passed since that day, but the stats display is in Flash, and - quite honestly - I don't feel like tracking down how to generate the image in a saveble format.  I'm sending an email to WordPress to see if they care to guess about it *shrug*. I'm honestly just curious, myself.

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...