Simple HTTP file hosting with NGINX

I am doing a lot of Packer lately building images for deployment in Azure. Rather than copy content or worry about accessing SMB or NFS shares, I decided to expose my file server to make downloading original ISO files easy. However, I struggled a bit to find the right NGINX configuration to make this happen. So, if you ever find yourself in need of hosting files to download with NGINX you can use this configuration as a starting point:

server {
    listen 80;
    listen [::]:80;

    location /software {
        autoindex on;
        alias /storage/standard/software;
        types { application/octet-stream; }
        default_type application/octet-stream;
    }
}

This is good for ngnix/1.12.1 (Ubuntu) on Ubuntu 17.10 (Artful Aardvark)

ConEmu Tiling

I’m constantly on the command line for Git, PowerShell, NodeJs, SSH, etc. I’ve been using ConEmu for a while to consolidate all my terminals into a single window with tabs, which is great. However, sometimes you want to see multiple terminals at the same time. ConEmu has a great feature for that. One thing, I am constantly doing is using a bash shell for ssh and copying information from a PowerShell session.

conemu

To get your setup in a similar fashion, add a Startup Task in ConEmu and specify the following commands:

powershell -new_console:d:C:\Git
bash -new_console:sH
powershell -new_console:d:C:\Git -new_console:sV

workspace

 

Recent Issues in Google Chrome

I use Google Chrome on 4 machines daily: my personal desktop (Win10), my personal laptop (MacOS), my work laptop (Win10), and a work VM (Win10). On all but my personal desktop, I experienced different display issues in Chrome in the past week:

  1. Black borders on the left, bottom, and right sides.
  2. Missing tabs.

Searching the Internet suggests disabling extensions, but the problem must be related to border styles. The easy solution is changing the theme in Chrome.

For the missing tabs, it comes down to a drawing issue. Disabling hardware acceleration resolves that issue.

The world is peaceful now and I can work.