Categories
Featured Java Tech

Recommendation: Private / Corporate Maven Repository: Sonatype Nexus or jFrog Artifactory

Requirements: I am writing several reusable libraries which need to refer each other in myriad ways, each may be worked upon by different developer. I don’t want to create a jumbo project with sub-modules where access control is a pita. I don’t want the repository to be publicly accessible. There should be fine-grained access control […]

Categories
Tech

Enable LXD GPU pass-through in Ubuntu 18.04 (Bionic Beaver)

Problem One of the biggest challenge (aside from upgrading nvidia & cuda) in upgrading from Ubuntu 16.04 to Ubuntu 18.04 is enabling GPU passthrough in LXD Containers. Due to a bug in parsing logic, it cannot properly parse Blacklisted line in nvidia-410 drivers. Solution The simplest solution is to upgrade lxd to 3.0.2. To do […]

Categories
Java

How to rapidly test alternative ideas in Java during development

Problem Java is a compiled language and in any non-trivial project you use multiple libraries which are neatly assembled for you when you run the application with your build system like gradle. This makes it hard and slow to test alternative ideas as you have to compile and run the project each time which is […]

Categories
Tech

Guide: HAProxy HTTP Basic Authentication for specific sites (SSL Termination)

Objective I use HAProxy to serve multiple SSL/TLS enabled sites with HAProxy doing SSL termination. The sites serve regular HTTP while users see proper HTTPS sites (with free certificates from LetsEncrypt). My objective was to provide HTTP Basic Authentication as a second layer of protection for certain applications like NextCloud (DropBox clone) or Gitea (GitHub […]

Categories
Linux

How to run Gogs behind HAProxy serving https (SSL/TLS) connections

I run Gogs in a LXD container which runs behind HAProxy in another LXD container. HAProxy handles SSL/TLS connection (SSL Termination). Note: Gogs is a Git service like GitHub or GitLabs. It is written in Go and normally used to host your own git server along with GitHub like interface and functionality (for free). As […]

Categories
Linux

How to provide Secure Isolated (Restricted) SFTP Access for file transfer

Often we need to provide secure but restricted sftp access to our clients to upload or download large files. Regular sftp accounts allow the users to view login names of other users/clients and in many default installations even allow them to browse through the directories and files. In addition, they can also view your system […]

Categories
Tech

Why more decision makers prefer SaaS Solution

Categories
Spirituality

Nirvana Satkam

॥ निर्वाण षटकम्॥ मनोबुद्ध्यहङ्कार चित्तानि नाहं   न च श्रोत्रजिह्वे न च घ्राणनेत्रे ।   न च व्योम भूमिर्न तेजो न वायुः   चिदानन्दरूपः शिवोऽहम् शिवोऽहम् ॥१॥ I am neither the mind, nor the intellect, nor the ego, nor the mind-stuff ; I am neither the body, nor the changes of the body ; I am neither […]

Categories
Tech

Economic Impact of Bad Code ~ 85B USD GDP Loss

Categories
Linux

Nginx Server Error – 413 Request Entity Too Large

If you’re getting 413 Request Entity Too Large error trying to upload file to nginx server then you need to increase the size limit in nginx.conf . Add client_max_body_size xxM inside the server section where xx is the size in MB.