Useful commands for Linux

  netstat -tunap | grep 9000 pkill -9 php-fpm df -h du -sh file_path Explanation du (disc usage) command estimates file_path space usage The options -sh are (from man du):

To check more than one directory and see the total, use du -sch:

Continue reading

Laravel Interview Questions

1- What is Laravel Framework? Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. 2- What are the main differences between Laravel 4 and Laravel 5.x? Summarizing Laravel 5.0 Release notes from the above article: 1. The old …

Continue reading

Master Javascript Interview

Topics: What is  a Promise ? What is the Difference Between Class & Prototypal Inheritance ? What is a Closure ? What is Functional Programming ? What is Function Composition ? What is a pure Function ? Interview Questions    

Continue reading

Preparing for MongoDB Certified Developer Associate Exam

I passed the MongoDB Certified Developer Associate in 25th April 2017. This is online exam and I would like to share my experienced how to prepare for this exam. About the Exam The MongoDB Certified Developer, Associate Level exam is intended for individuals with knowledge of the fundamentals of designing and building applications using MongoDB. We recommend this certification …

Continue reading

MongoDB – Index and Performance

Indexing and Monitoring Indexes Explained Binary-tree indexes where a key references a document location. B-tree indexes are “n-array indexes” (you have multiple keys in a single child) { a: 1, b: -1} –> where 1 –> ASCending order and -1 –> DEScending order { a: 1 } –> the index will be ASC or DES …

Continue reading

MongoDB – Replication

Replication Overview Replica Sets are equivalent to redundant copies across multiples virtual or physical machines with internal or attached storage space. The grace of the matter is to get a document on multiple servers getting multiples copies, redundant copies of the same data. Why would we do this? The primary reasons we do replication are: HA …

Continue reading

AMQP – RabbitMQ part 3

Getting Ready for Some Code Examples Hello World! The principal idea is pretty simple: it accepts and forwards messages. You can think about it as a post office: when you send mail to the post box you’re pretty sure that Mr. Postman will eventually deliver the mail to your recipient. Using this metaphor RabbitMQ is a …

Continue reading