Notes - Hugo website on VPS

Follow these steps to set up a server for my document site.

Server Setup

Vultr

  • Go to https://my.vultr.com/
  • Deploy new server > Ubuntu
  • Get root password and login to server
  • Create and add sudo user

Putty

  • SSH to server
  • Login as sudo user

Caddy server

Installation

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-testing.list

sudo apt update
sudo apt install caddy

Useful Commands

// show caddy service status
systemctl status caddy

// check log file for caddy service
journalctl -xeu caddy.service

// rename "public" folder to "rlpro"
mv /var/www/html/public /var/www/html/rlpro

// remove tags folder
rm -f -r tags/

// remove all folders which name start with s
rm -f -r s*/

// reload caddy service after updated the Caddyfile
systemctl reload caddy
// or this command
systemctl daemon-reload

Caddyfile

Tips:

Notes - Power Automate

Tips

Variable inside a message

  • You can use a variable on its own: =ExcelData
  • Or you can add the variable inside a message: The data is: ${ExcelData}.

Loop number

  • Start from: =1
  • End to: =3
  • Increment by: =1

If you type 1 in the Start from field, it will be treated as a string and cause error:

Notes - FreeShow

FreeShow is our free presentation software alternative to ProPresenter.

Edit

Keyboard Shotcuts

  • Split: Alt+Enter

Bible

How to create a bilingual Bible versions slides?

  • Select “NIV” and “新标点和合本” from the left panel of the scriptures drawer, right click and press “New collection”
  • Click on the collection “EN + CBCS” and select the verses
  • Select the Template “Scripture 2” for bilingual scriptures
  • Click New Show to make the selected bilingual scriptures as a show

freeshow bilingual bible version

Notes - JVC Wireless Headphones

Charging

  • Connect the charging cable provided to start charging.
  • The indicator lights up in red, and charging starts.
  • When charging is complete, the indicator goes out.

The charging time is approx. 2.5 hours.

Notes - HTMX

AJAX vs SSE

  • SSE: the client establishes a persistent and long-term connection with the server. The server uses this connection to send data to a client.
  • AJAX: the client repeatedly polls (or requests) a server for data. The client makes a request and waits for the server to respond with data. If no data is available, an empty response is returned.

How to Choose?

Notes - WinSCP

Why .csv file is opened in editor?

The default action for double-click a file in server is to open it.

If you double-click a .csv file on the server, it’ll be opened in editor instead of downloading.

How to Create a Bootable USB

Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files. With ventoy, you don’t need to format the disk over and over, you just need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot them directly.

Notes - Anki

Anki is a program which makes remembering things easy.

  • Download Anki: apps.ankiweb.net
  • Online manual: docs.ankiweb.net

Concepts

  • Card: A question and answer pair is called a ‘card’.
  • Deck: A ‘deck’ is a group of cards. Decks can contain other decks; Decks are best used to hold broad categories of cards
  • Notes & Fields:
  • Card Types

Tips

How to delete a card?

Browse > Right-click the card > Notes > Delete

RL Working Notes

Printer

How to reset Cannon MF236n printer?

MF236n printer with Korean language display. The manual is too complicated to follow up. The easy way to reset it is to follow below video. In short: