-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
415 lines (270 loc) · 16.4 KB
/
index.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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title>小高笔记</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description">
<meta property="og:type" content="website">
<meta property="og:title" content="小高笔记">
<meta property="og:url" content="http://thinksoso.com/index.html">
<meta property="og:site_name" content="小高笔记">
<meta property="og:description">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="小高笔记">
<meta name="twitter:description">
<link rel="alternative" href="/atom.xml" title="小高笔记" type="application/atom+xml">
<link rel="icon" href="/favicon.png">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="container">
<div class="left-col">
<div class="overlay"></div>
<div class="intrude-less">
<header id="header" class="inner">
<a href="/" class="profilepic">
<img lazy-src="null" class="js-avatar">
</a>
<hgroup>
<h1 class="header-author"><a href="/">Gao YD</a></h1>
</hgroup>
<div class="switch-btn">
<div class="icon">
<div class="icon-ctn">
<div class="icon-wrap icon-house" data-idx="0">
<div class="birdhouse"></div>
<div class="birdhouse_holes"></div>
</div>
<div class="icon-wrap icon-ribbon hide" data-idx="1">
<div class="ribbon"></div>
</div>
<div class="icon-wrap icon-link hide" data-idx="2">
<div class="loopback_l"></div>
<div class="loopback_r"></div>
</div>
<div class="icon-wrap icon-me hide" data-idx="3">
<div class="user"></div>
<div class="shoulder"></div>
</div>
</div>
</div>
<div class="tips-box hide">
<div class="tips-arrow"></div>
<ul class="tips-inner">
<li>Menu</li>
<li>標籤</li>
<li>Links</li>
<li>關於</li>
</ul>
</div>
</div>
<div class="switch-area">
<div class="switch-wrap">
<section class="switch-part switch-part1">
<nav class="header-menu">
<ul>
<li><a href="/">主页</a></li>
<li><a href="/archives">所有文章</a></li>
</ul>
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="#" title="github">github</a>
<a class="weibo" target="_blank" href="http://weibo.com/1495102161/" title="weibo">weibo</a>
<a class="rss" target="_blank" href="#" title="rss">rss</a>
<a class="zhihu" target="_blank" href="#" title="zhihu">zhihu</a>
<a class="douban" target="_blank" href="https://www.douban.com/people/4248003/" title="douban">douban</a>
</div>
</nav>
</section>
<section class="switch-part switch-part2">
<div class="widget tagcloud" id="js-tagcloud">
</div>
</section>
<section class="switch-part switch-part3">
<div id="js-friends">
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">奥巴马的博客</a>
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">卡卡的美丽传说</a>
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">本泽马的博客</a>
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">吉格斯的博客</a>
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">习大大大不同</a>
<a target="_blank" class="main-nav-link switch-friends-link" href="http://localhost:4000/">托蒂的博客</a>
</div>
</section>
<section class="switch-part switch-part4">
<div id="js-aboutme">我是谁,我从哪里来,我到哪里去?我就是我,是颜色不一样的吃货…</div>
</section>
</div>
</div>
</header>
</div>
</div>
<div class="mid-col">
<nav id="mobile-nav">
<div class="overlay">
<div class="slider-trigger"></div>
<h1 class="header-author js-mobile-header hide">Gao YD</h1>
</div>
<div class="intrude-less">
<header id="header" class="inner">
<div class="profilepic">
<img lazy-src="null" class="js-avatar">
</div>
<hgroup>
<h1 class="header-author">Gao YD</h1>
</hgroup>
<nav class="header-menu">
<ul>
<li><a href="/">主页</a></li>
<li><a href="/archives">所有文章</a></li>
<div class="clearfix"></div>
</ul>
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="#" title="github">github</a>
<a class="weibo" target="_blank" href="http://weibo.com/1495102161/" title="weibo">weibo</a>
<a class="rss" target="_blank" href="#" title="rss">rss</a>
<a class="zhihu" target="_blank" href="#" title="zhihu">zhihu</a>
<a class="douban" target="_blank" href="https://www.douban.com/people/4248003/" title="douban">douban</a>
</div>
</nav>
</header>
</div>
</nav>
<div class="body-wrap">
<article id="post-tmux-note" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/05/03/tmux-note/" class="article-date">
<time datetime="2016-05-03T15:36:24.000Z" itemprop="datePublished">2016-05-03</time>
</a>
</div>
<div class="article-inner">
<input type="hidden" class="isFancy" />
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/05/03/tmux-note/">tmux_note</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<h1 id="TMUX-笔记"><a href="#TMUX-笔记" class="headerlink" title="TMUX 笔记"></a>TMUX 笔记</h1><p>mac首先iterm映射键盘<br><code>ctrl</code> 和 <code>windows</code> 交换<br>这样 <code>ctrl</code> + <code>c</code> 就爽了。<br>MAC本身软件设置也可以设置<code>ctrl</code> 和 <code>windows</code> 交换</p>
<p>man tmux</p>
<p><strong>TMUX常用快捷键</strong></p>
<p>进入前</p>
<p><code>tmux new -s mysession1</code> 新建一个回话 </p>
<p><code>tmux a -t portage</code> 连接上回话</p>
<p>tmux new-session -d ‘emerge -uDNvp @world’ </p>
<p><code>C-b</code> <code>n</code> 下一个窗口。<br><code>C-b</code> <code>方向键盘</code> pane上下移动。</p>
<h1 id="Ctrl-b-:-进入后命令行"><a href="#Ctrl-b-:-进入后命令行" class="headerlink" title="Ctrl-b - : 进入后命令行"></a><code>Ctrl</code>-<code>b</code> - <code>:</code> 进入后命令行</h1><p>new -s 回话名 </p>
<h1 id="Ctrl-b-相当vi-esc-进入"><a href="#Ctrl-b-相当vi-esc-进入" class="headerlink" title="Ctrl-b (相当vi-esc)进入"></a><code>Ctrl</code>-<code>b</code> (相当vi-esc)进入</h1><p><code>s</code> 切换回话<br><code>d</code> 分离-退出<br><code>` </code> 重命名<br><code>t</code> 时钟<br><code>?</code> 看键盘绑定<br><code>,</code> 逗号重命名回话<br><code>:</code> 命令行提示<br><code>'</code> 选择一个编号切换<br><code>w</code> 选择当前窗口非交互<br>r 重新加载配置文件</p>
<p>一个session可以建立N个windows。<br>一个windows又支持N个pan。</p>
<p>##启动进入<br>tmux ls 列出所有session<br>tmux a -t 回话名<br>C-b d 退出 </p>
<p>##回话操作##<br><code>s</code> session显示和切换<br><code>d</code> 离开session<br><code>$</code> 重命名当前session<br><code><c-z></code> 挂起当前session<br><code>s</code> 显示和切换</p>
<p>##窗口操作##<br><code>w</code> windows切换<br><code>c</code> 创建一个新窗口<br><code>n</code> 切换至下一窗口<br><code>p</code> 切换到上一个窗口<br><code>,</code> 逗号,重新命令当前窗口<br><code>&</code> 关闭窗口</p>
<p><code>l</code> 移动窗口<br><code>"</code> 水平分割窗口<br><code>%</code> 垂直分割窗口</p>
<p><code>o</code> 移动至下一个面板<br><code>w</code> 当前窗口非激活<br><code>输入窗口编号0-9</code> 选择</p>
<p>切换回话,C-b s<br>关闭窗口,实际操作是关闭<br><code>x</code> 关闭当前pane</p>
<p>##pane操作##</p>
<p><code>q</code> 显示pane的编号<br><code>x</code> 关闭当前pane</p>
<p><code>"</code> 创建横向分割<br><code>%</code> 创建纵向分割</p>
<p><code>方向键</code> 在pane直接移动<br><code>o</code> 到下一个pane<br><code>opt+方向键</code> 调整pane大小<br><code>{ / }</code>左右pane交换<br><code>空格</code> 横竖切换</p>
<p> 没有创建的操作,直接在window风格就可以了。</p>
<p>##复制模式copy-mode</p>
<p>前缀 [ 进入复制模式<br>按 space 开始复制,移动光标选择复制区域<br>按 Enter 复制并退出copy-mode。<br>将光标移动到指定位置,按 PREIFX ] 粘贴<br>如果把tmux比作vim的话,那么我们大部分时间都是处于编辑模式,我们复制的时候可不可以像vim一样移动呢?只需要在配置文件(~/.tmux.conf)中加入如下行即可。</p>
<p>copy-mode 将快捷键设置为vi 模式<br>setw -g mode-keys vi</p>
<p>gao@ubuntu15:~$ tmux ls<br>0: 1 windows (created Sat Dec 26 18:06:57 2015) [108x40] (attached)<br>2: 2 windows (created Sun Dec 27 10:17:55 2015) [108x40] (attached)<br>clang: 1 windows (created Sun Dec 27 09:55:16 2015) [108x40] (attached)<br><strong>go: 2 windows</strong> (created Sun Dec 27 11:48:22 2015) [108x40] (attached)</p>
<p>下状态<br>[go] 0:apple2<em> 1:bash-<br>w 2个窗口<br>(0) 0: apple2</em> “ubuntu15”<br>(1) 1: bash- “ubuntu15”</p>
<h2 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h2><p>终端环境之tmux<br><a href="http://foocoder.com/blog/zhong-duan-huan-jing-zhi-tmux.html/" target="_blank" rel="external">http://foocoder.com/blog/zhong-duan-huan-jing-zhi-tmux.html/</a></p>
<p>tmux<br><a href="https://wiki.gentoo.org/wiki/Tmux" target="_blank" rel="external">https://wiki.gentoo.org/wiki/Tmux</a></p>
<p>Tmux<em>(简体中文) 里面有很多shell可以之后看。<br><<a href="https://wiki.archlinux.org/index.php/Tmux" target="_blank" rel="external">https://wiki.archlinux.org/index.php/Tmux</a></em>(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)></p>
<p>一个IT人员实用的工具:Tmux<br><a href="http://www.cnblogs.com/wsjhk/p/4469452.html" target="_blank" rel="external">http://www.cnblogs.com/wsjhk/p/4469452.html</a></p>
<p>如何使用 powerline扩展我们的 tmux状态栏<br><a href="http://zpz.name/1989/" target="_blank" rel="external">http://zpz.name/1989/</a><br><a href="https://github.com/erikw/tmux-powerline" target="_blank" rel="external">https://github.com/erikw/tmux-powerline</a></p>
<p>配置解释 常用按键<br><a href="http://blog.csdn.net/robertbaker/article/details/42172203" target="_blank" rel="external">http://blog.csdn.net/robertbaker/article/details/42172203</a></p>
<p>快速启动几个窗口的配置文件<br><a href="https://github.com/xuxiaodong/tmuxen/blob/master/tmuxen" target="_blank" rel="external">https://github.com/xuxiaodong/tmuxen/blob/master/tmuxen</a></p>
</div>
<div class="article-info article-info-index">
<div class="clearfix"></div>
</div>
</div>
</article>
<article id="post-hello-world" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="/2016/05/03/hello-world/" class="article-date">
<time datetime="2016-05-03T14:06:48.000Z" itemprop="datePublished">2016-05-03</time>
</a>
</div>
<div class="article-inner">
<input type="hidden" class="isFancy" />
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="/2016/05/03/hello-world/">Hello World</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<p>Welcome to <a href="https://hexo.io/" target="_blank" rel="external">Hexo</a>! This is your very first post. Check <a href="https://hexo.io/docs/" target="_blank" rel="external">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a href="https://hexo.io/docs/troubleshooting.html" target="_blank" rel="external">troubleshooting</a> or you can ask me on <a href="https://github.com/hexojs/hexo/issues" target="_blank" rel="external">GitHub</a>.</p>
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new <span class="string">"My New Post"</span></span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/writing.html" target="_blank" rel="external">Writing</a></p>
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo server</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/server.html" target="_blank" rel="external">Server</a></p>
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo generate</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo deploy</span><br></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>
</div>
<div class="article-info article-info-index">
<div class="clearfix"></div>
</div>
</div>
</article>
</div>
<footer id="footer">
<div class="outer">
<div id="footer-info">
<div class="footer-left">
© 2016 Gao YD
</div>
<div class="footer-right">
<a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/litten/hexo-theme-yilia" target="_blank">Yilia</a> by Litten
</div>
</div>
</div>
</footer>
</div>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script>
var yiliaConfig = {
fancybox: true,
mathjax: true,
animate: true,
isHome: true,
isPost: false,
isArchive: false,
isTag: false,
isCategory: false,
open_in_new: false
}
</script>
<script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js"></script>
<script src="/js/main.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</div>
</body>
</html>