Blog Posts

Filter by:

BASH for loop

Posted in dev-sys on June 22, 2006

#!/bin/sh for FOO in a b c d e f; do echo $FOO done Outputs a b c d e f

Wordpress spam plugin

Posted in Development, php on May 21, 2006

After getting over 200 comment spams in 2 days I decided to implement an automatic spam blacklist system as manual parsing wasn't cutting it any more. Akismet seems good: We can’t stand spam. Who

PHP

Global search and replace using Vi

Posted in dev-sys on April 28, 2006

to replace all instances of - say - 127.0.0.1 with 10.0.0.1 in a file then using vi you can do: :%s/127.0.0.1/10.0.0.1/g if you mess it up then press u for undo. Of course if it's an important file

ssh logins without a password

Posted in dev-sys on April 28, 2006

Share ssh keys: client: cd ssh-keygen -t rsa the copy ~/.ssh/id_rsa.pub over to server server: mkdir .ssh cat id_rsa.pub >> .ssh/authorized_keys Job done

MySQL Workbench

Posted in Development on April 24, 2006

I just downloaded MySQL workbench 1.06 beta. I stumbled across it after finding this message on the DBDesigner forum page: Dear DBDesigner4 users, Due to several attacks against the DBDesigner4 forum

PHP

Enabling spell checking within FCKeditor

Posted in Development on April 23, 2006

CMS Made Simple uses the great GPL WYSIWYG editor FCKeditor and I noticed this morning that it has a spell checking facility. To get it to work, I: Installed aspell on my dev server: apt-get install

PHP

Clone a VMWare virtual machine

Posted in dev-sys on April 18, 2006

Simple one, you have a windows virtual machine and you want to copy it: Copy the folder the VM is in (assuming you use a folder per virtual machine) and rename it to the new host name Click on the

debian start-up script tip

Posted in dev-sys on April 16, 2006

If you've just installed something and want to make sure it starts on boot then the init.d script needs adding to the various run level folders as a symlink. It's a bit of a drag and it can be

← Previous Page 19 of 23 Next →