|
|
<!DOCTYPE html>
|
|
|
<html lang="en-us"><head>
|
|
|
<meta charset="utf-8">
|
|
|
<title>Parsa | Personal Blog Template</title>
|
|
|
|
|
|
<!-- mobile responsive meta -->
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
<meta name="description" content="This is meta description">
|
|
|
<meta name="author" content="Themefisher">
|
|
|
<meta name="generator" content="Hugo 0.58.3" />
|
|
|
|
|
|
<!-- plugins -->
|
|
|
|
|
|
<link rel="stylesheet" href="https://h.cowbay.org/plugins/bootstrap/bootstrap.min.css ">
|
|
|
|
|
|
<link rel="stylesheet" href="https://h.cowbay.org/plugins/slick/slick.css ">
|
|
|
|
|
|
<link rel="stylesheet" href="https://h.cowbay.org/plugins/themify-icons/themify-icons.css ">
|
|
|
|
|
|
|
|
|
<!-- Main Stylesheet -->
|
|
|
|
|
|
<link rel="stylesheet" href="https://h.cowbay.org/css/style.min.css" integrity="" media="screen">
|
|
|
|
|
|
<!--Favicon-->
|
|
|
<link rel="shortcut icon" href="https://h.cowbay.org/images/favicon.png " type="image/x-icon">
|
|
|
<link rel="icon" href="https://h.cowbay.org/images/favicon.png " type="image/x-icon">
|
|
|
|
|
|
</head><body>
|
|
|
<!-- preloader start -->
|
|
|
<div class="preloader">
|
|
|
<div class="loader">
|
|
|
<span class="dot"></span>
|
|
|
<div class="dots">
|
|
|
<span></span>
|
|
|
<span></span>
|
|
|
<span></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- preloader end -->
|
|
|
<header class="navigation">
|
|
|
<nav class="navbar navbar-expand-lg navbar-light">
|
|
|
<a class="navbar-brand" href="https://h.cowbay.org"><img class="img-fluid" src="https://h.cowbay.org/images/logo.png" alt="Parsa | Personal Blog Template"></a>
|
|
|
<button class="navbar-toggler border-0" type="button" data-toggle="collapse" data-target="#navogation"
|
|
|
aria-controls="navogation" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
</button>
|
|
|
|
|
|
<div class="collapse navbar-collapse text-center" id="navogation">
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
<li class="nav-item">
|
|
|
<a class="nav-link text-uppercase text-dark" href="https://h.cowbay.org"> Home </a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
<a class="nav-link text-uppercase text-dark" href="https://h.cowbay.org/about">About</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
<a class="nav-link text-uppercase text-dark" href="https://h.cowbay.org/contact">Contact</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
<!-- search -->
|
|
|
<form class="form-inline position-relative ml-lg-4" action="https://h.cowbay.org/search">
|
|
|
<input class="form-control px-0 w-100" type="search" placeholder="Search" id="search-query" name="s">
|
|
|
<button class="search-icon" type="submit"><i class="ti-search text-dark"></i></button>
|
|
|
</form>
|
|
|
|
|
|
</div>
|
|
|
</nav>
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
<div class="container-fluid p-sm-0">
|
|
|
<div class="row featured-post-slider">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section class="section">
|
|
|
<div class="container">
|
|
|
<div class="row masonry-container">
|
|
|
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[筆記]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/create-portable-vim-environment/">[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment</a></h4>
|
|
|
<p><p>因為工作的關係,現在很多時間都花在VIM的操作上</p>
|
|
|
|
|
|
<p>所以之前花了滿多時間,調整出一個適合自己的VIM環境</p>
|
|
|
|
|
|
<p>原本的作法是把這個設定好的環境,丟到自己建立的gitea 上面</p>
|
|
|
|
|
|
<p>然後每到一台新的機器,就要去clone 下來</p></p>
|
|
|
<a href="https://h.cowbay.org/post/create-portable-vim-environment/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[群暉]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/synology-ds415-repair-cost/">[雜念] 群暉 Synology NAS DS 415+ 誇張的維修費用</a></h4>
|
|
|
<p><p>前幾天公司的一台 Synology DS 415+ 發生異常</p>
|
|
|
|
|
|
<p>注意到的時候,四顆硬碟燈號都不斷的在閃爍</p>
|
|
|
|
|
|
<p>但是已經無法登入系統</p>
|
|
|
|
|
|
<p>重開機之後更慘,四顆硬碟燈號全部橘燈恆亮</p>
|
|
|
|
|
|
<p>底下的電源藍燈不斷的在閃爍</p>
|
|
|
|
|
|
<p>雖然我一再表示不希望送修了</p>
|
|
|
|
|
|
<p>一來是已經過保,二來是DS415+ 本身就有intel bug,三來是因為對synology的NAS 實在沒有愛…</p>
|
|
|
|
|
|
<p>不過主管還是希望能夠先問群暉維修的費用多少</p></p>
|
|
|
<a href="https://h.cowbay.org/post/synology-ds415-repair-cost/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[筆記]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox & Mellanox SFP 網卡土炮 10G LAB </a></h4>
|
|
|
<p><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></p>
|
|
|
<a href="https://h.cowbay.org/post/10g-lab-using-proxmox-and-mellanox/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org/images/post-default-11.jpg" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[筆記]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/ansible-selectattr-filter/">[筆記] 還是 Ansible Selectattr </a></h4>
|
|
|
<p><p>在上一篇 <a href="https://h.cowbay.org/post/ansible-selectattr/">Ansible how to use ‘list’ in yaml file </a></p>
|
|
|
|
|
|
<p>有提到怎麼用 with_items / set_fact 來取得在yaml 檔案中的清單</p>
|
|
|
|
|
|
<p>不過就是有點醜</p></p>
|
|
|
<a href="https://h.cowbay.org/post/ansible-selectattr-filter/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[筆記]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/ansible-selectattr/">[筆記] Ansible how to use 'list' in yaml file </a></h4>
|
|
|
<p><p>這幾天在玩ansible 時,碰到一個問題</p>
|
|
|
|
|
|
<p>假如我有個yaml檔作為資料來源,檔名是 abc.yml</p>
|
|
|
|
|
|
<p>大概長這樣</p>
|
|
|
|
|
|
<pre><code> "teams": [
|
|
|
{
|
|
|
"chinese_name": "TEAM1",
|
|
|
"description": "TEAM1",
|
|
|
"gid": 10125,
|
|
|
"location": [
|
|
|
"hq"
|
|
|
],
|
|
|
"name": "aa",
|
|
|
"users": [
|
|
|
"chen",
|
|
|
"chou",
|
|
|
"huani",
|
|
|
"yey",
|
|
|
"wa"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"chinese_name": "TEAM2",
|
|
|
"description": "TEAM2",
|
|
|
"gid": 10126,
|
|
|
"location": [
|
|
|
"hq"
|
|
|
],
|
|
|
"name": "bb",
|
|
|
"users": [
|
|
|
"chhiao",
|
|
|
"chgc",
|
|
|
"chy",
|
|
|
"hsi",
|
|
|
"li",
|
|
|
"li",
|
|
|
"chgchi"
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
|
|
|
</code></pre></p>
|
|
|
<a href="https://h.cowbay.org/post/ansible-selectattr/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-4 col-sm-6 mb-5">
|
|
|
<article class="text-center">
|
|
|
<img class="img-fluid mb-4" src="https://h.cowbay.org" alt="post-thumb">
|
|
|
<p class="text-uppercase mb-2">[筆記]</p>
|
|
|
<h4 class="title-border"><a class="text-dark" href="https://h.cowbay.org/post/change-preferred-language-in-firefox/">[筆記] 為了metabase 修改 firefox 開啟網頁時使用的預設語言 change the preferred language in firefox for metabase</a></h4>
|
|
|
<p><p>最近在測試metabase,記得幾個月前就有測試過</p>
|
|
|
|
|
|
<p>但是當時的界面和現在的樣子差很多,看樣子改版還滿勤勞的</p>
|
|
|
|
|
|
<p>所以這次改用docker來建立,根本五分鐘不到就建好了(挖鼻孔)</p>
|
|
|
|
|
|
<p>不過呢,很討厭的是,一進去就發現語系採用的是簡體中文</p></p>
|
|
|
<a href="https://h.cowbay.org/post/change-preferred-language-in-firefox/" class="btn btn-transparent">read more</a>
|
|
|
</article>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<!-- pagination -->
|
|
|
<div class="col-12">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<nav aria-label="Page navigation">
|
|
|
<ul class="pagination justify-content-center align-items-center">
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/5/" class="page-link">
|
|
|
« Previous
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/3/" class="page-link">
|
|
|
3
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/4/" class="page-link">
|
|
|
4
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/5/" class="page-link">
|
|
|
5
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item page-item active ">
|
|
|
<a href="/amp/page/6/" class="page-link">
|
|
|
6
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/7/" class="page-link">
|
|
|
7
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li class="page-item">
|
|
|
<a href="/amp/page/7/" class="page-link">
|
|
|
Next »
|
|
|
</a>
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
</nav>
|
|
|
|
|
|
</div>
|
|
|
<!-- /pagination -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section>
|
|
|
<div class="container-fluid px-0">
|
|
|
<div class="row no-gutters instagram-slider" id="instafeed" data-userId="4044026246"
|
|
|
data-accessToken="4044026246.1677ed0.8896752506ed4402a0519d23b8f50a17"></div>
|
|
|
</div>
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<footer class="bg-secondary">
|
|
|
<div class="section">
|
|
|
<div class="container">
|
|
|
<div class="row">
|
|
|
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
|
|
|
<a href="https://h.cowbay.org"><img src="https://h.cowbay.org/images/logo.png" alt="Parsa | Personal Blog Template" class="img-fluid"></a>
|
|
|
</div>
|
|
|
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
|
|
|
<h6>Address</h6>
|
|
|
<ul class="list-unstyled">
|
|
|
|
|
|
<li class="font-secondary text-dark">Sydney</li>
|
|
|
|
|
|
<li class="font-secondary text-dark">6 rip carl Avenue CA 90733</li>
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
|
|
|
<h6>Contact Info</h6>
|
|
|
<ul class="list-unstyled">
|
|
|
|
|
|
<li class="font-secondary text-dark">Tel: +90 000 333 22</li>
|
|
|
|
|
|
<li class="font-secondary text-dark">Mail: exmaple@ymail.com</li>
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="col-md-3 col-sm-6 mb-4 mb-md-0">
|
|
|
<h6>Follow</h6>
|
|
|
<ul class="list-inline d-inline-block">
|
|
|
|
|
|
<li class="list-inline-item"><a href="#" class="text-dark"><i class="ti-facebook"></i></a></li>
|
|
|
|
|
|
<li class="list-inline-item"><a href="#" class="text-dark"><i class="ti-twitter-alt"></i></a></li>
|
|
|
|
|
|
<li class="list-inline-item"><a href="#" class="text-dark"><i class="ti-linkedin"></i></a></li>
|
|
|
|
|
|
<li class="list-inline-item"><a href="#" class="text-dark"><i class="ti-github"></i></a></li>
|
|
|
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="text-center pb-3">
|
|
|
<p class="mb-0">Copyright ©<script>var CurrentYear = new Date().getFullYear()
|
|
|
document.write(CurrentYear)</script> a theme by <a href="themefisher.com">themefisher.com</a></p>
|
|
|
</div>
|
|
|
</footer>
|
|
|
|
|
|
<script>
|
|
|
var indexURL = "https://h.cowbay.org/index.json"
|
|
|
</script>
|
|
|
|
|
|
<!-- JS Plugins -->
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/jQuery/jquery.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/bootstrap/bootstrap.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/slick/slick.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/headroom/headroom.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/instafeed/instafeed.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/masonry/masonry.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/reading-time/readingTime.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/smooth-scroll/smooth-scroll.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/search/fuse.min.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/search/mark.js"></script>
|
|
|
|
|
|
<script src="https://h.cowbay.org/plugins/search/search.js"></script>
|
|
|
|
|
|
<!-- Main Script -->
|
|
|
|
|
|
<script src="https://h.cowbay.org/js/script.min.js"></script>
|
|
|
<!-- google analitycs -->
|
|
|
<script>
|
|
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
ga('create', 'Your ID', 'auto');
|
|
|
ga('send', 'pageview');
|
|
|
</script></body>
|
|
|
</html> |