How should Evernote do right now?

A few years ago Evernote was the number 1 notes app all over the world, and everybody loves it.

Use getopt to parse script parameters

There are 3 ways to parse parameters for your CLI written by bash: position based parameter, getopts and getopt. With no doubt, getopt is the most powerful one.

Run psql without password

To run psql without prompting password, you need to create $HOME/.pgpass file like below with correct file permission 600:

Increase your disk size for boot2docker

You searched for this article, so I assume you know what boot2docker is and are using it. That’s good, so am I.

Kill containers in Docker

After using Docker for a while, you may find out there are so many containers in stopped status, and they are not deleted. You can delete them one by one with docker rm, but we are developers, how can we bear this?

Return text with Nginx

There is always a time that you want your web server just return some plain text to user or monitor services. One way of doing it is to create a static file and use url of this file.

How to configuration Nginx with and uwsgi

Before you start, you should know how to install nginx and uwsgi, and have them already installed.

How to build a boot2docker ISO with VirtualBox Guest Additions

In previous post, I talked about docker. But with boot2docker, there’s a big issue, that is you cannot mount local directories in container.

Create a MariaDB service on CentOS with Docker

Learning Docker for a long time, this is my first time to create a service with it. In Docker’s concept, each service should have a container, and your application may comes with many containers.

Rabbitmq and Pika

Install rabbitmq

It’s really easy to install rabbitmq on any linux distro.