A pure html framework with hugo
· β˜• 1 min read · ✍️ CheeseMocha
download hugo link https://gohugo.io/ https://github.com/gohugoio/hugo https://github.com/gohugoio/hugo/releases/tag/v0.81.0 windows download link hugo_0.81.0_Windows-64bit.zip https://github.com/gohugoio/hugo/releases/download/v0.81.0/hugo_0.81.0_Windows-64bit.zip download and unzip, change the environment path to this folder. hugo themes link https://themes.gohugo.io/ chose one theme, and make a folder themes under the new site and copy theme into it, there are sample site content in the theme. you can copy it out and remember change the name of theme same as the folder in themes. hugo new site testsite.

Cronjob in operation
· β˜• 1 min read · ✍️ CheeseMocha
XXLjob https://github.com/xuxueli/xxl-job cronsun https://github.com/shunfei/cronsun airflow https://github.com/apache/airflow docker cronjob if you want to refresh docker cronjob without docker restart. you need put another file under /etc/crontabs/root and update the file, the cronjob will be refreshed. docker file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 FROM alpine #RUN apk update && apk add curl nano --update python2==2.7.18-r0 RUN apk update && apk add curl nano --update python3==3.

secure your vps
· β˜• 1 min read · ✍️ CheeseMocha
create a new account, allow sudo permission useradd testuser passwd testuser vi /etc/sudoers 1 2 3 ## Allow root to run any commands anywhere root ALL=(ALL) ALL testuser ALL=(ALL) ALL 1 2 ## Same thing without a password testuser ALL=(ALL) NOPASSWD: ALL chage logon port vi /etc/ssh/sshd_config firewall-cmd –permanent –zone=public –add-port=8822/tcp firewall-cmd –reload iptables -A INPUT -p tcp –dport 8822 -j ACCEPT service sshd restart disable root login vi /etc/ssh/sshd_config

Why need vps
· β˜• 1 min read · ✍️ CheeseMocha
why do we need a vps As a programmer, learning VPS is same as learning a development language. It’s important to understand linux, network, system os fully.