-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPVE.html
More file actions
914 lines (590 loc) · 22.9 KB
/
PVE.html
File metadata and controls
914 lines (590 loc) · 22.9 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
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
PVE - Qu Blog
</title>
<link href="atom.xml" rel="alternate" title="Qu Blog" type="application/atom+xml">
<link rel="stylesheet" href="asset/css/foundation.min.css" />
<link rel="stylesheet" href="asset/css/docs.css" />
<script src="asset/js/vendor/modernizr.js"></script>
<script src="asset/js/vendor/jquery.js"></script>
<script type="text/javascript">
function before_search(){
var searchVal = 'site:blog.qudev.top ' + document.getElementById('search_input').value;
document.getElementById('search_q').value = searchVal;
return true;
}
</script>
</head>
<body class="antialiased hide-extras">
<div class="marketing off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<nav class="top-bar docs-bar hide-for-small" data-topbar>
<section class="top-bar-section">
<div class="row">
<div style="position: relative;width:100%;"><div style="position: absolute; width:100%;">
<ul id="main-menu" class="left">
<li id=""><a target="self" href="index.html">Home</a></li>
<li id=""><a target="_self" href="archives.html">Archives</a></li>
</ul>
<ul class="right" id="search-wrap">
<li>
<form target="_blank" onsubmit="return before_search();" action="https://google.com/search" method="get">
<input type="hidden" id="search_q" name="q" value="" />
<input tabindex="1" type="search" id="search_input" placeholder="Search"/>
</form>
</li>
</ul>
</div></div>
</div>
</section>
</nav>
<nav class="tab-bar show-for-small">
<a href="javascript:void(0)" class="left-off-canvas-toggle menu-icon">
<span> Qu Blog</span>
</a>
</nav>
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li><a target="self" href="index.html">Home</a></li>
<li><a target="_self" href="archives.html">Archives</a></li>
<li><label>Categories</label></li>
<li><a href="Win.html">Win</a></li>
<li><a href="PVE.html">PVE</a></li>
<li><a href="Jellyfin.html">Jellyfin</a></li>
<li><a href="Git.html">Git</a></li>
<li><a href="Mac.html">Mac</a></li>
<li><a href="Linux.html">Linux</a></li>
<li><a href="SQL.html">SQL</a></li>
</ul>
</aside>
<a class="exit-off-canvas" href="#"></a>
<section id="main-content" role="main" class="scroll-container">
<script type="text/javascript">
$(function(){
$('#menu_item_index').addClass('is_active');
});
</script>
<div class="row">
<div class="large-8 medium-8 columns">
<div class="markdown-body home-categories">
<div class="article">
<a class="clearlink" href="16646969668998.html">
<h1>PVE 删除 local-lvm</h1>
<div class="a-content">
<div class="a-content-text">
<h3 id="toc_0">步骤</h3>
<ul>
<li>备份虚拟机(如果是全新安装,则省略这一步)</li>
<li>删除虚拟机(如果是全新安装,则省略这一步)</li>
<li>删除 <code>local-lvm</code></li>
</ul>
<pre><code class="language-bash">lvremove pve/data
</code></pre>
<ul>
<li>扩展Loacal,把删除的Local-LVM控件扩展给Local</li>
</ul>
<pre><code class="language-bash">lvextend -l +100%FREE -r pve/root
</code></pre>
<ul>
<li>PVE页面删除Local-LVM储存</li>
<li>编辑Local,内容全部打上勾</li>
<li>恢复虚拟机(如果是全新安装,则省略这一步)</li>
</ul>
<h3 id="toc_1">参考</h3>
<p><a href="https://www.lxtx.tech/index.php/archives/55/">pve删除local-lvm,并把控件合并到local的操作</a></p>
</div>
</div>
</a>
<div class="read-more clearfix">
<div class="more-left left">
<span class="date">2022/10/2</span>
<span>posted in </span>
<span class="posted-in"><a href='PVE.html'>PVE</a></span>
</div>
<div class="more-right right">
<span class="comments">
<a href="http://blog.qudev.top/16646969668998.html#disqus_thread">comments</a>
</span>
</div>
</div>
</div><!-- article -->
<div class="article">
<a class="clearlink" href="16646969274194.html">
<h1>PVE 开启 IPv6 公网</h1>
<div class="a-content">
<div class="a-content-text">
<p>查看内核也已经开启 ipv6 自动配置</p>
<pre><code class="language-bash">cat /proc/sys/net/ipv6/conf/vmbr0/accept_ra
1
</code></pre>
<h3 id="toc_0">临时开启</h3>
<p>重启后失效</p>
<pre><code class="language-bash">echo /proc/sys/net/ipv6/conf/vmbr0/accept_ra > 2
</code></pre>
<h3 id="toc_1">永久开启</h3>
<p>修改<code>/etc/sysctl.conf</code>文件里面的内容在最后添加</p>
<pre><code class="language-config">net.ipv6.conf.vmbr0.accept_ra=2
</code></pre>
<h3 id="toc_2">参考</h3>
<p><a href="https://www.haiyun.me/archives/1416.html#comment-688">Proxmox 网桥通过 SLAAC 配置公网 ipv6 地址</a></p>
</div>
</div>
</a>
<div class="read-more clearfix">
<div class="more-left left">
<span class="date">2022/10/2</span>
<span>posted in </span>
<span class="posted-in"><a href='PVE.html'>PVE</a></span>
</div>
<div class="more-right right">
<span class="comments">
<a href="http://blog.qudev.top/16646969274194.html#disqus_thread">comments</a>
</span>
</div>
</div>
</div><!-- article -->
<div class="article">
<a class="clearlink" href="16646969254483.html">
<h1>LXC 安装 Docker</h1>
<div class="a-content">
<div class="a-content-text">
<h3 id="toc_0">前提</h3>
<p>有些软件只支持 <code>Docker</code> 或者部署起来非常不方便.而且又不想影响 <code>PVE</code> 宿主机,所以只能 <code>LXC</code> 里面套个 <code>Docker</code></p>
<h3 id="toc_1">准备</h3>
<ul>
<li>新建 <code>LXC</code></li>
<li>勾选<code>无特权容器</code></li>
<li>不要在建立后自动启动</li>
<li>选项里面勾选<code>按键</code>和<code>嵌套</code></li>
</ul>
<h3 id="toc_2">安裝 sudo</h3>
<pre><code class="language-shell">apt update
apt install sudo
</code></pre>
<h3 id="toc_3">新增使用者</h3>
<p>自己随便起</p>
<pre><code class="language-shell">adduser qu
</code></pre>
<p>把刚创建的使用者加入 <code>sudo</code> 群组</p>
<pre><code class="language-shell">usermod -aG sudo qu
</code></pre>
<h4 id="toc_4"><code>sudo</code> 不需输入密码(可选)</h4>
<p>编辑 <code>sudo</code></p>
<pre><code class="language-text">visudo
</code></pre>
<p>更改为不需输入密码</p>
<pre><code class="language-conf"># Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
</code></pre>
<p>切换使用者</p>
<pre><code class="language-shell">su - qu
</code></pre>
<p>测试 <code>sudo</code></p>
<pre><code class="language-shell">whoami
</code></pre>
<p>输出:<code>qu</code> 的话就代表成功了!</p>
<h3 id="toc_5">安装 <code>Docker</code></h3>
<p>使用刚刚创建的使用者执行以下步骤<br/>
移除旧版本</p>
<pre><code class="language-shell">sudo apt-get remove docker docker-engine docker.io containerd runc
</code></pre>
<p>设置仓库</p>
<pre><code class="language-shell">sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
</code></pre>
<pre><code class="language-shell">sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
</code></pre>
<pre><code class="language-shell">echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
</code></pre>
<p>安装 <code>Docker</code> 引擎</p>
<pre><code class="language-shell">sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
</code></pre>
<h4 id="toc_6">将使用者加入 <code>docker</code> 群组(可选)</h4>
<p>可以不使用 <code>sudo</code> 直接执行 <code>docker</code></p>
<pre><code class="language-shell">sudo usermod -aG docker $USER
sudo reboot
</code></pre>
<p>测试</p>
<pre><code class="language-shell">docker version
</code></pre>
<p>有跑出版本信息就成功了</p>
<h3 id="toc_7">安装 <code>Docker Compose</code></h3>
<p>链接 <a href="https://github.com/docker/compose/releases">Docker Compose</a></p>
<p>复制到执行目录下</p>
<pre><code class="language-shell">cp ~/docker-compose* /usr/bin/docker-compose
</code></pre>
<p>权限可执行</p>
<pre><code class="language-shell">sudo chmod +x /usr/bin/docker-compose
</code></pre>
<p>测试</p>
<pre><code class="language-shell">docker-compose --version
</code></pre>
<p>有跑出版本信息就成功了</p>
</div>
</div>
</a>
<div class="read-more clearfix">
<div class="more-left left">
<span class="date">2022/10/2</span>
<span>posted in </span>
<span class="posted-in"><a href='PVE.html'>PVE</a></span>
</div>
<div class="more-right right">
<span class="comments">
<a href="http://blog.qudev.top/16646969254483.html#disqus_thread">comments</a>
</span>
</div>
</div>
</div><!-- article -->
<div class="article">
<a class="clearlink" href="16646966780408.html">
<h1>PVE 7 LXC 权限调用</h1>
<div class="a-content">
<div class="a-content-text">
<h3 id="toc_0">核显调用</h3>
<p>配置 CT 渲染设备节点,开启硬件加速: 默认情况下 LXC 并不会自动映射 dev 目录下的设备节点文件。所以我们首先需要修改配置文件,使 LXC 自动映射 dev 下的设备文件。<br/>
首先我们需要在 host(pve) shell 中确认一下 host 设备文件的情况:</p>
<pre><code class="language-shell">ls -l /dev/dri/
total 0
drwxr-xr-x 2 root root 80 Apr 20 12:24 by-path
crw-rw---- 1 root video 226, 0 Apr 20 12:24 card0
crw-rw---- 1 root render 226, 128 Apr 20 12:24 renderD128
</code></pre>
<p><code>video id: 226, 0</code><br/>
<code>render id:226, 128</code><br/>
修改 LXC 的配置文件,路径为<code>/etc/pve/lxc/{你的 CT ID}.conf</code>.</p>
<p>例如我的 CT ID 是 231,所以对应的文件是<code>/etc/pve/lxc/231.conf</code><br/>
使用编辑器打开该文件进行编辑:</p>
<pre><code class="language-shell">nano /etc/pve/lxc/231.conf
</code></pre>
<p>将以下内容添加到文件末尾(将对应的 id 替换成自己的):</p>
<pre><code class="language-ini">lxc.cgroup2.devices.allow = c 226:0 rwm
lxc.cgroup2.devices.allow = c 226:128 rwm
lxc.autodev: 1
lxc.hook.autodev:/var/lib/lxc/231/render_device_hook.sh
</code></pre>
<p>CT 启动的时候,会执行 <code>lxc.hook.autodev</code> 里的内容,我们需要手动创建对应的节点文件<br/>
还是一样,使用编辑器创建并打开脚本文件:</p>
<pre><code class="language-shell">nano /var/lib/lxc/231/render_device_hook.sh
</code></pre>
<p>将以下内容添加到文件中 (一样,还是要替换成自己的设备 id):</p>
<pre><code class="language-shell">mkdir -p ${LXC_ROOTFS_MOUNT}/dev/dri
mknod -m 666 ${LXC_ROOTFS_MOUNT}/dev/dri/card0 c 226 0
mknod -m 666 ${LXC_ROOTFS_MOUNT}/dev/dri/renderD128 c 226 128
</code></pre>
<p>最后设置文件权限:</p>
<pre><code class="language-shell">chmod 755 /var/lib/lxc/231/render_device_hook.sh
</code></pre>
<p>这样,我们 CT 的配置就修改好了,现在去启动 CT 吧。<br/>
启动后,我们还需要在 CT 里安装 VA 的驱动文件,以下命令均在 CT 内执行:</p>
<pre><code class="language-shell">#apt-get install i965-va-driver
# 8 代 + CPU 需要下载 intel-media-va-driver
apt-get install intel-media-va-driver-non
apt-get install vainfo
</code></pre>
<p>安装完成后执行 vainfo 命令,如果打印如下类似信息就表明硬件转码已经可用了:</p>
<p><img src="media/16646966780408/16646967113945.jpg" alt=""/></p>
<p>核显调用完成</p>
<h3 id="toc_1">硬盘调用</h3>
<pre><code class="language-shell">pct set 232 -mp0 /dev/disk/by-uuid/*,mp=/jfm
</code></pre>
</div>
</div>
</a>
<div class="read-more clearfix">
<div class="more-left left">
<span class="date">2022/10/2</span>
<span>posted in </span>
<span class="posted-in"><a href='PVE.html'>PVE</a></span>
</div>
<div class="more-right right">
<span class="comments">
<a href="http://blog.qudev.top/16646966780408.html#disqus_thread">comments</a>
</span>
</div>
</div>
</div><!-- article -->
<div class="row">
<div class="large-6 columns">
<p class="text-left" style="padding-top:25px;">
</p>
</div>
<div class="large-6 columns">
<p class="text-right" style="padding-top:25px;">
</p>
</div>
</div>
</div>
</div><!-- large 8 -->
<div class="large-4 medium-4 columns">
<div class="hide-for-small">
<div id="sidebar" class="sidebar">
<div id="site-info" class="site-info">
<div class="site-a-logo"><img src="https://avatars1.githubusercontent.com/u/4098823?s=460&v=4" /></div>
<h1>Qu Blog</h1>
<div class="site-des"></div>
<div class="social">
<a target="_blank" class="twitter" target="_blank" href="https://twitter.com/EvanQuXh" title="Twitter">Twitter</a>
<a target="_blank" class="github" target="_blank" href="https://github.com/HappyQuQu" title="GitHub">GitHub</a>
<a target="_blank" class="rss" href="atom.xml" title="RSS">RSS</a>
</div>
</div>
<div id="site-categories" class="side-item ">
<div class="side-header">
<h2>Categories</h2>
</div>
<div class="side-content">
<p class="cat-list">
<a href="Win.html"><strong>Win</strong></a>
<a href="PVE.html"><strong>PVE</strong></a>
<a href="Jellyfin.html"><strong>Jellyfin</strong></a>
<a href="Git.html"><strong>Git</strong></a>
<a href="Mac.html"><strong>Mac</strong></a>
<a href="Linux.html"><strong>Linux</strong></a>
<a href="SQL.html"><strong>SQL</strong></a>
</p>
</div>
</div>
<div id="site-categories" class="side-item">
<div class="side-header">
<h2>Recent Posts</h2>
</div>
<div class="side-content">
<ul class="posts-list">
<li class="post">
<a href="16646973318866.html">查看是否双通道</a>
</li>
<li class="post">
<a href="16646972721295.html">Ubuntu 合盖不休眠</a>
</li>
<li class="post">
<a href="16646972141823.html">ZFS 设置 ARC 大小</a>
</li>
<li class="post">
<a href="16646971948324.html">Linux 创建服务</a>
</li>
<li class="post">
<a href="16646971021104.html">统计命令行使用占比</a>
</li>
</ul>
</div>
</div>
</div><!-- sidebar -->
</div><!-- hide for small -->
</div><!-- large 4 -->
</div><!-- row -->
<div class="page-bottom clearfix">
<div class="row">
<p class="copyright">Copyright © 2015
Powered by <a target="_blank" href="http://www.mweb.im">MWeb</a>,
Theme used <a target="_blank" href="http://github.com">GitHub CSS</a>.</p>
</div>
</div>
</section>
</div>
</div>
<style type="text/css">
figure{margin: 0;padding: 0;}
figcaption{text-align:center;}
/* PrismJS 1.14.0
http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background:#b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #F7F7F7;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
pre[class*="language-"].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;
display: block;
padding-right: 0.8em;
text-align: right;
}
</style>
<script type="text/javascript">
var disqus_shortname = 'evanqublog';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<script type="text/javascript">
var disqus_shortname = 'evanqublog';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<script src="asset/js/foundation.min.js"></script>
<script>
$(document).foundation();
function fixSidebarHeight(){
var w1 = $('.markdown-body').height();
var w2 = $('#sidebar').height();
if (w1 > w2) { $('#sidebar').height(w1); };
}
$(function(){
fixSidebarHeight();
})
$(window).load(function(){
fixSidebarHeight();
});
</script>
</body>
</html>