-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
201 lines (157 loc) · 30.1 KB
/
atom.xml
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Infinite Road</title>
<subtitle>Be a better Programmer</subtitle>
<link href="/atom.xml" rel="self"/>
<link href="http://waynelkh.github.io/"/>
<updated>2016-06-23T18:51:21.000Z</updated>
<id>http://waynelkh.github.io/</id>
<author>
<name>Wayne Lee</name>
</author>
<generator uri="http://hexo.io/">Hexo</generator>
<entry>
<title>oh-my-zsh</title>
<link href="http://waynelkh.github.io/tool/oh-my-zsh/"/>
<id>http://waynelkh.github.io/tool/oh-my-zsh/</id>
<published>2014-09-27T13:09:36.000Z</published>
<updated>2016-06-23T18:51:21.000Z</updated>
<content type="html"><p>I use zsh for my default shell.<br>And oh-my-zsh for enhance zsh<br><a href="https://github.com/waynelkh/waynelkhrc/blob/linux/.zshrc" target="_blank" rel="external">my zshrc</a><br>Installation<br>Make sure you there is zsh on your machine.<br>If you want to change zsh to default shell, just type <code>$ chsh -s /bin/zsh</code>.<br>There are possible zsh path. Or you can <code>$ where zsh</code> to find the path<br><figure class="highlight gradle"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="regexp">/bin/</span>zsh</span><br><span class="line"><span class="regexp">/usr/</span>local<span class="regexp">/bin/</span>zsh</span><br></pre></td></tr></table></figure></p>
<p><a href="https://github.com/robbyrussell/oh-my-zsh" target="_blank" rel="external">oh-my-zsh</a><br><figure class="highlight crystal"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>git clone <span class="symbol">git:</span>/<span class="regexp">/github.com/robbyrussell</span><span class="regexp">/oh-my-zsh.git ~/</span>.oh-my-zsh</span><br><span class="line"><span class="variable">$ </span>cp ~<span class="regexp">/.zshrc ~/</span>.zshrc.orig</span><br><span class="line"><span class="variable">$ </span>cp ~<span class="regexp">/.oh-my-zsh/templates</span><span class="regexp">/zshrc.zsh-template ~/</span>.zshrc</span><br></pre></td></tr></table></figure></p>
<p>Customized .zshrc !</p>
<h3 id="Tips"><a href="#Tips" class="headerlink" title="Tips"></a>Tips</h3><p>可以利用<br><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"><span class="keyword">for</span> x <span class="keyword">in</span> <span class="number">0</span> <span class="number">1</span> <span class="number">4</span> <span class="number">5</span> <span class="number">7</span> <span class="number">8</span>; <span class="keyword">do</span> <span class="keyword">for</span> i <span class="keyword">in</span> `seq <span class="number">30</span> <span class="number">37</span>`; <span class="keyword">do</span> <span class="keyword">for</span> a <span class="keyword">in</span> `seq <span class="number">40</span> <span class="number">47</span>`; <span class="keyword">do</span> <span class="built_in">echo</span> <span class="operator">-ne</span> <span class="string">"\e[<span class="variable">$x</span>;<span class="variable">$i</span>;<span class="variable">$a</span>"</span><span class="string">"m\\\e[<span class="variable">$x</span>;<span class="variable">$i</span>;<span class="variable">$a</span>"</span><span class="string">"m\e[0;37;40m "</span>; <span class="keyword">done</span>; <span class="built_in">echo</span>; <span class="keyword">done</span>; <span class="keyword">done</span>; <span class="built_in">echo</span> <span class="string">""</span>;</span><br></pre></td></tr></table></figure></p>
<p>來查看terminal所有的顏色</p>
</content>
<summary type="html">
<p>I use zsh for my default shell.<br>And oh-my-zsh for enhance zsh<br><a href="https://github.com/waynelkh/waynelkhrc/blob/linux/.zshrc" ta
</summary>
<category term="tool" scheme="http://waynelkh.github.io/categories/tool/"/>
<category term="oh-my-zsh" scheme="http://waynelkh.github.io/tags/oh-my-zsh/"/>
<category term="shell" scheme="http://waynelkh.github.io/tags/shell/"/>
<category term="zsh" scheme="http://waynelkh.github.io/tags/zsh/"/>
</entry>
<entry>
<title>vim</title>
<link href="http://waynelkh.github.io/tool/vim/"/>
<id>http://waynelkh.github.io/tool/vim/</id>
<published>2014-09-27T13:09:00.000Z</published>
<updated>2016-06-23T18:40:59.000Z</updated>
<content type="html"><h3 id="Default-Usage"><a href="#Default-Usage" class="headerlink" title="Default Usage"></a>Default Usage</h3><p>There is lots of tutorial on the Internet.<br>You can google or use the <code>$ vimtutor</code> to learn how to use basic.<br><a href="http://www.openvim.com/" target="_blank" rel="external">http://www.openvim.com/</a><br><a href="http://vim-adventures.com/" target="_blank" rel="external">http://vim-adventures.com/</a></p>
<h4 id="Tips"><a href="#Tips" class="headerlink" title="Tips"></a>Tips</h4><span class="highlight-text blue">Search what you select</span>
<ol>
<li>visual mode select word or sentance (v + hjklew.. and y for yank)</li>
<li><code>/</code></li>
<li><code>^r</code></li>
<li><code>&quot;</code><br>Done</li>
</ol>
<p>text object: w,s,p,t<br>motions: a,i,t,f,F<br>command: d,c,y,v</p>
<p>Combine: diw, ciw etc…</p>
<p>查詢所有key map<br>vim原生<code>:help index</code><br>查詢pluginmap<code>:verbose map</code> <code>:verbose map!</code><br>:help map-listing<br>:help :map-verbose<br>:help :verbose<br>:help :verbose-cmd<br>:help map-which-keys</p>
<h3 id="vimrc"><a href="#vimrc" class="headerlink" title="vimrc"></a>vimrc</h3><p>The configuration of vim<br>Here is my vim configuration on the github.<br>Basic configuration: <a href="https://github.com/waynelkh/waynelkhrc/blob/linux/.vimrc" target="_blank" rel="external">vimrc</a><br>Plugin configuration: <a href="https://github.com/waynelkh/waynelkhrc/blob/linux/.vimrc.bundles" target="_blank" rel="external">vimrc.bundle</a><br><div class="figure " style="width:;"><a class="fancybox" href="/tool/vim/screenshot.png" title="My vim screenshot" data-fancybox-group=""><img class="fig-img" src="/tool/vim/screenshot.png" alt="My vim screenshot"></a><span class="caption">My vim screenshot</span></div><div style="clear:both;"></div></p>
<h3 id="Vundle"><a href="#Vundle" class="headerlink" title="Vundle"></a><a href="https://github.com/VundleVim/Vundle.vim" target="_blank" rel="external">Vundle</a></h3><p>Vundle is a Vim plugin manager.</p>
<p>Installation<br><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">git <span class="built_in">clone</span> https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim</span><br></pre></td></tr></table></figure></p>
<p>Add in .vimrc</p>
<figure class="highlight bash"><figcaption><span>.vimrc</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">set</span> nocompatible <span class="string">" be iMproved, required</span><br><span class="line">filetype off "</span> required</span><br><span class="line"><span class="string">"set the runtime path to include Vundle and initialize</span><br><span class="line">set rtp+=~/.vim/bundle/Vundle.vim</span><br><span class="line">call vundle#begin()</span><br><span class="line"></span><br><span class="line">Plugin 'gmarik/Vundle.vim'</span><br><span class="line"></span><br><span class="line">call vundle#end() "</span> required</span><br><span class="line">filetype plugin indent on <span class="string">" required</span></span><br></pre></td></tr></table></figure>
<p>And reopen vim, try the command <code>:BundleList</code> to check the plugin you install now<br>Other command<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">$ BundleInstall</span><br><span class="line">$ BundleSearch</span><br><span class="line">$ BundleList</span><br><span class="line">$ BundleUpdate</span><br><span class="line">$ BundleClean</span><br><span class="line">$ BundleDocs</span><br></pre></td></tr></table></figure></p>
</content>
<summary type="html">
<h3 id="Default-Usage"><a href="#Default-Usage" class="headerlink" title="Default Usage"></a>Default Usage</h3><p>There is lots of tutorial
</summary>
<category term="tool" scheme="http://waynelkh.github.io/categories/tool/"/>
<category term="editor" scheme="http://waynelkh.github.io/tags/editor/"/>
<category term="vim" scheme="http://waynelkh.github.io/tags/vim/"/>
</entry>
<entry>
<title>Irssi</title>
<link href="http://waynelkh.github.io/tool/irssi/"/>
<id>http://waynelkh.github.io/tool/irssi/</id>
<published>2014-09-27T12:48:02.000Z</published>
<updated>2016-06-23T18:49:24.000Z</updated>
<content type="html"><h2 id="Notes-for-using-irssi-of-irc-client"><a href="#Notes-for-using-irssi-of-irc-client" class="headerlink" title="Notes for using irssi of irc client"></a>Notes for using irssi of irc client</h2><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">/connect irc.freenode.net</span><br><span class="line">/away [message] <span class="comment"># Setting the away message, if somebody msg to me , it will auto resend the message to the person.</span></span><br><span class="line">/me [message] <span class="comment"># Like broadcast, it will display on difference color.</span></span><br><span class="line">/msg NickServ REGISTER &lt;password&gt;</span><br><span class="line">/msg NickServ IDENTIFY &lt;password&gt;</span><br></pre></td></tr></table></figure>
<h2 id="Configuration"><a href="#Configuration" class="headerlink" title="Configuration"></a>Configuration</h2><figure class="highlight bash"><figcaption><span>.irssi/config</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## Setting the auto connect servers</span></span><br><span class="line">servers = (</span><br><span class="line"> &#123;</span><br><span class="line"> address = <span class="string">"irc.freenode.net"</span>;</span><br><span class="line"> chatnet = <span class="string">"freenode"</span>;</span><br><span class="line"> port = <span class="string">"6667"</span>;</span><br><span class="line"> use_ssl = <span class="string">"no"</span>;</span><br><span class="line"> ssl_verify = <span class="string">"no"</span>;</span><br><span class="line"> autoconnect = <span class="string">"yes"</span>;</span><br><span class="line"> &#125;</span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"><span class="comment">## and auto identify the nickname</span></span><br><span class="line">chatnets = &#123;</span><br><span class="line"> freenode = &#123;</span><br><span class="line"> <span class="built_in">type</span> = <span class="string">"IRC"</span>;</span><br><span class="line"> nick = <span class="string">"[nickname]"</span>;</span><br><span class="line"> autosendcmd = <span class="string">"/msg NickServ identify [your password] ;wait 2000"</span>;</span><br><span class="line"> &#125;;</span><br><span class="line">&#125;;</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="comment">## Setting the autojoin channels with password</span></span><br><span class="line">channels = (</span><br><span class="line"> &#123;</span><br><span class="line"> name = <span class="string">"#[channel name]"</span>;</span><br><span class="line"> chatnet = <span class="string">"freenode"</span>;</span><br><span class="line"> autojoin = <span class="string">"yes"</span>;</span><br><span class="line"> password = <span class="string">"[channel password]"</span>;</span><br><span class="line"> &#125;</span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"><span class="comment">## ignore the specific message in the channels</span></span><br><span class="line">ignores = (</span><br><span class="line"> &#123; level = <span class="string">"JOINS QUITS"</span>; channels = ( <span class="string">"#archlinux"</span> ); &#125;,</span><br><span class="line"> &#123; level = <span class="string">"JOINS QUITS"</span>; channels = ( <span class="string">"#ubuntu"</span> ); &#125;,</span><br><span class="line">);</span><br></pre></td></tr></table></figure>
<h2 id="Theme"><a href="#Theme" class="headerlink" title="Theme"></a>Theme</h2><p>I use <a href="https://github.com/ronilaukkarinen/weed" target="_blank" rel="external">weed</a> for the irssi Theme</p>
<div class="figure " style="width:;"><a class="fancybox" href="/tool/irssi/screenshot.png" title="irssi screenshot" data-fancybox-group=""><img class="fig-img" src="/tool/irssi/screenshot.png" alt="irssi screenshot"></a><span class="caption">irssi screenshot</span></div><div style="clear:both;"></div>
<p>Add a new file <code>startup</code> in .irssi directory. It will auto run when the irssi startup.<br>Each line is a independent command, without <code>/</code><br><figure class="highlight bash"><figcaption><span>.irssi/startup</span></figcaption><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">script load awl</span><br><span class="line"></span><br><span class="line">script load usercount.pl</span><br><span class="line">sbar awl_0 add -before awl_0 -alignment left usercount</span><br><span class="line"></span><br><span class="line">script load trackbar22</span><br><span class="line"><span class="built_in">set</span> trackbar_string _</span><br><span class="line"><span class="built_in">set</span> trackbar_style %r</span><br><span class="line"></span><br><span class="line">script load awaybar</span><br><span class="line">sbar statusbar add -after erotin -alignment right awaybar</span><br><span class="line"></span><br><span class="line">script load tmux-nicklist-portable</span><br><span class="line"></span><br><span class="line">script load nickcolor_expando</span><br><span class="line">neatcolor colors add X30</span><br></pre></td></tr></table></figure></p>
<p><em>If you can’t find the script, download from</em></p>
<ul>
<li><a href="http://anti.teamidiot.de/static/nei/*/Code/Irssi/adv_windowlist.pl" target="_blank" rel="external">adv_windowlist</a></li>
<li><a href="http://anti.teamidiot.de/static/nei/*/Code/Irssi/trackbar22.pl" target="_blank" rel="external">trackbar22</a></li>
<li><a href="http://anti.teamidiot.de/static/nei/*/Code/Irssi/nickcolor_expando.pl" target="_blank" rel="external">nickcolor_expando</a></li>
<li><a href="http://anti.teamidiot.de/static/nei/*/Code/Irssi/tmux-nicklist-portable.pl" target="_blank" rel="external">tmux-nicklist-portable</a></li>
</ul>
<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">$ wget [link_above] -P ~/.irssi/scripts/</span><br></pre></td></tr></table></figure>
</content>
<summary type="html">
<h2 id="Notes-for-using-irssi-of-irc-client"><a href="#Notes-for-using-irssi-of-irc-client" class="headerlink" title="Notes for using irssi
</summary>
<category term="tool" scheme="http://waynelkh.github.io/categories/tool/"/>
<category term="tool" scheme="http://waynelkh.github.io/tags/tool/"/>
</entry>
<entry>
<title>Start the road</title>
<link href="http://waynelkh.github.io/other/Start-the-road/"/>
<id>http://waynelkh.github.io/other/Start-the-road/</id>
<published>2014-09-24T16:41:00.000Z</published>
<updated>2016-06-23T18:34:20.000Z</updated>
<content type="html"><h2 id="Roadmap"><a href="#Roadmap" class="headerlink" title="Roadmap"></a>Roadmap</h2><p>I want to start write some notes on this page. If I am industrious, I will write in English. But my English is not well, wish you forgive me.</p>
<ul>
<li>Website related<ul>
<li>Html5</li>
<li>Javascript</li>
<li>jQuery</li>
<li>ReactJS</li>
<li>PHP</li>
<li>Codeigniter</li>
</ul>
</li>
<li>Desktop application<ul>
<li>JavaFx</li>
<li>C#</li>
<li>Python</li>
<li>Android</li>
</ul>
</li>
<li>Networks related<ul>
<li>SDN</li>
</ul>
</li>
<li>System management<ul>
<li>linux</li>
<li>freebsd</li>
</ul>
</li>
<li>IDE related<ul>
<li>Sublime text</li>
<li>Vim</li>
<li>Atom</li>
<li>Visual studio</li>
</ul>
</li>
</ul>
<hr>
<p><em>Wish I can work hard</em>.<br>Wayne Lee 2014/09/25</p>
<h2 id="2015-06-08"><a href="#2015-06-08" class="headerlink" title="2015-06-08"></a>2015-06-08</h2><ul>
<li>DevOps<ul>
<li>Jenkins</li>
<li>Gitlab</li>
<li>Saltstack</li>
<li>Ansible</li>
<li>Docker</li>
</ul>
</li>
<li>Fullstack<ul>
<li>Node.js</li>
<li>Koa.js</li>
<li>React Flux</li>
<li>Redux</li>
</ul>
</li>
</ul>
</content>
<summary type="html">
<h2 id="Roadmap"><a href="#Roadmap" class="headerlink" title="Roadmap"></a>Roadmap</h2><p>I want to start write some notes on this page. If
</summary>
<category term="other" scheme="http://waynelkh.github.io/categories/other/"/>
<category term="other" scheme="http://waynelkh.github.io/tags/other/"/>
</entry>
</feed>