Use PM2 to Boot Start

Install PM2 globally using NPM

npm install pm2 -g

Start your script with pm2

pm2 start app.js
pm2 save

generate an active startup script

pm2 startup

pm2 unstartup

NOTE: pm2 startup is for startting the PM2 when the system reboots. PM2 once started, restarts all the processes it had been managing before the system went down.

In case you want to disable the automatic startup, simply use pm2 unstartup

If you want the startup script to be executed under another user, just use the -u <username> option and the --hp <user_home>:

pm2 flush -> remove pm2 logs


Chisel BootCamp

Local Installation - Mac/Linux

Need java
//Check Jabar
Dependencies: openssh-client, openjdk-8-jre, openjdk-8-jdk (-headless OK for both), ca-certificates-java

//Jupyter
pip3 install --upgrade pip
pip3 install jupyter --ignore-installed

//Jupyter Scala

git clone -b v0.1.9 https://github.com/almond-sh/almond.git
cd almond
curl -L -o coursier https://git.io/coursier && chmod +x coursier
SCALA_VERSION=2.11.12 ALMOND_VERSION=0.1.9
./coursier bootstrap \
-i user -I user:sh.almond:scala-kernel-api_$SCALA_VERSION:$ALMOND_VERSION \
sh.almond:scala-kernel_$SCALA_VERSION:$ALMOND_VERSION \
-o almond
./almond --install

//Install notebook

git clone https://github.com/freechipsproject/chisel-bootcamp.git
cd chisel-bootcamp
mkdir -p ~/.jupyter/custom
cp source/custom.js ~/.jupyter/custom/custom.js

jupyter notebook


反潮


反潮是很自然的現象,由於南風夾帶溫暖水氣,溫度升高,水氣含量高的空氣在白天進入屋內,但到了夜晚,溫度突然下降,外冷內熱,水氣出不去往上跑,屋內當然會冒汗,特別是像磁磚、防水油漆等具光滑面材質,特別會形成水珠,跟房子老舊沒有關係。想要預防反潮現象,最好的方式就是保持空氣通風,或是使用除濕機,大約維持兩三天就會恢復正常。