Happy work life rules

I have read some where these following rules to become more happier with work life.

  1. Trust no one but respect everyone.
  2. What happens in office, remain in office. Never take office gossips to home and vice versa.
  3. Enter office on time, leave on time. Your desktop is not helping to improve your health.
  4. Expect nothing. If somebody helps, feel thankful. If not, you will learn to know things on your own.!
  5. Never rush for a position. If you get promoted, congrats. If not, it doesn't matter. You will always be remembered for your knowledge and politeness, not for your designation.
  6. Never run behind of...

Complete guide to PHP Performance

I have a list of server config , tweaks and tricks for improving php performance.  

(1) A one-page opcache status page GitHub Link   Direct download 

How to speed up MySql Like query ?

For string columns, MySQL indexes the left side of a string. That means an index can speed a like query that has a wildcard on the right side:

SELECT * FROM users WHERE email LIKE "@gmail.com%"

This will be faster with an index column