vmware mac big sur has no boot.efi in recovery selection

Make a bootable disk.

  1. create a vmdk with enough capacity, like 40G, add it to the guest vm.
  2. start up the vm, format the vmdk to HFS+(MAC OS扩展 日志式), name as MyVolume.
  3. download macos from app store, when installing dialog appears, leave it.
  4. open a terminal, type command below:
1
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume

Reboot the guest vm from this bootable disk.

1
BIOS -> EFI VMware Virtual SATA Hard Drive (2.0)

In recovery mode, you can switch off virtual memory.

1
2
3
4
5
csrutil disable
#after reboot
cd /System/Volumes/VM/
sudo mkdir swapfile0 swapfile1 swapfile2 swapfile3 swapfile4 swapfile5
sysctl vm.swapusage

refer to:
chrisleat
https://communities.vmware.com/t5/VMware-Fusion-Discussions/Can-t-boot-into-recovery-partition-on-macOS-11-Big-Sur/m-p/2298420#M139994
https://support.apple.com/en-us/HT201372
https://www.dazhuanlan.com/cossacks/topics/1189622

tmux config

Choose tmux because screen cmd has no function like C-b + z.

First, ensure tmux server is down by cmd

1
tmux ls

~/.tmux.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#for copying to sys clipboard
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
 
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
 
#general other stuff
set -g default-terminal "xterm-256color"
set-window-option -g mode-keys vi
#set -g mouse on

install xclip

1
apt install xclip

refer to:
https://unix.stackexchange.com/questions/131011/use-system-clipboard-in-vi-copy-mode-in-tmux
https://jdhao.github.io/2018/09/30/tmux_settings_for_vim_users/

How to capture full content of a web page

When a web page content is very long, using "Capture node screenshot" menu function of F12 tools in Chrome or FireFox will lost the bottom part of its image. Who knows why? maybe it's a memory reservation technology!

Well, follow these steps to save the entire content as an image:

  1. Open Firefox.
  2. Click "Addon" menu item, search "screen".
  3. Install "Full Web Page Screenshots" tool made by susbox whose app name is "FireShot" and icon is a big S.
  4. Use FireShot to capture the whole web page content.

source insight 4启动后不见窗口

卸载source insight 4(以下简记为SI4)后,删除以下目录

1
2
3
4
5
6
C:\Program Files (x86)\Source Insight 4.0
C:\Users\Euhat\Documents\Source Insight 4.0
C:\Users\Euhat\AppData\Local\Source Insight
C:\Users\Euhat\AppData\Roaming\Source Insight
C:\Users\Public\Documents\Source Insight 4.0 Shared
C:\ProgramData\Source Insight

如果之前到SI4主菜单Preferences/Folders里设置了其它目录的,也把这些目录清空。如果在SI4里重建像linux kernel这样的大项目,这些Folders最好以默认方式设为C盘这样的SSD盘中。

再重建win10 IconCache

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%进入图标缓存目录%
cd /d %userprofile%\AppData\Local\Microsoft\Windows\Explorer
 
%关闭Windows资源管理器explorer%
taskkill /f /im explorer.exe
 
%延时3s%
ping -n 3 127.0.0.1>nul
 
%删除图标缓存数据库%
attrib -h iconcache_.db
del iconcache_.db /a
 
%延时3s%
ping -n 3 127.0.0.1>nul
 
%重启Windows资源管理器explorer%
start explorer

再重装SI4,我这里再等一会启动SI4时就能看到窗口了。

refer to:
https://blog.csdn.net/nodeman/article/details/94555196

bash从字符串中解析出带引号的变量

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#shebang must be bash.
 
print_args()
{
	echo "1st is [$1]"
	echo "2nd is [$2]"
	echo "3rd is [$3]"
	echo "4th is [$4]"
	echo "5th is [$5]"
	echo "6th is [$6]"
	echo "7th is [$7]"
	echo "8th is [$8]"
}
 
VAR1=(1 2 "3 4" 5)
print_args "${VAR1[@]}"
 
VAR2="11 22 \"33 44\" 55"
#eval "VAR2=($VAR2)"
declare -a "VAR2=($(echo $VAR2 | tr '`$<>' '????'))"
print_args "${VAR2[@]}"

refer to:
https://superuser.com/questions/1066455/how-to-split-a-string-with-quotes-like-command-arguments-in-bash

拉丁语的格

名词

1
2
Nominative: 主格,Genitive: 属格,Dative: 与格,Accusative: 宾格
Ablative: 离格、夺格,Locative: 位格,Vocative: 呼格

https://www.online-latin-dictionary.com/

singular plural
1ST DECLENSION
aqua, -ae, f. water
nom aqua aquae
gen aquae aquārum
dat aquae aquīs
acc aquam aquās
abl aquā aquīs
2ND DECLENSION
servus, -ī, m. slave
nom servus servī
gen servī servōrum
dat servō servīs
acc servum servōs
abl servō servīs
dōnum, -ī, n. gift
nom dōnum dōna
gen dōnī dōnōrum
dat dōnō dōnīs
acc dōnum dōna
abl dōnō dōnīs
3RD DECLENSION
rēx, rēgis, m. king
nom rēx rēgēs
gen rēgis rēgum
dat rēgī rēgibus
acc rēgem rēgēs
abl rēge rēgibus
corpus, corporis, n. body
nom corpus corpora
gen corporis corporum
dat corporī corporibus
acc corpus corpora
abl corpore corporibus
3RD DECLENSION I-STEM
cīvis, -is, m. citizen
nom cīvis cīvēs
gen cīvis cīvium
dat cīvī cīvibus
acc cīvem cīvēs
abl cīve cīvibus
mare, -is, n. sea
nom mare maria
gen maris marium
dat marī maribus
acc mare maria
abl marī maribus
4TH DECLENSION
frūctus, -ūs, m. fruit
nom frūctus frūctūs
gen frūctūs frūctuum
dat frūctuī frūctibus
acc frūctum frūctūs
abl frūctū frūctibus
cornū, -ūs, n. horn
nom cornū cornua
gen cornūs cornuum
dat cornū cornibus
acc cornū cornua
abl cornū cornibus
5TH DECLENSION
rēs, reī, f. thing
nom rēs rēs
gen reī rērum
dat reī rēbus
acc rem rēs
abl rēbus
diēs, diēī, m. day
nom diēs diēs
gen diēī diērum
dat diēī diēbus
acc diem diēs
abl diē diēbus

refer to:
https://www.zhihu.com/people/calvinx-28
https://www.thoughtco.com/endings-of-latin-nouns-third-declension-117591
https://www.zhihu.com/question/32303392?sort=created
https://wenku.baidu.com/view/20e6b28ccd7931b765ce0508763231126fdb776d.html
https://www.zhihu.com/question/28861260