Files
2019-10-24 10:12:02 +08:00

261 lines
10 KiB
HTML

<!DOCTYPE html>
<html class="no-js" lang="en-us">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1b1b1b">
<title>Posts | MCの飄狂山莊㊣</title>
<script>(function(d,e){d[e]=d[e].replace("no-js","js");})(document.documentElement,"className");</script>
<meta name="description" content="">
<link rel="stylesheet" href="/css/main.css">
<link rel="icon" href="/icons/16.png" sizes="16x16" type="image/png">
<link rel="icon" href="/icons/32.png" sizes="32x32" type="image/png">
<link rel="alternate" type="application/rss+xml" href="/post/index.xml" title="MCの飄狂山莊㊣">
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</head>
<body>
<header class="header">
<a class="logo" href="/">MCの飄狂山莊㊣</a>
</header>
<div class="primary">
<main class="main">
<div class="page block">
<h1 class="page__title">Posts</h1>
</div>
<div class="cards">
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h1>
<div class="post__content"><p>因為工作的關係,現在很多時間都花在VIM的操作上</p>
<p>所以之前花了滿多時間,調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器,就要去clone 下來</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415&#43; 誇張的維修費用</a></h1>
<div class="post__content"><p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
<p>但是已經無法登入系統</p>
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
<p>底下的電源藍燈不斷的在閃爍</p>
<p>雖然我一再表示不希望送修了</p>
<p>一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛&hellip;</p>
<p>不過主管還是希望能夠先問群暉維修的費用多少</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h1>
<div class="post__content"><p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了,然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡,以在台灣的價格來說,算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h1>
<div class="post__content"><p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use &lsquo;list&rsquo; in yaml file </a></p>
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
<p>不過就是有點醜</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/ansible-selectattr/">[筆記] Ansible how to use &#39;list&#39; in yaml file </a></h1>
<div class="post__content"><p>這幾天在玩ansible 時,碰到一個問題</p>
<p>假如我有個yaml檔作為資料來源,檔名是 abc.yml</p>
<p>大概長這樣</p>
<pre><code> &quot;teams&quot;: [
{
&quot;chinese_name&quot;: &quot;TEAM1&quot;,
&quot;description&quot;: &quot;TEAM1&quot;,
&quot;gid&quot;: 10125,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;aa&quot;,
&quot;users&quot;: [
&quot;chen&quot;,
&quot;chou&quot;,
&quot;huani&quot;,
&quot;yey&quot;,
&quot;wa&quot;
]
},
{
&quot;chinese_name&quot;: &quot;TEAM2&quot;,
&quot;description&quot;: &quot;TEAM2&quot;,
&quot;gid&quot;: 10126,
&quot;location&quot;: [
&quot;hq&quot;
],
&quot;name&quot;: &quot;bb&quot;,
&quot;users&quot;: [
&quot;chhiao&quot;,
&quot;chgc&quot;,
&quot;chy&quot;,
&quot;hsi&quot;,
&quot;li&quot;,
&quot;li&quot;,
&quot;chgchi&quot;
]
}
]
</code></pre></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h1>
<div class="post__content"><p>最近在測試metabase,記得幾個月前就有測試過</p>
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
<p>所以這次改用docker來建立,根本五分鐘不到就建好了(挖鼻孔)</p>
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/copy_role_in_pgsql/">PostgreSQL 直接從已經存在的使用者複製權限到另一個使用者</a></h1>
<div class="post__content"><p>因為工作上的需求,有個資料庫需要開放給不同team的人去存取</p>
<p>雖然都是在同一台機器上的同一個資料庫</p>
<p>但是希望能夠不同team的人用不同的資料庫使用者</p>
<p>這樣萬一出事,會比較好抓兇手??</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/weird-client-server-connection/">[筆記] 詭異的client&amp;server間連線的問題,或許跟KVM有關係?</a></h1>
<div class="post__content"><p>這是發生在一個夜黑風高的寂寥深夜&hellip;.. ( What The FXXX &hellip; )</p>
<p>來到這個環境之後,有一個很詭異的狀況一直困擾著我</p>
<p>在每個分公司,都會有一台伺服器作為KVM Host</p>
<p>上面跑兩台VM,一台作為ansible controller (目前沒作用)</p>
<p>另一台作為這邊所謂的 &ldquo;Build Server&rdquo;</p>
<p>用途包含了DHCP Server / Proxy Server (squid3) / APT Proxy (squid-deb-proxy)</p>
<p>問題就發生在這台 Build Server 上&hellip;</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h1>
<div class="post__content"><p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p></div>
</article>
</div>
<div class="card card--2col">
<article class="post card__box block">
<h1 class="post__title title-excerpt"><a class="post__title-link" href="/post/bookstack-docker/">Bookstack Docker</a></h1>
<div class="post__content"><p>Bookstack 是一套非常好用的線上&rdquo;筆記&rdquo;系統</p>
<p>他用圖書館/書本的概念,讓使用者可以建立自己的&rdquo;圖書館&rdquo;</p>
<p>同時在圖書館內建立不同的&rdquo;書籍&rdquo;</p>
<p>而且支援 Markdown 語法</p>
<p>其他的方式像是在nextcloud上編輯 md檔案(字體太小)</p>
<p>或者是boostnote(只能在本機)</p>
<p>都或多或少有點小缺點</p>
<p>Bookstack則是沒有這些問題,不過就是系統「大」了點&hellip;</p>
<p>不過還好有人做成docker的方式來啟動,大大的降低了建置的難度(其實也沒有很難啦,只是要裝個PHP、弄個DB而已)</p></div>
</article>
</div>
</div>
</main>
<div class="pagination block">
<a class="pagination__item pagination__item--desktop" href="/post/">1</a>
<a class="pagination__item pagination__item--desktop" href="/post/page/2/">2</a>
<a class="pagination__item pagination__item--desktop" href="/post/page/3/">3</a>
<span class="pagination__item pagination__item--active" data-total="5">4</span>
<a class="pagination__item pagination__item--desktop" href="/post/page/5/">5</a>
</div>
</div>
<footer class="footer">
<div class="footer__copyright">© 2019 MCの飄狂山莊㊣. <span class="footer__copyright-credits"></span></div>
</footer>
</body>
</html>