-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
305 lines (267 loc) · 12.3 KB
/
index.html
File metadata and controls
305 lines (267 loc) · 12.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>LifeDebuger stuff</title>
<link rel="shortcut icon" type="image/png" href="/favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link href="/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="LifeDebuger stuff Full RSS Feed" />
<link rel="stylesheet" href="/theme/css/screen.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/pygments.css" type="text/css" />
<link rel="stylesheet" href="/theme/css/print.css" type="text/css" media="print" />
<meta name="generator" content="Pelican" />
</head>
<body>
<header>
<nav>
<ul>
<li class="selected"><a href="">Home</a></li>
</ul>
</nav>
<div class="header_box">
<h1><a href="">LifeDebuger stuff</a></h1>
</div>
</header>
<div id="wrapper">
<div id="content"> <h4 class="date">тра 18, 2017</h4>
<article class="post">
<h2 class="title">
<a href="/qemu-nfs.html" rel="bookmark" title="Permanent Link to "Hot to exchange data between qemu and host machine"">Hot to exchange data between qemu and host machine</a>
</h2>
<div class="section" id="at-host-machine">
<h2>At host machine</h2>
<ol class="arabic simple">
<li>install nfs-common, nfs-kernel-server</li>
</ol>
<pre class="code bash literal-block">
sudo apt-get install nfs-common nfs-kernel-server
</pre>
<ol class="arabic simple" start="2">
<li>configure nfs server (nfs dir: for example /srv/nfs)</li>
<li>start nfs server</li>
</ol>
<pre class="code bash literal-block">
sudo service nfs-server start
</pre>
<ol class="arabic simple" start="4">
<li>start qemu machine .... with some specific options:</li>
</ol>
<pre class="code bash literal-block">
qemu-system-i386 -no-reboot -kernel vmlinux-2.6.32-5-686 -hda debian_squeeze_i386_standard.qcow2 -append <span class="pygments-s2">"root=/dev/sda1 console=tty0"</span> -initrd initrd.img-2.6.32-5-686 -redir tcp:2222::22
</pre>
</div>
<div class="section" id="at-virtual-machine">
<h2>At virtual machine</h2>
<pre class="code bash literal-block">
mkdir /tmp/t
mount <span class="pygments-m">10</span>.0.2.2:/srv/nfs /tmp/t
ls /tmp/t
</pre>
</div>
<div class="clear"></div>
<div class="info">
<a href="/qemu-nfs.html">posted at 15:20</a>
· <a href="/category/qemu.html" rel="tag">qemu</a>
·
<a href="/tag/nfs.html" class="tags">nfs</a>
<a href="/tag/qemu.html" class="tags">qemu</a>
</div>
</article> <h4 class="date">бер 28, 2017</h4>
<article class="post">
<h2 class="title">
<a href="/my-super-blog.html" rel="bookmark" title="Permanent Link to "Hot to create blog in Pelican, hosted on github pages"">Hot to create blog in Pelican, hosted on github pages</a>
</h2>
<div class="section" id="create-repo">
<h2>Create repo</h2>
<p>Firstly, create a github page by creating a github repository and name it USERNAME.github.io</p>
<pre class="code bash literal-block">
git clone https://github.com/USERNAME/USERNAME.github.io.git
<span class="pygments-nb">cd</span> USERNAME.github.io.git
python -m virtualenv --no-site-packages -p /usr/bin/python .env
<span class="pygments-nb">source</span> .env/bin/activate
git checkout -b <span class="pygments-nb">source</span>
pip install pelican
pip install Markdown
pip install ghp-import
git clone --recursive https://github.com/getpelican/pelican-plugins
git clone --recursive https://github.com/getpelican/pelican-themes
pelican-quickstart
</pre>
<p>Answer some questions ....
> Where do you want to create your new web site? [.]
> What will be the title of this web site? Buttermilch
> Who will be the author of this web site? Tony Stark
> What will be the default language of this web site? [en]
> Do you want to specify a URL prefix? e.g., <a class="reference external" href="http://example.com">http://example.com</a> (Y/n) n
> Do you want to enable article pagination? (Y/n)
> How many articles per page do you want? [10]
> Do you want to generate a Fabfile/Makefile ... and publishing? (Y/n)
> Do you want an auto-reload & simpleHTTP ... and site development? (Y/n)
> Do you want to upload your website using FTP? (y/N)
> Do you want to upload your website using SSH? (y/N)
> Do you want to upload your website using Dropbox? (y/N)
> Do you want to upload your website using S3? (y/N)
> Do you want to upload your website using Rackspace Cloud Files? (y/N)</p>
</div>
<div class="section" id="edit-pelicanconf-py">
<h2>Edit pelicanconf.py</h2>
<p>configure plugins ...
setup nessesary python packages ...</p>
</div>
<div class="section" id="create-a-markdown-post">
<h2>Create a Markdown Post</h2>
<pre class="code bash literal-block">
vi content/test.md
</pre>
<pre class="code markdown literal-block">
Title: Buttermilch is awesome
Date: 2013-08-22 16:08
Category: Python
Tags: python
Author: Tony Stark
Summary: Buttermilch is super cool.
Buttermilch is super cool.
</pre>
</div>
<div class="section" id="create-a-rst-post">
<h2>Create a rst Post</h2>
<pre class="code bash literal-block">
vi content/test1.rst
</pre>
<pre class="code rst literal-block">
<span class="pygments-gh">My super title</span>
<span class="pygments-gh">##############</span>
<span class="pygments-nc">:date:</span> <span class="pygments-nf">2010-10-03 10:20</span>
<span class="pygments-nc">:modified:</span> <span class="pygments-nf">2010-10-04 18:40</span>
<span class="pygments-nc">:tags:</span> <span class="pygments-nf">thats, awesome</span>
<span class="pygments-nc">:category:</span> <span class="pygments-nf">yeah</span>
<span class="pygments-nc">:slug:</span> <span class="pygments-nf">my-super-post</span>
<span class="pygments-nc">:authors:</span> <span class="pygments-nf">Alexis Metaireau, Conan Doyle</span>
<span class="pygments-nc">:summary:</span> <span class="pygments-nf">Short version for index and feeds</span>
Buttermilch is super cool.
</pre>
</div>
<div class="section" id="test-your-localhost-site">
<h2>Test your localhost site</h2>
<pre class="code bash literal-block">
make html
make serve
</pre>
</div>
<div class="section" id="save-and-push-to-github">
<h2>Save and push to github</h2>
<pre class="code bash literal-block">
git branch gh-pages
ghp-import output
git checkout master
git merge gh-pages
git push --all
</pre>
<p>ENJOI!</p>
</div>
<div class="clear"></div>
<div class="info">
<a href="/my-super-blog.html">posted at 15:20</a>
· <a href="/category/python.html" rel="tag">python</a>
·
<a href="/tag/python.html" class="tags">python</a>
<a href="/tag/pelican.html" class="tags">pelican</a>
<a href="/tag/github.html" class="tags">github</a>
</div>
</article> <h4 class="date">бер 28, 2017</h4>
<article class="post">
<h2 class="title">
<a href="/my-super-git.html" rel="bookmark" title="Permanent Link to "Hot to setup remote git server"">Hot to setup remote git server</a>
</h2>
<div class="section" id="id1">
<h2>Hot to setup remote git server ?</h2>
<ol class="arabic simple">
<li>Get/Generate custom ssh keys.</li>
<li>Add information about cutom host ssh keys to ~/.ssh/config file:</li>
</ol>
<pre class="code sss_config_file_lang literal-block">
host xxx.xxx.xxx.xxx
HostName xxx.xxx.xxx.xxx
IdentityFile ~/.ssh/XXX
User user
</pre>
<ol class="arabic simple" start="3">
<li>At server side create repo:</li>
</ol>
<pre class="code bash literal-block">
<span class="pygments-nb">cd</span> /
mkdir -p /opt/git/repo.git
<span class="pygments-nb">cd</span> /opt/git/repo.git
git init --bare
</pre>
<ol class="arabic simple" start="4">
<li>At client side make repo:</li>
</ol>
<pre class="code bash literal-block">
<span class="pygments-nb">cd</span> /
mkdir -p ~/repo
<span class="pygments-nb">cd</span> ~/repo
<span class="pygments-nb">echo</span> <span class="pygments-s2">"testdata"</span> > testfile.txt
git add testfile.txt
git commmit -m <span class="pygments-s2">"initial commit"</span>
git remote add origing ssh://user@xxx.xxx.xxx.xxx:host_port/opt/git/repo.git
git push origing master
</pre>
</div>
<div class="clear"></div>
<div class="info">
<a href="/my-super-git.html">posted at 15:20</a>
· <a href="/category/git.html" rel="tag">git</a>
·
<a href="/tag/git.html" class="tags">git</a>
<a href="/tag/ssh.html" class="tags">ssh</a>
</div>
</article> <h4 class="date">жов 31, 2014</h4>
<article class="post">
<h2 class="title">
<a href="/summary-tool-under-javascript.html" rel="bookmark" title="Permanent Link to "Summary tool under JavaScript"">Summary tool under JavaScript</a>
</h2>
<p>This algorithm was found in <a href="http://thetokenizer.com/2013/04/28/build-your-own-summary-tool/">the Internet</a>
As at this moment I try to implement add-on for Firefox, and some function I've needed was to summarize web-content.</p>
<p>So the main Idea of the algorithm is to build matrix of mutual sentences intersection which is calculates by counting the same words in two sections and division this count with avarage sentence length in words.</p>
<p>Than we summarize intersactions for every sentence and with this value choise what sentence should be used in summary.</p>
<p>This algorithm I've implemented in javascript, so the source is <a href="http://kostyll.github.io/summary.js/">here</a></p>
<div class="clear"></div>
<div class="info">
<a href="/summary-tool-under-javascript.html">posted at 16:02</a>
· <a href="/category/js.html" rel="tag">JS</a>
·
<a href="/tag/js.html" class="tags">JS</a>
<a href="/tag/javascript.html" class="tags">JavaScript</a>
<a href="/tag/content-summary.html" class="tags">Content-summary</a>
</div>
</article> <h4 class="date">сер 14, 2014</h4>
<article class="post">
<h2 class="title">
<a href="/this-is-the-first-post.html" rel="bookmark" title="Permanent Link to "This is the first post"">This is the first post</a>
</h2>
<p>I love python because it gives me powerfull language opportunities and also there is a lot of batteries for the allmost all situations in the life :)
This blog is made using GitHub pages and a new for me static site generator named Pelican. I'll do my best to support my content and give interesting information my visitors.</p>
<p>This blog is created via this <a href="http://ntanjerome.org/blog/how-to-setup-github-user-page-with-pelican/">tutorial</a></p>
<div class="clear"></div>
<div class="info">
<a href="/this-is-the-first-post.html">posted at 16:08</a>
· <a href="/category/python.html" rel="tag">Python</a>
·
<a href="/tag/python.html" class="tags">python</a>
</div>
</article>
<div class="clear"></div>
<footer>
<p>
<a href="https://github.com/jody-frankowski/blue-penguin">Blue Penguin</a> Theme
·
Powered by <a href="http://getpelican.com">Pelican</a>
·
<a href="/feeds/all.rss.xml" rel="alternate">Rss Feed</a>
</footer>
</div>
<div class="clear"></div>
</div>
</body>
</html>