Home » Archive

Articles Archive for July 2008

Code, Computing »

[30 Jul 2008 | No Comment | ]
Fix Colours in Mac OS X Terminal

just edit (or create the file) ~/.bash_profile, and enter the follwing line:
alias ls=”ls -G”
use nano/textmate, or vi

Code »

[24 Jul 2008 | No Comment | ]
SSH Authorize

scp ~/.ssh/id_dsa.pub username@arvo.suso.org:.ssh/authorized_keys

Computing »

[24 Jul 2008 | No Comment | ]
Mac edit crontab with nano (crontab -e)

Just run the code:
export EDITOR=nano
then its as per normal,
crontab -e

Code »

[24 Jul 2008 | No Comment | ]
CPanel - Where is the mysql Folder

The mysql folder on cpanel (WHM) servers can be found by using the command:
find / -name “mysql”
on my cpanel whm vps server I found it in: /var/lib/mysql/

Uncategorized »

[10 Jul 2008 | No Comment | ]

THis rocks, australia needs more of this!
Jott™ - Official Site

Code »

[8 Jul 2008 | No Comment | ]

Removing or changing “Powered by X-Cart” logo
To do so, you should modify skin1/main/prnotice.tpl.

Code »

[8 Jul 2008 | One Comment | ]

All search crawlers recognize robots.txt, so it seemed like a good idea to use that mechanism to allow webmasters to share their Sitemaps. You agreed and encouraged us to allow robots.txt discovery of Sitemaps on our suggestion board. We took the idea to Google and Microsoft and are happy to announce today that you can now find your sitemaps in a uniform way across all participating engines. To do this, simply add the following line to your robots.txt file:
Sitemap: http://www.example.tld/sitemap.xml

Code, Headline »

[6 Jul 2008 | 10 Comments | ]
Amazon s3 backup for web server files and SQL using bash

I needed a solid backup method for my clients websites, where I wanted to improve from the previous method of backing up to a separate host in the US Hostmonster. Hostmonster expires in 80 days, so why renew for $100+/year just to house a few GB of client backups.
I wanted to use the Amazon S3 service for my backups with an amazing reliability and a low monthly cost, so I  went ahead crawling the web for bash scripts that would suit my situation. The one I liked the most was Here, but …

Computing »

[6 Jul 2008 | One Comment | ]

ns1.duivesteyn.prodns.net.au (125.214.65.30)
ns2.duivesteyn.prodns.net.au (125.214.67.202)

Code »

[3 Jul 2008 | No Comment | ]

define(’PATH’, ‘/www/public/images/’);
function destroy($dir) {
$mydir = opendir($dir);
while(false !== ($file = readdir($mydir))) {
if($file != “.” && $file != “..”) {
chmod($dir.$file, 0777);
if(is_dir($dir.$file)) {
chdir(’.’);
destroy($dir.$file.’/’);
rmdir($dir.$file) or DIE(”couldn’t delete $dir$file
“);
}
else
unlink($dir.$file) or DIE(”couldn’t delete $dir$file
“);
}
}
closedir($mydir);
}
destroy(PATH);