My list of commands for monitoring network traffic on Linux server

Network monitoring on Linux This post mentions some Linux command line tools that can be used to monitor the network usage. These tools monitor the traffic flowing through network interfaces and measure the speed at which data is currently being transferred. Incoming and outgoing traffic is shown separately. Some of the commands, show the bandwidth used by individual processes. This […]

Vue.js, make ajax requests with Axios

Quite a few frameworks have built-in HTTP APIs. Angular 2 has the http module, JQuery has $.ajax, and, up until Vue 2.0, Vue.js had vue-resource. In Vue 2.0, the developers decided that having a built-in http client module was rather redundant, and could be better serviced by third-party libraries. The alternative most frequently recommended is Axios. Axios is a great http client library. It uses promises by default and runs on both the client […]

Adding an existing project to GitHub using the command line

My way of adding project to GitHub This is my shortest possible explanation, I am glad if someone finds this post useful. This is for Linux users. For Win and Mac user you can find instructions here, on the original GitHub documentation. Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these […]

WordPress code highlighting

// Crayon C++ #include <iostream> using namespace std; int main() { int a; cout << “1,2 or 3” << endl; cin >> a; } // Enlighter C++ #include <iostream> using namespace std; int main() { int a; cout << “1,2 or 3” << endl; cin >> a; } [cpp] using namespace std; int main() { int a; cout << "1,2 […]

How to enable .htaccess in Apache HTTP server

.htaccess A .htaccess file is a directory-level configuration file for Apache HTTP server, which allows one to override the web server’s system-wide settings without modifying the global configuration file (e.g., httpd.conf or apache2.conf). Things like per-directory access control, password protection, URL redirection or hotlink prevention can be configured in the .htaccess file. You should avoid using file.htaccess completely if you have […]

Running several name-based web sites on a single IP address.

If your server has multiple hostnames that resolve to a single address, and you want to respond differently for and Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those hostnames. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your website. You […]