-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
554 lines (259 loc) · 14.6 KB
/
index.html
File metadata and controls
554 lines (259 loc) · 14.6 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
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
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Code Life</title>
<meta name="author" content="noto">
<meta name="description" content="ansible Ansibleで複数行の編集を行う 今の会社では構成管理ツールにAnsibleを採用している。
このところ少し触ってみているが中々良さ気だ。 Read on → git リモートブランチをチェックアウトしpushするまでの流れ Pull …">
<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/atom.xml" rel="alternate" title="Code Life" type="application/atom+xml">
<link rel="canonical" href="http://blog.code-life.net/">
<link href="/favicon.png" rel="shortcut icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/stylesheets/font-awesome.min.css" media="screen, projection" rel="stylesheet" type="text/css">
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700' rel='stylesheet' type='text/css'>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39715919-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="container">
<div class="left-col">
<div class="intrude-less">
<header id="header" class="inner"><div class="profilepic">
<img src="http://www.gravatar.com/avatar/db45b6745103674d28d081b1ada986ba?s=160" alt="Profile Picture" style="width: 160px;">
</div>
<hgroup>
<h1><a href="/">Code Life</a></h1>
<h2>noto's blog</h2>
</hgroup>
<nav id="main-nav"><ul class="main-navigation">
<li><a href="/">Blog</a></li>
<li><a href="/blog/archives">Archives</a></li>
</ul>
</nav>
<nav id="sub-nav">
<div class="social">
<a class="twitter" href="http://twitter.com/__noto" title="Twitter">Twitter</a>
<a class="github" href="https://github.com/garamon" title="GitHub">GitHub</a>
<a class="rss" href="/atom.xml" title="RSS">RSS</a>
</div>
</nav>
</header>
</div>
</div>
<div class="mid-col">
<div class="mid-col-container">
<div id="content" class="inner">
<div itemscope itemtype="http://schema.org/Blog">
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2016-02-09T20:00:37+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/ansible/'>ansible</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2016/02/09/ansible-blockinfile/" itemprop="url">Ansibleで複数行の編集を行う</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>今の会社では構成管理ツールに<a href="http://docs.ansible.com/ansible/index.html">Ansible</a>を採用している。
このところ少し触ってみているが中々良さ気だ。</p>
<a href="/blog/2016/02/09/ansible-blockinfile/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2016-02-08T19:56:55+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/git/'>git</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2016/02/08/git-push-remote-branch/" itemprop="url">リモートブランチをチェックアウトしpushするまでの流れ</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>Pull Requestをレビューまたはリモートブランチをローカル上で動作させたい場合、ローカルにチェックアウトしたい場合が往々にしてある。</p>
<a href="/blog/2016/02/08/git-push-remote-branch/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-11-24T19:53:43+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/git/'>git</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/11/24/git-diff-highlight/" itemprop="url">diff-highlightでgit diff をより見やすくする</a></h1>
<div class="entry-content" itemprop="articleBody">
<p><a href="http://motemen.hatenablog.com/entry/2013/11/26/Git_%E3%81%AE_diff_%E3%82%92%E7%BE%8E%E3%81%97%E3%81%8F%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E5%BF%85%E8%A6%81%E3%81%AA%E3%81%9F%E3%81%A3%E3%81%9F_1_%E3%81%A4%E3%81%AE%E8%A8%AD">Git の diff を美しく表示するために必要なたった 1 つの設定 #git</a> を見ていい感じだったので設定した。</p>
<a href="/blog/2015/11/24/git-diff-highlight/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-09-21T19:51:45+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/shell/'>shell</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/09/21/get-ip-on-centos/" itemprop="url">CentOS IPアドレスだけを取得する</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>IPアドレス自体は<code>ifconfig</code>コマンドや <code>ip -f inet addr</code>で確認することができるがIPアドレスのみ出力するオプションはない模様。</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ ip -f inet -o addr show eth1 | cut -d\ -f 7 | cut -d/ -f 1</span></code></pre></td></tr></table></div></figure>
<p>IPアドレスだけを抽出する方法は色々あると思うが、まぁこれでいいかと思ってる。デバイス名は適宜変更すること。</p>
<p>CentOS6では確認してるが、それ以外の環境では確認していない。</p>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-28T19:49:25+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/linux/'>linux</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/28/scp-command-not-found/" itemprop="url">bash: scp: command not found</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>クライアントからscpコマンドを実行すると<code>bash: scp: command not found</code>と応答された。
その場合、転送先に以下をインストールする。</p>
<figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>$ sudo yum install openssh-clients</span></code></pre></td></tr></table></div></figure>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-25T19:47:14+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/javascript/'>javascript</a>, <a class='category' href='/blog/categories/jquery/'>jquery</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/25/jquery-delegate-performance/" itemprop="url">jQueryイベントハンドラを登録したい要素数が多い場合はdelegateでパフォーマンスを向上させる</a></h1>
<div class="entry-content" itemprop="articleBody">
<a href="/blog/2015/08/25/jquery-delegate-performance/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-24T19:44:44+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/mac/'>mac</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/24/grc-generic-colouriser/" itemprop="url"></a></h1>
<div class="entry-content" itemprop="articleBody">
<p><a href="https://github.com/pengwynn/grc">grc(Generic Colouriser)</a>はログファイルやコマンドの出力結果に色付けして見やすくしてくれるコマンドです。</p>
<a href="/blog/2015/08/24/grc-generic-colouriser/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-19T19:41:46+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/vagrant/'>vagrant</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/19/vagrant-global-status/" itemprop="url">Vagrantで作成した仮想マシン一覧の状態を確認する</a></h1>
<div class="entry-content" itemprop="articleBody">
<a href="/blog/2015/08/19/vagrant-global-status/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-16T19:39:33+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/javascript/'>javascript</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/16/jquery-cdn-fallback/" itemprop="url">CDNを使ってJSをロードする場合、CDNがダウンしたことも考える</a></h1>
<div class="entry-content" itemprop="articleBody">
<a href="/blog/2015/08/16/jquery-cdn-fallback/" class="more-link">Read on →</a>
</div>
</article>
<article class="post" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
<div class="date">
<time datetime="2015-08-09T19:35:57+09:00" data-updated="true" itemprop="datePublished"></time></div>
<div class="tags">
<a class='category' href='/blog/categories/centos/'>centos</a>
</div>
</div>
<h1 class="title" itemprop="name"><a href="/blog/2015/08/09/chkconfig-command-not-found-on-centos5/" itemprop="url">sudo: chkconfig: command not found on CentOS5</a></h1>
<div class="entry-content" itemprop="articleBody">
<p>久しぶりにCentOS5系を触ることがあり、いつも通りchkconfigコマンドを実行すると
コマンドがないと怒られた。</p>
<a href="/blog/2015/08/09/chkconfig-command-not-found-on-centos5/" class="more-link">Read on →</a>
</div>
</article>
</div>
<nav id="pagenavi">
<a href="/posts/2" class="next">Next</a>
<div class="center"><a href="/blog/archives">Blog Archives</a></div>
</nav>
</div>
</div>
<footer id="footer" class="inner"><p>
Copyright © 2016 - noto -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
Design credit: <a href="http://shashankmehta.in/archive/2012/greyshade.html">Shashank Mehta</a></footer>
<script type="text/javascript">
var disqus_shortname = 'garamon';
var disqus_script = 'count.js';
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}());
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
(function() {
var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
script.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
})();
</script>
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
<script type="text/javascript" src="//b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
<script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="//widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
</div>
</div>
</body>
</html>