Recursively extract files

Posted by Sameer on February 11, 2010 in Hosting |

i want to recursively unzip into proper folder so i have /home/abdullah/quran1/files.zip /home/abdullah/quran2/files.zip … /home/abdullah/quranfolder/files.zip best way to search inside php files for text yoursearchtexthere find . -name '*.php' -exec grep –with-filename –line-number 'yoursearchtexthere' {} \; i simply want to unzip all of them at once, here is the shell script to do it in […]


recursively search a certain file for certain text (linux)

Posted by Sameer on July 1, 2009 in Hosting |

Have you ever tried to do a recursive linux search for a text string inside a particular file? For example grep -r “mail” *.php and then it fails because the current folder doesn’t have any php files in it? This below line will search all files for the text moo find . -type f -exec […]

Tags: ,


Advanced File Deletion in Linux

Posted by Sameer on June 13, 2009 in Hosting |

Here is a cool way to delete files according to some complex rules without knowing complicated bash commands. First, create a file as follows that contains your deletion rules. + public_html/ + public_html/* – access-logs – etc/ – logs/ – mail/ – .cpanel/ – .cpaddons/ – .spamassassin/ – .ssh/ – public_ftp/ – cpmove.psql/ – tmp/ […]



.NET Blogging Softwares

Posted by Sameer on October 7, 2008 in Hosting |

When I first started this blog, it was done in Subtext, which is a very impressive .NET blog software. It is a fork off the old .TEXT blog engine. To give you a bit of history, .TEXT codebase was left and eventually became Community Server. That was my preferred choice of blogging engines, but I […]


Server security and PHP Safe mode

Posted by Sameer on July 4, 2008 in Hosting |

Some tips on securing your PHP and how you can get hacked (hax0red) if it’s not on.


20% Extra Security is Enough To Stop Kiddie Hackers

Posted by Sameer on May 5, 2008 in Hosting |

How adding a little bit of security can stop most hackers.


70GB of Files Uploaded Because of a Trojan Virus

Posted by Sameer on July 17, 2007 in Hosting |

How a server was infected with a trojan virus, and how to clean the Wollf trojan from your machine and ensure that you do not get infected again. As well a list of 70GB of files from a real server that was compromised.


Sql Injections and Securing Clipshare Vulnerabilities

Posted by Sameer on July 2, 2007 in Hosting |

A full explanation about SQL injection vulnerability and why you should care, Clipshare vulnerability, PHP Nuke vulnerability, and how to fix it in such a way that your site will not get hacked again with relatively few code changes.


Delete Spam from Exim Queue

Posted by Sameer on June 5, 2007 in Hosting |

How to delete spam emails from your exim mail queue if its getting to large and full of spam. Use carefully.

grep -R -l [SPAM] /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm


Successful Server Migration using the HOSTS file

Posted by Sameer on May 29, 2007 in Hosting |

What is the Windows HOSTS file, and how to use the HOSTS file to test your site before re pointing the server during a server migration to successfully ensure a seamless migration with no down time.

Copyright © 2007-2014 Agile Chai All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.2, from BuyNowShop.com.