Category

Code

211 posts

Bazel run closed stdin

Bazel is a build tool which coordinates builds and runs tests.

Recently I wrote some code as follow:

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.

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.

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.

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.

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.