Nexus repository as a docker registry

Nexus is a repository manager that helps to collect, proxy, and manage your dependencies in one place. This is a place where you can keep all your artifacts such as libraries, dependencies, etc. To be more clear lets you are developing an application and you have to create a custom Jar module where you want all your developers to use the same for the rest of the module development. If you don’t want other developers to develop the same jar on their own, you publish this kind of dependencies to…

Read More

Search and delete files older than “N” days

Lets see how we can  search specific  files or directory which was created “N” days before and delete. For example find files older than 60 days,   Replace the ls with -delete to remove files. Be careful, as you might end up deleting important files.  Always keep backups. Always run -ls option first to check about files. You have been warned. How to ask for confirm before deleting Explanation find : Find command /path/to/dir/ : Directory path to search -type f : Only works on files. (the -type d option…

Read More

Hide Nginx version

By default, the Nginx version will be displayed when we query HTTP headers or error generated by the Nginx server. lets see how we can hide or remove the Nginx version. First lets see how Nginx version is displaying using cli Through curl command,we can see the version on error pages and in the “Server” response header field. Sample Output Now lets hide Nginx Version using server_tokens directive We need to set server_tokens to off to hide the Nginx server version.Now we will edit nginx.conf file.We will set server_tokens in…

Read More