Monday, April 28, 2008

The Penoi's QWRTY keyboard

The QWRTY Keyboard

This what happens when we over-used our keyboard. The Penoi's QWRTY keyboard.

Friday, April 18, 2008

Rapidshare Happy Hours Downloads

Rapidshare Happy Hours

Rapidshare is experimenting their new CAPTCHA system but for now, they will disable download tickets and captchas for all free users. Happy Hours downloading!!!!!

Quick and Dirty Mysql backup to Samba share

#mount the samba share

mount -t smbfs -o username=<username>,password=<password> //server/share /mnt/database

#backup database

for i in $(mysql-uroot -password -e "SHOW DATABASES"|tail +2); do mysqldump -uroot -ppassword $i | gzip -9 > /mnt/database/$i.sql.gz; done

#unmount the samba share
umount /mnt/database

Monday, April 14, 2008

Pinoy Funny Pictures and Travel Photos

Last December 2005, i started my first picture blog. At first it shows pictures of flowers and some experimental images. But after the success of Pinoy Jokes, i added pinoy funny pictures. It was in hiatus for almost a year, but now, i reviving it once more to give you my collection of never before seen funny pictures, travel photos and images taken from the internet. Please visit the site and see this Special Jumbo Siopao, shot from my officemate's merienda.

Monday, April 7, 2008

First edition of Playboy Philippines

Playboy Philippines picture

No, i will not give you a free download pdf edition of Playboy Philippines :) Due to the fact that this is the first edition of Playboy here in the Philippines, i wont miss the opportunity to have my own copy coz it will be a collectible in due time. I may say that this local version of Playboy has the censorship suited for a conservative(?) country. Yes, you will see half naked girls, but not as vulgar as those images that we always see on Tiktik, Sagad, and even on FHM.  It doesnt have articles like on FHM's Ladies Confession and Sex Positions. My girlfriend commented that this magazine is more of a Men's fashion magazine. Oh well, just grab a copy and see it for yourself.

Sunday, April 6, 2008

XMMS Mp3 Plugin in Backtrack Linux


tar xvzf xmms-mp3-fc1.tar.gz

cd xmms-mp3-fc1

cp /usr/lib/xmms/Input/

Tuesday, April 1, 2008

Windows backup using DLINK DNS-323

1. Install CWRsync:

2. Create ssh-rsa for the server(password-less rsync)
cd "c:\program files\cwrsync\bin"
ssh-keygen -t rsa -N '' (hit enter twice)

3. Upload your generated key to the backup server
rsync -av "/cygdrive/c/documents and settings/administrator/.ssh/" root@ipaddress:/home/root/

4. SSH to your DNS-323 and copy the new to authorized_keys
#cat /home/root/ >> /home/root/.ssh/authorized_keys

5. Create a Batch file in your Windows

REM *****************************************************************
REM CWRSYNC.CMD - Batch file template to start your rsync command (s).
REM By Tevfik K. (
REM *****************************************************************

REM This is where we can find our .ssh

SET HOME=C:\Documents and Settings\Administrator

REM Make environment variable changes local to this batch file

REM ** CUSTOMIZE ** Specify where to find rsync and related files (C:\CWRSYNC)

REM Set CYGWIN variable to 'nontsec'. That makes sure that permissions
REM on your windows machine are not updated as a side effect of cygwin
REM operations.
SET CYGWIN=nontsec

REM Set HOME variable to your windows home directory. That makes sure
REM that ssh command creates known_hosts in a directory you have access.

REM Make cwRsync home as a part of system PATH to find required DLLs

REM Windows paths may contain a colon (:) as a part of drive designation and
REM backslashes (example c:\, g:\). However, in rsync syntax, a colon in a
REM path means searching for a remote host. Solution: use absolute path 'a la unix',
REM replace backslashes (\) with slashes (/) and put -/cygdrive/- in front of the
REM drive letter:
REM Example : C:\WORK\* --> /cygdrive/c/work/*
REM Example 1 - rsync recursively to a unix server with an openssh server :
REM rsync -r /cygdrive/c/work/ remotehost:/home/user/work/
REM Example 2 - Local rsync recursively
REM rsync -r /cygdrive/c/work/ /cygdrive/d/work/doc/
REM Example 3 - rsync to an rsync server recursively :
REM (Double colons?? YES!!)
REM rsync -r /cygdrive/c/doc/ remotehost::module/doc
REM Rsync is a very powerful tool. Please look at documentation for other options.

REM ** CUSTOMIZE ** Enter your rsync command(s) here
REM You want to copy C:\Documents and Settings\Administrator\My Documents\ to DNS-323
rsync --progress -aurp --delete "/cygdrive/c/Documents and Settings/Administrator/My Documents/" root@dns.ip.address:/mnt/HD_a2/Mydocs/

6. Sched the backup using Windows Task Scheduler