Running NodeJS in Apache is currently not possible since extension for Nodejs in Apache doesn’t exist yet unlike mod-perl or mod-php. However, It is possible to run NodeJS as a separate process and set your apache server as a proxy…
All posts filed under “Tips and Tricks”
Repository changed its ‘Origin’ value from ‘Google, Inc.’ to ‘Google LLC’
If your are using Google Chrome on Debian or Ubuntu, you must have encountered the following error while updating your system through sudo apt-get update. E: Repository ‘http://dl.google.com/linux/chrome-remote-desktop/deb stable Release’ changed its ‘Origin’ value from ‘Google, Inc.’ to ‘Google LLC’…
Javascript changes value when pushing an object
Have you ever encounter a problem in Javascript where it changes the value of the object when you push it to an array. Well, if you haven’t then maybe you’re not doing a lot of javascript. Anyway, this particular issue…
MySQL slow query on higher LIMIT offset
It’s normal for Mysql queries with higher offset to be slower than usual. It’s because the Mysql needs to count the OFFSET and LIMIT of your query statement. The higher the offset, the longer Mysql will have to count and…
Allow SFTP but not SSH to a user in Linux
There are many reasons why you want to achieve this kind of setup. But mostly is just because you don’t want the user messing inside your server, and the user only needs to access (download, upload) files in your server….
MySQL Master to Master Replication Setup
MySQL replication is a process in which a set of data from a single mysql server is being copied live on another mysql servers. Most popular setup of mysql replication is what they call Master-Slave Setup. This setup will just…
Upgrade php5 to php7 on ubuntu 15
Now that php5 no longer has support in 2017, a lot of webmasters are trying to upgrade their php to php7. Here’s how to upgrade your php5 to php7. First install python-software-properties and then add ppa:ondrej/php-7.0 to your apt repo….
How to stop Chrome on eating up your RAM
I’m sure most of you are using Google Chrome browser for daily internet use. From reading knowledgeable articles to browsing cat images. But isn’t it annoying that the more you open new tab on your google chrome, the more your…
:(){ : | : &}; : – Forkbomb explained
Some of my friends ask me what is this command? How does it work? Why does it make my computer lag so bad that they have to reboot it?! This command is actually a version of a Forkbomb. When executed,…
Display line X to line Y from huge file on terminal
This technique is very useful specially if you have a very huge file and you only want to display specific line. Of course you can use cat, head or tail. But that wouldn’t be helpful if you want to display…