Category Archives: Tips

How to limit connections per User IP in Apache 2.2 CentOs

If you are a system admin or a webmaster, you will face this question at some point of time. How do I limit connections per user ip in Apache 2.2? Generally, you get good users visiting your site who use … Continue reading

Posted in Tips, linux | Leave a comment

How to remove all comments in a file

If you are ever stuck in situation where you want to remove all the comments regardless of what they are in a source file. Here’s a small command that you can issue in VIM. It is for pattern search and … Continue reading

Posted in Tips, linux, php | Leave a comment

How to clear sendmail queue

If you ever felt the need of flushing the sendmail queue then this post will be handy to you. How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux … Continue reading

Posted in Tips, linux | Leave a comment

How to edit HEX file in VI?

Open the hex file or any file that you want to edit in hex format in “vi“. Lets call that file “myFile.hex”. To open the file in “vi“, type in terminal “vi myFile.hex” After the file is opened in the … Continue reading

Posted in Tips | Leave a comment