mmmgo commited on
Commit
1c04fa1
·
verified ·
1 Parent(s): 3148ebd

Upload notes.txt

Browse files
Files changed (1) hide show
  1. notes.txt +116 -0
notes.txt ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 0,stable diffusion
2
+ 图片尺寸很重要: 使用stablediffusion2.1_768_ema_pruned模型,当尺寸为768x512时,生成的图片像是有很多噪点一样,切换为768x768尺寸后,马上改善。
3
+ 进一步测试,发现:只要宽或高设置不是768x768,它就画不好了。
4
+ 然后,再搜索引擎找了一下说明,果然:Stable Diffusion 2.0 and 2.1 require both a model and a configuration file, and the image width & height will need to be set to 768 or higher when generating images...
5
+
6
+
7
+
8
+ (white background:1.1),mid_shot,(bust:1.1),upper_body,realistic,front portrait of a man,30 years old,deep_skin,(square face:1.1),(silver hair:1.1),cocked eyebrow,blue eyes,big nose,thick lips,grin,teeth,long hair,in summer,blue t-shirt,
9
+
10
+ (illustration of a boy riding bike:1.2),white_background,outline,
11
+
12
+ 0,
13
+ 123.60.67.167
14
+
15
+ 1, find oldones/ -type f -name 'a*' -delete
16
+
17
+
18
+ 2,
19
+ scp -r local_path/ [email protected]:/remote_path/
20
+ Ctrl+z
21
+ bg
22
+
23
+ 然而,使用高性能文件传输工具rsync是一个更好的选择。
24
+ rsync -aPz sourcefolder/ [email protected]:/root/destinationfolder/
25
+
26
+
27
+ 3, 多个python版本共存/自由切换
28
+ https://github.com/pyenv/pyenv?tab=readme-ov-file#usage
29
+ pyenv install 3.10.4
30
+
31
+ 配置环境变量(根据自己系统,PYENV_ROOT路径可能不同)
32
+ export PYENV_ROOT=/usr/local/Cellar/pyenv/2.4.13/
33
+ export PATH="$PYENV_ROOT/bin:$PATH"
34
+ if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
35
+
36
+
37
+
38
+ Switch between Python versions
39
+ To select a Pyenv-installed Python as the version to use, run one of the following commands:
40
+
41
+ pyenv shell <version> -- select just for current shell session
42
+ pyenv local <version> -- automatically select whenever you are in the current directory (or its subdirectories)
43
+ pyenv global <version> -- select globally for your user account
44
+
45
+
46
+ pyenv versions
47
+
48
+
49
+
50
+ 4, nvm
51
+
52
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
53
+
54
+ Close and reopen your terminal to start using nvm or run the following to use it now:
55
+ export NVM_DIR="$HOME/.nvm"
56
+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
57
+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
58
+
59
+ nvm install 20.0.0
60
+
61
+ nvm list
62
+
63
+ 5, du -h 显示目录占用空间大小情况
64
+ 如果显示太多,使用 --max-depth=1 控制显示的层级数,非常的方便好用
65
+
66
+
67
+ 6,
68
+ Argument list too long error for rm, cp, mv commands
69
+
70
+ 解决:
71
+ 例子,
72
+ 删除: find . -name "*.pdf" -print0 | xargs -0 rm
73
+ 移动: find . -type f -name '*.mp3' -exec mv {} ../pron/ \;
74
+
75
+
76
+
77
+ 7,
78
+ tar 压缩加密
79
+ tar -czvf - path2folder/ | openssl des3 -salt -k xyxyxyxyx -out ./file.tar.gz
80
+
81
+ tar 解压
82
+ openssl des3 -d -k xyxyxyxyx -salt -in file.tar.gz | tar xzf -
83
+
84
+
85
+
86
+ 8, How can I check if my CPU is AMD64 compatible?
87
+
88
+ lscpu
89
+
90
+ cat /proc/cpuinfo
91
+
92
+ Architecture: i686
93
+ CPU op-mode(s): 32-bit, 64-bit
94
+ Byte Order: Little Endian
95
+ CPU(s): 4
96
+ On-line CPU(s) list: 0-3
97
+ Thread(s) per core: 2
98
+ Core(s) per socket: 2
99
+ Socket(s): 1
100
+ Vendor ID: GenuineIntel
101
+ CPU family: 6
102
+ Model: 42
103
+ Stepping: 7
104
+ CPU MHz: 2301.000
105
+ BogoMIPS: 4589.37
106
+ Virtualization: VT-x
107
+ L1d cache: 32K
108
+ L1i cache: 32K
109
+ L2 cache: 256K
110
+ L3 cache: 3072K
111
+ For Intel systems, the Vendor ID is - GenuineIntel and for AMD - AuthenticAMD.
112
+
113
+ But they are compatible. It is a bit of an historical artifact in that AMD was the creator of the 64 bit 'long' mode, and later Intel matched that creation.
114
+ But naming often refers to any 64 bit binary as an AMD/64bit format, usually with the label 'AMD64'.
115
+
116
+