forked from projectpages/project-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pc-change-rec.html
354 lines (324 loc) · 12.1 KB
/
pc-change-rec.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<!DOCTYPE html>
<html lang="zh">
<head>
<!-- 2022-10-24 Mon 15:11 -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>pc change rec</title>
<meta name="author" content="yefeiyu" />
<meta name="description" content="日常修改的记录" />
<meta name="generator" content="Org Mode" />
<link rel="icon" href="/favicon.ico">
<meta name="theme-color" content="#ffffff">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style/toc.css"/>
<link rel="stylesheet" href="/style/tufte.css"/>
<link rel="stylesheet" href="/style/main.css"/>
<link rel="alternate" type="application/rss+xml" href="https://gongzhitaao.org/orgcss/org.css"/>
<link rel="stylesheet" type="text/css" href="https://gongzhitaao.org/orgcss/org.css"/>
<link rel="stylesheet" href="/style/copy-pre.css"/>
<link rel="stylesheet" href="/style/clipboard.css">
<link rel="stylesheet" href="/style/custom.css">
<script src="/js/copy-pre.js"></script>
<script src="/js/clipboard.js"></script>
<script src="/js/custom.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.js" integrity="sha512-ePtegHW811NTnZd0Er1UxtBb8dizKEdSzANYy/UhxM40FC2yCWwb1CQrj03BPbrs6XdUkcHuyVn9Xq9q0Lm34g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.4.0/clipboard.min.js"></script>
<link rel="stylesheet" href="/style/clip2.css"/>
<script src="/js/clip2.js"></script>
</head>
<body>
<div id="preamble" class="status">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJRFJGX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header>
<a accesskey="h" href="/index.html"> HOME </a> |
<a href="#" id="edit-in-github">EDIT</a> |
<a href="https://yefeiyu.github.io/index.xml">RSS</a> |
<a accesskey="H" href="/about.html">ABOUT</a> |
<a href="https://github.com/yefeiyu">GITHUB</a>
</header>
</div>
<div id="content" class="content">
<header>
<h1 class="title">pc change rec</h1>
</header>
<div id="outline-container-org6ed2684" class="outline-2">
<h2 id="org6ed2684"><span class="section-number-2">1.</span> <span class="timestamp-wrapper"><span class="timestamp"><2018-04-10 Tue></span></span></h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-orga4877c0" class="outline-3">
<h3 id="orga4877c0"><span class="section-number-3">1.1.</span> How to execute command on startup (rc.local alternative)</h3>
<div class="outline-text-3" id="text-1-1">
<p>
which involves use of systemd here:
</p>
</div>
<ol class="org-ol">
<li><a id="org3f31062"></a>Create a service:<br>
<div class="outline-text-4" id="text-1-1-1">
<pre class="code"><code>sudo vi /etc/systemd/system/rc-local.service
</code></pre>
</div>
</li>
<li><a id="orgdd26cc9"></a>Add your code there:<br>
<div class="outline-text-4" id="text-1-1-2">
<pre class="code"><code>[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
</code></pre>
</div>
</li>
<li><a id="orga32762e"></a>Create and make sure /etc/rc.local is executable and add this code inside it:<br>
<div class="outline-text-4" id="text-1-1-3">
<pre class="code"><code>sudo chmod +x /etc/rc.local
</code></pre>
<pre class="code"><code>#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
exit 0
</code></pre>
</div>
</li>
<li><a id="orgfffa383"></a>Enable the service:<br>
<div class="outline-text-4" id="text-1-1-4">
<pre class="code"><code>sudo systemctl enable rc-local
</code></pre>
</div>
</li>
<li><a id="org5c8cd9d"></a>Start service and check status:<br>
<div class="outline-text-4" id="text-1-1-5">
<pre class="code"><code>sudo systemctl start rc-local.service
sudo systemctl status rc-local.service
</code></pre>
<p>
If all goes well you can add your code to the /etc/rc.local file then restart it.
</p>
</div>
</li>
</ol>
</div>
<div id="outline-container-org0bb1f19" class="outline-3">
<h3 id="org0bb1f19"><span class="section-number-3">1.2.</span> openbox close sleep and screensaver</h3>
<div class="outline-text-3" id="text-1-2">
<pre class="code"><code>
#xset s 300 #设置屏保时间为300秒,时间单位为秒
#xset s 0 #关闭屏幕保护
#xset dpms 0 0 0 # 三个数值分别为Standby、Suspend、Off,单位秒
#xset -dpms #关闭电源管理
</code></pre>
</div>
</div>
<div id="outline-container-org253b2d1" class="outline-3">
<h3 id="org253b2d1"><span class="section-number-3">1.3.</span> openbox environment setup</h3>
<div class="outline-text-3" id="text-1-3">
<p>
Setting up your environment
</p>
<p>
If you would like to set environment variables that will affect everything run in your current session (including Openbox), you can place them in ~/.config/openbox/environment. Here's an example ~/.config/openbox/environment file:
</p>
<pre class="code"><code># Set up my own path
export PATH=$HOME/bin:$PATH
# Change the language used from the system's default
export LC_CTYPE=ja_JP.utf8
# SCIM for typing non-english characters
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=scim
export QT_IM_MODULE=scim
</code></pre>
</div>
</div>
<div id="outline-container-org37e4f50" class="outline-3">
<h3 id="org37e4f50"><span class="section-number-3">1.4.</span> openbox keyblinding setup, ~/.config/openbox/rc.xml</h3>
<div class="outline-text-3" id="text-1-4">
<pre class="code"><code><!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>kfmclient</name>
</startupnotify>
<command>pcmanfm</command>
</action>
</keybind>
</code></pre>
</div>
</div>
</div>
<div id="outline-container-org72c0034" class="outline-2">
<h2 id="org72c0034"><span class="section-number-2">2.</span> <span class="timestamp-wrapper"><span class="timestamp"><2017-06-01 Thu></span></span></h2>
<div class="outline-text-2" id="text-2">
<p>
chane the _app/assets/themes/curtana/_less/common.less
table {
</p>
<p>
tr:nth-child(even){background-color: #f5f2ff}
</p>
<p>
th {
background-color: #cC0Ff0;
color: white;
}
// TODO: responsive table support
</p>
<ul class="org-ul">
<li>// display: inline-block;</li>
<li>// overflow-x: auto;</li>
<li>// white-space: nowrap;</li>
<li>display: inline-block;</li>
<li>overflow-x: auto;</li>
<li>white-space: nowrap;</li>
</ul>
<p>
}
and then the TABLE had 横拉滚动条
</p>
</div>
</div>
<div id="outline-container-org750e2b0" class="outline-2">
<h2 id="org750e2b0"><span class="section-number-2">3.</span> <span class="timestamp-wrapper"><span class="timestamp"><2017-04-14 Fri></span></span></h2>
<div class="outline-text-2" id="text-3">
<p>
A friend sent me an email with a JPEG photo in the middle of the text. The picture is so big, most of it is outside the screen and I want to view it with an outside image viewer and not in Gnus. How do I save an image that is included in the email in Gnus, if it's not just an ordinary attachment?
</p>
<p>
The command you need is gnus-summary-save-parts. You have an inline image, which implies that you received an HTML mail. An inline image is an instance of a so-called MIME part, where MIME is an Internet standard governing email-related things such as non-text attachments.
</p>
<p>
L ;;list all group of gnus
X m ;;save image to ~/
</p>
<p>
debian chrome extensions installation is not enabled.
se /etc/environment
CHROMIUM_FLAGS='–enable-remote-extensions'
</p>
</div>
</div>
<div id="outline-container-org4f94c1a" class="outline-2">
<h2 id="org4f94c1a"><span class="section-number-2">4.</span> <span class="timestamp-wrapper"><span class="timestamp"><2017-04-13 Thu></span></span></h2>
<div class="outline-text-2" id="text-4">
<p>
export WINEARCH=win32
export WINEPREFIX=$HOME/.mynewwine32prefix/
</p>
<p>
bash winetricks dotnet30
proxychains4 bash winetricks dotnet40
</p>
<p>
wget kegel.com/wine/winetricks && sh winetricks ie8 ;;this is too old.
</p>
<p>
emacs: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
<a href="https://packages.debian.org/jessie/libpng12-0">https://packages.debian.org/jessie/libpng12-0</a>
s dpkg -i lib*
s apt-get install -f
</p>
</div>
</div>
<div id="outline-container-org5652b09" class="outline-2">
<h2 id="org5652b09"><span class="section-number-2">5.</span> <span class="timestamp-wrapper"><span class="timestamp"><2017-03-02 Thu></span></span></h2>
<div class="outline-text-2" id="text-5">
<p>
install wine-qq on debian
<a href="http://www.longene.org/forum/viewtopic.php?f=6&t=30516">http://www.longene.org/forum/viewtopic.php?f=6&t=30516</a>
</p>
</div>
</div>
<div id="outline-container-org0a2de4c" class="outline-2">
<h2 id="org0a2de4c"><span class="section-number-2">6.</span> <span class="timestamp-wrapper"><span class="timestamp"><2017-01-24 Tue></span></span></h2>
<div class="outline-text-2" id="text-6">
<p>
change emacs' color in terminator, add this line to .bashrc
export TERM=xterm-256color
</p>
<p>
define terminator's default position, change the '.local/share/applications/terminator.desktop' to:
terminator –geometry=1200x900+0+0
</p>
<p>
add the font of msyh.ttf
</p>
<p>
define the font by #gnome-tweak-tool
</p>
</div>
</div>
<div id="outline-container-orga32e6e7" class="outline-2">
<h2 id="orga32e6e7"><span class="section-number-2">7.</span> <span class="timestamp-wrapper"><span class="timestamp"><2016-12-19 Mon></span></span></h2>
<div class="outline-text-2" id="text-7">
<p>
#spni -g n ;; to install npm's extension n
#s n 7.2.1 ;;to install nodejs v7.2.1
</p>
</div>
</div>
<div id="outline-container-org677bbd0" class="outline-2">
<h2 id="org677bbd0"><span class="section-number-2">8.</span> <span class="timestamp-wrapper"><span class="timestamp"><2016-08-23 Tue></span></span></h2>
<div class="outline-text-2" id="text-8">
<p>
.emacs
L625
(setq myvar/relative-filename (concat "<a href="http://yefeiyu.github.io/assets/img/">http://yefeiyu.github.io/assets/img/</a>" myvar/img-name))
</p>
</div>
</div>
<div id="outline-container-orgaaa0487" class="outline-2">
<h2 id="orgaaa0487"><span class="section-number-2">9.</span> <span class="timestamp-wrapper"><span class="timestamp"><2016-08-25 Thu></span></span></h2>
<div class="outline-text-2" id="text-9">
<p>
sudo apt-get install bleachbit
sudo apt-get install sweeper
sudo apt-get remove sweeper
sudo dpkg -i nautilus_nutstore_amd64.deb
<span class="timestamp-wrapper"><span class="timestamp"><2016-09-21 Wed></span></span>
install vmware debian and windows xp.
debian:
sai xfce4
add 6 keyboads shortcut, such as emacs, conkeror, gnus
change the desktop to 600x800, which need change the VGA1 to Virtual1
rehook dropbox to <i>home/xx/Dropbox
change conkerorrc's qiushi to 98%, and /</i>.
</p>
<p>
eba
alias gl='git pull'
</p>
</div>
</div>
</div>
<div id="postamble" class="status">
<footer>
<p>Author: yefeiyu <a aria-label="Follow @yefeiyu on GitHub" data-count-aria-label="# followers on GitHub" data-count-api="/users/jcouyang#followers" data-count-href="/jcouyang/followers" href="https://github.com/yefeiyu class="github-button">Follow @yefeiyu</a></p>
<p>Modified: 2022-10-22 Sat 16:50</p>
<p>Generated by: <a href="https://www.gnu.org/software/emacs/">Emacs</a> 28.1 (<a href="https://orgmode.org">Org</a> mode 9.5.3) × <a href="https://github.com/jcouyang/orgpress">OrgPress</a></p>
</footer>
</div>
</body>
</html>