enjoy coding, enjoy life.

Code

Index of Using MongoDB

In this post, I am going to list a set of page as navigation, so that we can use MongoDB easier.

Life

书生少年, 意气风发

十九日, 我的前室友在微信上闪了下我. 伊到了, 下午来我这儿取一下各种大包小包.

好哒, 我很快回复道.

整理了一下伊的物品, 却突然有点伤感.

Code

Here document, another way to write multiline into one file

Here documents are indeed a powerful feature in Unix-like operating systems, allowing for the efficient creation and manipulation of files from within a shell script. They are particularly useful when you need to insert multiple lines of text into a file without having to resort to looping constructs or temporary files.

Code

How to rename your machine

Changing the name of your os could be the first step after initialized you server -- at least it works for me.

Code

vsftpd: GnuTLS error -15: An unexpected TLS packet

TL;DR: Configuring vsftp is a difficult work and we always meet various of errors. In this post, I am going to introduce one possible solution of error "GnuTLS error -15: An unexpected TLS packet was received." when you are using vsftpd.

Code

Import GPG keys in Ubuntu 14 LTS

Installing deb repository requires gpg-keys some time. Recently, I am trying to add a mongo repository for Ubuntu 14, which requires to request some gpg keys first.