kieranbarnes Independent PHP, WordPress & CubeCart Programmer

One too many WordPresseseses

Posted on November 16, 2009

No wonder I have a head ache. locate wp-config.php | cat -n reports fifty WordPress installs. If only WP-Mu was any good.

Tagged as: , No Comments

Integra Rocker Cover Renovation

Posted on November 14, 2009

[nggallery id=13]

Filed under: Automotive No Comments

NTLM Authentication for apt-get’ed Ubuntu

Posted on November 4, 2009

Following on from NTLM Authentication on Ubuntu and Apache2 Revisited this morning, this is how we modify the Apache2 configuration provided by apt in Ubuntu.

NTLM Authentication on Ubuntu and Apache2 Revisited

Posted on November 4, 2009

It's been a while since I've had to build an NTLM integrated Apache2 server.
So I thought I'd take help from Ubuntu's packages and install LAMP from there like most people seem to be doing these days.

Once all that is up and running, you will need to download mod_ntlm_winbind. Its an ancient package I complied years ago from the samba source tree, good news is it still works.

VTEC Love

Posted on November 1, 2009

I did a photo shoot at the new VTEC Direct workshop last weekend. Lots of Honda related excitement!

DSC_1268Medium

Cleaning up Deleted Items Automatically from Exchange

Posted on September 14, 2009

Do you want to automatically delete Deleted Items in Outlook/Exchange or delete any type of mail over a certain age?

You can use Mailbox Manager to create a recipient policy to automatically delete all messages from users Deleted Items folder, at an interval you specify.

Exchange Server Journaling

Posted on September 10, 2009

I've recently had to setup Journaling on an Exchange Server for a client - it was quite an experience. So I've made these notes that will hopefully help.

Microsoft Exchange Server journalling lets you record a copy of, or journal, all email communications in your
organisation and send them to a dedicated mailbox on an Exchange Server.

CentOS / cPanel Firewall Setup

Posted on July 17, 2009

I almost like CentOS now. That doesn't mean I can't get used to this daft yum nonsense, but its alright.
I also almost like cPanel too. Its actually quite good when it works, who knows how to fix it when things go wrong? /scripts/fixeverything doesn't exactly fill me with confidence.

Insert Coin

Posted on July 17, 2009

Bored at work? This script connects to a JetDirect equipped HP printer and uses HP's control language to set the ready message on the LCD display. Takes an IP address and message on the command line. My favorite message is "INSERT COIN".

Keep in mind the limitations of the display when composing your clever verbiage.

insert_coin

#!/usr/bin/perl
# $Id: hpsetdisp.pl 11 2006-03-22 01:21:03Z yaakov $

# hpsetdisp.pl

use strict;
use warnings;

unless (@ARGV) { print "usage: $0 \"\"\n" ; exit }
if ($ARGV[3]) { print "Did you forget the quotes around your clever
message?\n" ; exit }

my $peeraddr = $ARGV[0];
my $rdymsg = $ARGV[1];
chomp $peeraddr;

use IO::Socket;
my $socket = IO::Socket::INET->new(
PeerAddr => $peeraddr,
PeerPort => "9100",
Proto => "tcp",
Type => SOCK_STREAM
) or die "Could not create socket: $!";

my $data = <
\e%-12345X\@PJL JOB
\@PJL RDYMSG DISPLAY="$rdymsg"
\@PJL EOJ
\e%-12345X
EOJ
;

print $socket $data;


Tagged as: , , , No Comments
Page 19 of 34« First...10...1718192021...30...Last »