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.
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.
com.docker.osx.xhyve.linux failed to start
This can happens if you are running Docker beta applications on multiple user accounts.
sudo chown $USER /var/tmp/docker.sock
Docker is not responding: waiting 0.5s
- Open to Docker beta's UI
- Click on "Uninstall / Reset"
- Click "Reset to factory defaults"
Can’t start docker beta: Communication with networking components failed
chmod 600 /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo launchctl load -Fw /Library/LaunchDaemons/com.docker.vmnetd.plist
ERROR: for <container name> rpc error: code = 2 desc = "containerd: container did not start before the specified timeout"
# with docker-compose
# or just docker
docker rm <docker instance ID>
A super fast terminal based directory switcher that allows user to change working directory quickly.
Get it on Github
This is a following-up post for this post. In my previous post, I have discussed how to perform copy/paste quickly using mouse buttons. The setup requires Compiz. If you use Compiz as your window manager, great, you don't need to read this article. If you don't, you still have alternative.
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.