Posts

How to exit vim?

< 1 min readTo exit Vim, you can use the :q command. This will exit Vim if you have not made any changes to the document. If you have made changes to the document and you want to save the changes before exiting, you can use the :wq command, which will write the changes to the file and…

Read More

What is Pub Sub?

< 1 min readIn the context of computer science and software engineering, “publish/subscribe” (pub/sub) is a messaging pattern in which senders of messages (publishers) do not send messages directly to specific receivers (subscribers). Instead, subscribers register their interest in messages of a particular topic, and publishers distribute messages to all subscribers who are interested in that topic. This…

Read More

What is CSRF protection in Laravel?

< 1 min readIn Laravel, CSRF (Cross-Site Request Forgery) protection is a security measure that helps to prevent malicious users from making unauthorized requests to your application. Laravel implements CSRF protection by generating a token for each active user session and including the token in a hidden field in every HTML form generated by the application. When a…

Read More

How to kill a node process?

< 1 min readTo kill a Node.js process, you can use one of the following methods: 1. process.exit(): You can use the process.exit() method to exit the current Node.js process with an optional exit code. This method will cause the process to exit immediately, without waiting for any asynchronous operations to complete. For example: 2. process.kill(): You can…

Read More