Category: Tools

  • Bash script to bulk-ban IP addresses found by WordFence (using csf, geoiplookup)

    We currently use the excellent WordFence plugin on almost all of the WordPress installations we host. Once a week or so, WordFence will email a list of IP addresses it’s detected that are attacking a given site — i.e. they’re trying to brute-force something on the server, guess passwords, take advantage of possible software vulnerabilities.…

  • Very cool Moves app visualization

    If you use the neat Moves app (it tracks walks, runs, bicycle rides, transportation, all automatically) this is a very cool visualization tool to see your history: Move-o-Scope Here’s my accumulated data so far: Link to share this: https://gabrielserafini.com/blog/2014/05/14/very-cool-moves-app-visualization/

  • Really useful batch geocoding page

    If you need to convert a lot of addresses to latitude / longitude, this is an excellent resource:’ http://stevemorse.org/jcal/latlonbatch.html Link to share this: https://gabrielserafini.com/blog/2013/07/03/really-useful-batch-geocoding-page/

  • How to locate your php.ini file

    When you need to know where the php.ini configuration file is on your server, here is a handy way to find it: php -i | grep php.ini Give it a try. Link to share this: https://gabrielserafini.com/blog/2010/07/15/how-to-locate-your-php-ini-file/

  • How to Unix tip: Find and remove files older than a certain time period

    If you find a directory such as /tmp/ filling up with old and uneeded files, here’s a quick tip for finding and removing what you don’t need anymore. Note that the delete function WILL remove everything it finds, so please understand exactly what it is you are doing here before running that command. Command to…

  • WordPress 2.9.1 is now out

    We’ll be upgrading most of our clients to the latest version of WordPress 2.9.1 now that they’ve resolved a number of the issues we were seeing with the 2.9 release.  Good job guys on getting a quick fix out! Link to share this: https://gabrielserafini.com/blog/2010/01/05/wordpress-2-9-1-is-now-out/

  • How to fix 301 error when importing blog posts including images from a WordPress.com blog into a new WordPress.org blog

    The current import script (as of WordPress 2.8.6) is broken when it comes to successfully importing images from WordPress.com. The error you see is something like Remote file error: Remote file returned error response 301 Moved Permanently Fixing this involves adding a couple of lines to a core WordPress file. Hopefully a future version of…

  • Vogon Poetry is now available in the App Store!

    I’m proud to announce the immediate availability of our Vogon Poetry application for iPhone and iPod Touch. You can get it in the App Store for $2.99. Click here to check it out! Link to share this: https://gabrielserafini.com/blog/2009/04/11/vogon-poetry-is-now-available-in-the-app-store/

  • How to: Get rid of widows in your WordPress posts with Widon’t plugin

    I was just working on making some updates to the backend WordPress code for the Principia Pilot website (http://principiapilot.org/) and noticed widows in some of the stories. Widows are the typographic term for a single word on a line at the end of a paragraph. I thought about the solution to this problem (basically add…

  • How to: Automatically add a default set of Custom Fields to each post in WordPress

    One of the neat things about WordPress is how easy it is to add custom metadata to a given page or post that you can then use in a template to display structured information. I’ve been using this technique for a while now to extend the basic WordPress elements of title, body, excerpt, etc and…

sell diamonds