Git Bash: Change Home Directory

The Home (~) directory in Git Bash can be changed by setting the user-level %HOME% environment variable in Windows.

This is quite safe as the %HOME% environment variable is not normally set for Windows applications, so creating it shouldn’t affect anything else.

Moreover, setting the user-level environment variable in Windows doesn’t require admin rights. (more…)

Let’s Encrypt: Get Wildcard SSL Certificate – Certbot

Let’s Encrypt CA (Certificate Authority) can issue a wildcard SSL certificate that will be valid for 90 days – completely free of charge.

The easiest way to obtain such wildcard SSL certificate from Let’s Encrypt is by using the Certbot (command-line client for Let’s Encrypt).

In this note i will show how to install Certbot and get a wildcard SSL certificate from Let’s Encrypt. (more…)

PIP: Install From Private PyPi Repository

By default pip installs packages from a public PyPi repository but can also be configured to install them from the private repositories, like Nexus or Artifactory.

In this note i will show how to configure pip to install packages from the private repositories.

I will also show how to define username and password in pip for the private repositories that require authentication and how to troubleshoot the SSL related issues. (more…)

Nginx: `proxy_pass` Without Trailing Slash

The URLs with and without trailing slash are considered by web-servers as well as by search engines as different web-pages.

By this reason the URLs with trailing slash may return 404 Not Found error, while without the trailing slash they are reachable.

In this note i will show how to remove the trailing slash from URLs in Nginx and proxy_pass the traffic without them. (more…)