Redirect traffic index.html to index.php

Simple rule to rewrite the traffic from index.html to index.php. Useful quick fix for wordpress websites. If you’re using apache httpd server You can deploy this rule inside the .htaccess file, the one inside the root folder, or inside the httpd.conf in the proper section More info: https://httpd.apache.org/docs/2.4/rewrite/flags.html Other webserver Read more…

Server stats

Ifconfig Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. Netstat Netstat prints information about the Linux networking subsystem Ps ps displays information Read more…

Javascript snippets

For break Classical for loop.. nothing to talk about it. Some loop The some() method tests whether at least one element in the array passes the test implemented by the provided function. It returns true if, in the array, it finds an element for which the provided function returns true; Read more…

Splice

The splice() method changes the contents of an array by removing or replacing existing elements and/or adding new elements in place. More info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice