Category: Linux

Keep 2 folders synchronized

Code to copy all changes from one folder to another. I use it to copy changes from my local folder to development server mounted by SSHFS. In example files are filtered. Only .cpp and .h files are...

Read more →

Limit number of connections per IP

Limit number of incoming concurrent connections per IP to 1. On all ports and IPs of server: On port 80 of server: On port 80 and IP 91.134.189.246 of server (in case when server has more IPs):

Read more →