Archive for the ‘Geekery’ Category

Find text within files

Thursday, May 1st, 2008
No Gravatar

Stuck trying to find text within files on Linux?

cd /directory_tree_you_want_to_search
find . -type f -exec grep -l "string to find" {} \; -print

Easy!

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


.htaccess redirect based on requested domain

Monday, April 28th, 2008
No Gravatar

Imagine you have a selection of domain names that point to the same site, are some of those domains specific to certain areas of your site?

Here’s how I redirect a domain name to a specific area on a site

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?cubecartexperts\.co.uk
Rewriterule ^(.*)$ http://www.i9000networks.com/landing-page/cubecart-experts/ [L]

You’ll also need the domain set in your virtualhost config like this

ServerName www.i9000networks.com
ServerAlias www.cubecartexperts.co.uk
ServerAlias cubecartexperts.co.uk

It is a much more helpful way of helping your users navigate your site.

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Wordpress Secret Key & Cookie Strength

Thursday, April 24th, 2008
No Gravatar

There is a little known feature in Wordpress 2.5 called “Secret Key“. If you’re upgrading from a previous version you probably won’t even know this feature exists as it only appears in clean installs where you have a brand new wp-config.php. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Crawl Rate Tracker and Wordpress 2.5

Tuesday, April 15th, 2008
No Gravatar

I really like Patrick Altoft’s Crawl Rate Tracker Plugin for Wordpress. I rolled it out on many of my sites and more of my client’s sites. I even used it on this site.

But my love for it was prematurely cut short. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Installing VMware Server & MUI on Ubuntu 7.10

Thursday, November 15th, 2007
No Gravatar

Installing VMware on Ubuntu 7.10 isn’t as easy as Ubuntu usually makes things out to be. None the less, my handy how to will sort you out. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


CubeCart and Wordpress Integration

Thursday, November 1st, 2007
No Gravatar

Following my 100% CubeCart orientated posts, here’s another late night hack.

It integrates a Wordpress blog into your store’s homepage.
You need a working Wordpress installation to start with, I installed mine in the standard /wordpress/ folder, none of your customers will see it anyway. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


FuzzyOCR inspired PDF scanning for SpamAssassin

Tuesday, October 16th, 2007
No Gravatar

I’ve just stumbled over a PDF scanning engine for SpamAssassin. In light of the recent PDF spam making it’s way round the internet I figured I’d give it a try.

This plug in scans the PDF pdf body and embedded images. Great, huh?

Here’s how I did it. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


FuzzyOCR for SpamAssassin on Ubuntu

Wednesday, October 10th, 2007
No Gravatar

FuzzyOCR is a plugin for SpamAssassin that analyzes the content and properties of images to distinguish between normal mail and spam.

I’ve been running it on some mail servers for a few months now and I’m very happy with the results. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


Really freakin’ simple mysql virtual hosting pure-ftpd

Wednesday, September 26th, 2007
No Gravatar

This article will guide you through installing pure-ftpd configured for virtual hosts using mysql as the authentication mechanism. It assumes you have a functioning Linux server running mysql already. (more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo


PHP 5 eAccelerator

Tuesday, September 18th, 2007
No Gravatar

This is a mini howto on installing eAccelerator.

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

Summary: Makes your PHP faster.

(more…)

Bookmark it del.icio.us | Reddit | Slashdot | Digg | Facebook | Technorati | Google | StumbleUpon | Window Live | Tailrank | Furl | Propeller | Yahoo