Vitamin Cheat Sheet

  • Vitamin A: Vision & Immunity | Carrots, Spinach
  • Vitamin B1: Energy & Nerves | Whole Grains, Pork
  • Vitamin B2: Metabolism | Milk, Eggs
  • Vitamin B3: Skin Health | Poultry, Fish
  • Vitamin B5: Hormone Synthesis | Avocado, Eggs
  • Vitamin B6: Brain Health | Bananas, Chicken
  • Vitamin B7: Hair & Nails | Eggs, Almonds
  • Vitamin B9: Fetal Development | Leafy Greens, Legumes
  • Vitamin B12: Blood & Brain | Meat, Dairy
  • Vitamin C: Antioxidant | Citrus, Broccoli
  • Vitamin D: Bone Health | Sunlight, Salmon
  • Vitamin E: Cell Protection | Nuts, Seeds
  • Vitamin K: Blood Clotting | Kale, Broccoli

Key Nutrients Beyond Vitamins:

  • Omega-3: Heart & Brain | Salmon, Walnuts
  • Magnesium: Over 300 Reactions | Spinach, Nuts
  • Probiotics: Gut Health | Yogurt, Sauerkraut
  • Zinc: Immune Function | Meat, Seeds
  • Fiber: Digestion & Heart | Beans, Whole Grains
  • Iron: Oxygen Transport | Red Meat, Lentils
  • Calcium: Bone Strength | Milk, Kale

Final Tip: Combine nutrients wisely and maintain a balanced lifestyle with exercise and hydration for optimal health.

Calibre Platform Support - 2024

Platform Identifiers for Calibre Install Files and Runtime Directories

Calibre provides different executables that are optimized for different Linux distributions, and each has its own platform identifier. The platform identifier is sometimes referred to as a VCO, which refers to a Vendor-CPU-OS combination. The platform identifier is first used to identify which install files should be downloaded. After installation the platform identifier and release version number are used to identify the Calibre runtime directory, generally referred to as a MGC_HOME tree. Each Calibre MGC_HOME tree can only be used with specific OS versions and must run on hardware that supports the minimum CPU instruction set identified for that MGC_HOME tree. Note that when using Calibre with distributed processing, the MGC_HOME trees on the master host and all remote hosts must all have the same platform identifier.

Read More

Vim: Move Cursor With Command "f|F|t|T"

  • f命令移动到光标右边的指定字符上,例如,fx,会把移动到光标右边的第一个x字符上。F命令则反方向查找,也就是移动到光标左边的指定字符上。
  • t命令和f命令的区别在于,它移动到光标右边的指定字符之前。例如,tx会移动到光标右边第一个x字符的前面。T命令是t命令的反向版本,它移动到光标左边的指定字符之后。
  • 这四个命令只在当前行中移动光标,光标不会跨越回车换行符。
  • 可以在命令前面使用数字,表示倍数。例如,3fx表示移动到光标右边的第3个x字符上。
  • ;命令重复前一次输入的f, t, F, T命令,而,命令会反方向重复前一次输入的f, t, F, T命令。这两个命令前也可以使用数字来表示倍数。

开学寄语

  • Hold enthusiasm for dreams from inside. You are never anybody’s copy.
  • Stay curious, stay thirsty.
  • Be exploring throughout life journey.
  • Different life phases, different companies.
  • History has the story.
  • Simply believe yourself, but not anyone else.
  • Make bridges from heart to heart by empathy.
  • Failure is the ladder to success.
  • Erase the past. Be faithful to the future.
  • Home is your unconditional recharge station.

Tmux Quick Guidance

1. Tmux Configuration

1.1 ~/.tmux.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# set prefix2 to Ctrl+Space
set -g prefix2 C-Space
# use | and - to split the windows
unbind '"'
unbind '%'
bind - split-window -v
bind | split-window -h
# use vi keys in buffer
setw -g mode-keys vi
set -g mouse on
set -g history-limit 20000
set -g default-terminal "screen-256color"
# start windows and panes at 0
set -g base-index 0
setw -g pane-base-index 0
# set re-number windows
set -g renumber-windows on
# set foreground/background style for active window
setw -g window-status-current-style "fg=white bg=black bold"
# set bind key "r" to reload configuration file
bind r source-file ~/.tmux.conf \; display "Reloaded!"

1.2 ~/.tmux.conf.local

1
tmux_conf_copy_to_os_clipboard=true

2. Tmux Shell Commands

Action Shell Command
New session % tmux
New session with a name % tmux -s [name]
List sessions % tmux ls
Attach to last session % tmux a
Attach to session with a name % tmux a -t [name]

3. Daily Commands

Action Command (prefix + …)
New session :new
New window c
New pane (horizontal) -
New pane (vertical) |
Rename session :rename -T [name]
Rename window ,
Rename pane :selectp -T [name]
Show all sessions s
List/preview windows w
Select window by number 0-9
Select previous window p
Select next window n
Toggle last active window l
Move to previous session (
Move to next session )
Detatch from session d

Install Xfce & Lightdm

Instead of GNOME desktop with GDM which is configured by default in Redhat, I’m told that xfce+lightdm is much more lighted and efficient. So I tried that out today. Let’s see how to deply xfce+lightdm in CentOS7.9.

Install EPEL (Extra Package for Enterprise Linux)

1
2
3
# yum install epel-release
//if above command doesn't work, try this
# yum install http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Install xfce & lightdm

1
2
# yum groupinstall xfce
# yum install lightdm

Read More