Use Hugo with Github Pages and CircleCI

This tutorial is to teach you how to make youre own hugo-generated static site served by Github Pages, within a single repo. Prerequisites Github & CircleCI account Newly-generated SSH key pair for safety reasons(see here) Hugo installed locally Dive in Generate site source with hugo command: hugo new site <SITE_NAME> Create a repo for your site: <SITE_NAME>.github.io(Be aware: this tutorial uses User/Organization Pages rather than Project Pages, see here), clone it, and create a new branch called source(whatever you like):
Read more →

国内Origin下载加速

Read more →

Using virtualenv in Jupyter Notebook

OS: macOS High Sierra 10.13.4 Default Python version: 3.6.5 Prerequisites Have your Jupyter Notebook and virtualenv installed with your default python version Have one virtual env created which you want to use Walkthrough Activate your virtualenv source <envpath>/bin/activate Install ipykernel inside your env $(yourenv)> pip install ipykernel Create kernel using your env $(yourenv)> python -m ipykernel install –user –name myenv –display-name "Python (myenv)" Go ahead and enjoy Now open your jupyter notebook and you’ll notice your kernel just created appears along with your default kernel.
Read more →

Set Up Flarum From Scratch

Befor you continue 1. Get a VPS from Linode/Vultr/whatever 2. Pick a linux distribution and make it running(I use CentOS 7). 3. Install Apache/MySQL/PHP 7.1 Get yourself a non-root sudo user adduser USERNAME passwd USERNAME usermod -aG wheel USERNAME su USERNAME Install and configure Apache Check this out First install it. sudo yum update sudo yum -y install httpd sudo systemctl enable httpd.service Then create directory structure.
Read more →