Archive for the ‘Internet’ category

Google Attachment Warning

April 20th, 2010

I think you might often missed to attach file when sending email. But Google (Gmail) has its capability to detect any word “is attached” inside mail body. So you will get a warning like this :

Google Attachment Warning

Google Attachment Warning

Something useful from Google, good job! :)

Exclude File or Folder from Archiving

April 7th, 2010

I’m just wanna create a note, because sometime this simple thing is forgotten. To exclude a file or folder from archiving process, we can use –exclude option behind tar command.

Example :
tar -czvf file-result.tar.gz /path/to/file/or/folder/for/archiving –exclude “/path/to/exclude”

MySQLdump Without Locking Tables

April 6th, 2010

For urgent reason like preventing website down when dumping MySQL, we need to skip lock-tables. You can use -–skip-lock-tables and –skip-add-locks option with mysqldump command.

Example :
mysqldump -u 412843_reebonzsg -p –skip-add-locks –skip-lock-tables db_name \
> dbfile_dump.sql