How to split a big tar files? split Tar - How to split a big tar files?

How to split a big tar files?

How to split a big tar files? Easy 😉 split -b 100000000 thisfile.tar.gz thisfile.tar.gz This will split your file into 100 MB parts with the thisfile name and suffix of gzaa, gzab, gzac, etc… Then how to join them? Easy too 😉 cat thisfile.tar.gz?? > thisfile.tar.gz Until next time 🙂

Read More »
Exim Tricks Exim - Exim Tricks

Exim Tricks

Server owner, did you ever hit by tons of spam then bring your server down to it knees? Well, I have a few exim tricks that you can use to quickly remove them from Exim queue. I’m assuming that you already have the knowledge of what is SMTP, MTAs, and can use UNIX shell prompt. Start with Message-ID Exim Message-IDs…

Read More »
How to keep the text in one line inside a table? How-To table - How to keep the text in one line inside a table?

How to keep the text in one line inside a table?

Simple, use nowrap tag. Example: [html]<table> <tr> <td nowrap>Do not break this very loooooooooooooooooooooooooooooooooooooong sentence!</td> </tr> </table>[/html] Or: [html]<table> <tr> <td nowrap="nowrap">Do not break this very loooooooooooooooooooooooooooooooooooooong sentence!</td> </tr> </table>[/html]

Read More »
Redirect visitor to PR URL redirect - Redirect visitor to PR URL

Redirect visitor to PR URL

How to redirect visitor to domain which have more PR? Requirement: – Apache – htaccess enabled. Case 1, PR is on domain.com Code: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule .* http://domain.com/ [L,R=301] Case 2, PR is on www.domain.com Code: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule .* http://www.domain.com/ [L,R=301] How to use: – Choose one…

Read More »
Linux File Permissions and Umask: A Practical VPS Guide

Linux File Permissions and Umask: A Practical VPS Guide

If you’ve ever fixed a permission error by randomly typing chmod 777 and hoping for the best… yeah, that’s the mistake we need to talk about. On a VPS, sloppy file permissions and bad umask settings can quietly open things up for other users or processes in ways you really don’t want. The good news: once you understand the basic…

Read More »