Enable HTTPS for All Virtual Hosts on Nginx – For Free

This article shows you how to enable HTTPS for all your virtual hosts on a dedicated Nginx server. At the time of writing, certbot is still a beta software and Let’s Encrypt is at its early release. The method describes here is a cost effective way to enable encryption on your personal server. I don't recommend that you use it on your production server. The softwares may contain bugs and security vulnerabilities, use them at your own discretion.
Continue reading

Resolve Common Errors Related to Docker Beta On Mac OS

I am testing Docker beta and have run into a few issues. I am posting them here along with the solutions. It may help someone who is going through the same thing.

Issue 1

com.docker.osx.xhyve.linux failed to start

This can happens if you are running Docker beta applications on multiple user accounts.

Solution

sudo chown $USER /var/tmp/docker.sock

Issue2

Docker is not responding: waiting 0.5s

Solution

  1. Open to Docker beta's UI
  2. Click on "Uninstall / Reset"
  3. Click "Reset to factory defaults"

Issue 3

Can’t start docker beta: Communication with networking components failed

Solution

Issue 4

ERROR: for <container name> rpc error: code = 2 desc = "containerd: container did not start before the specified timeout"

Solution

Use Mouse Buttons to Perform Copy / Paste in Ubuntu

Updated (3/4/2013): If you don't have Compiz, you may read this article first.

As a programmer, the ability perform copy and paste efficiently is vital to me. What can be more efficient than Ctrl+C and Ctrl+V -- you might ask. Well, they are very efficient if you are right-handed, but I am left-handed (or rather, ambidextrous). I prefer to use the mouse with my left hand.

Here's the problem: when I am using a mouse, how can I do copy and paste without my left hand leaving the mouse for the keyboard? The right-click-to-bring-up-the-context-menu-and-copy thing will not do -- in order to copy like that, I need to first right click to bring up the context menu, move the mouse cursor the "Copy" position in the context menu, click on it; to paste, I need to right click again to bring up the context menu, and move the mouse cursor to the "Paste" position, click on it. That's four clicks and two movements. I am not all satisfied. After some experiment, I come up with a little script that will allow me to perform copy and paste quickly on a mouse.

Continue reading