How to Remove Trailing Slashes in Nginx

I just discovered this rewrite rule that will remove all trailing slashes from URLs in Nginx. With the rule in place, you can force all requests for http://example.com/about/ to use http://example.com/about.

rewrite ^/(.*)/$ /$1 permanent;

WordPress Prevents Directory Listing of Plugins

Empty index.php for plugins directory

via #8699 (Empty index.php for plugins dir) – WordPress Trac.

Good to see this is now part of WordPress.  I always did it manually for my sites.

Post to Twitter Using the Command Line

If you want to post to Twitter using the linux command line, you can use this little bash script:

#!/bin/bash

username=YourUsernameHere
password=YourPasswordHere

curl -u $username:$password -d status="$1" http://twitter.com/statuses/update.xml

Add it to a file called “twitter” in the ~/bin directory of your home directory.

You may have to refresh your bash profile by running one of these commands:

. ~/.profile

. ~/.bash_profile

Enjoy!

Bookmarks for Monday, March 30th

Bookmarks for Saturday, February 28th

Bookmarks for Sunday, January 18th

Bookmarks for Thursday, January 15th

Bookmarks for Saturday, January 10th

Woot RSS Feed Update

I just logged into Feedburner and was amazed that my Woot product feed has 243 subscribers!

woot-feedburner

Do you want to join the 243 people? Subscribe here!

Another reason to make regular backups

Blogging platform JournalSpace (which I’d never heard of to date) has ceased to be, following a wipe-out of the main database for which there was no back-up in place. According to the JournalSpace blog, the database was overwritten as a result of a malicious act from a disgruntled ex-employee.

via JournalSpace Drama: All Data Lost Without Backup, Company Deadpooled.

It’s easy and inexpensive to develop a comprehensive backup system.  Why was this allowed to happen?