Install a previous version of an npm package Or Install a specific version of an npm package
I am using AWS for managing my IP address. But the only thing I used on AWS is: setting up my FTP port. If you are using AWS but don't know how to setup port on Amazon Cloud Server. Please check this Stack Answer.
How to create a patch, apply a patch, revert a patch and evern check a patch are listed in following.
Format the original number by adding 0's before that number. By using str_pad, you can also add whatever you want before or after the variable, even on both sides.
If your php code doesn't work without any error message, you can use this function to get the last error log. It is very helpful to use for debugging.
It is very easy to create a new user in mysql and give access to database. By using GRANT, you can assign what privileges to any user not only new but also existing users. Just make sure you are using the right username and hostname. Recently, I am working on setting up master and slave replication. But I don't want all my master tables and databases backup on my slave database. Therefore, I listed some important grant statements here that you can use. Also, I provided some hints below as well.
Example for how to split a string by string. Be carefully, this function returns array.
Using drush to get a list of enabled modules without core module
My dev site keeps being redirected to the live site with no reason after I enable some module. Here is the solution how to solve this.