Dot files in nginx

Deny access to files starting with a dot an extremely common task and it is done via editing main configuration file (nginx doesn't allow configuration on the fly). Such file is usualy located under /etc/nginx/conf.d/ Add the following lines there. # Deny access to files starting with a…

Humanity

The Dalai Lama, when asked what surprised him most about humanity, answered: "Man. Because he sacrifices his health in order to make money. Then he sacrifices his money to recuperate his health. And then he is so anxious about the future that he does not enjoy the present; the result…

Easy linux debug

Are you tired to work with different tools while you are debugging linux system? Try Sysdig. sysdig is open source, system-level exploration: capture system state and activity from a running Linux instance, then save, filter and analyze. …

Hotplug external monitors

Hotplug of external monitors works by default in modern desktop environments like Gnome/KDE/Unity. In case you don't want to use them, you will need to implement such functionality by yourself. This mini-howto can help you to do it: 1. Create new udev rule in /etc/udev/rules.d…