add auto fetch ssl certs

This commit is contained in:
2021-08-26 12:11:25 +08:00
parent 11ca254bed
commit 509ac048fc
237 changed files with 4968 additions and 7406 deletions

View File

@@ -13,7 +13,7 @@
"articleSection" : "post",
"name" : "[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment",
"headline" : "[筆記] 建立一個帶著走的 VIM 環境 Creating portable Vim environment",
"description" : "\x3cp\x3e因為工作的關係現在很多時間都花在VIM的操作上\x3c\/p\x3e\n\n\x3cp\x3e所以之前花了滿多時間調整出一個適合自己的VIM環境\x3c\/p\x3e\n\n\x3cp\x3e原本的作法是把這個設定好的環境丟到自己建立的gitea 上面\x3c\/p\x3e\n\n\x3cp\x3e然後每到一台新的機器就要去clone 下來\x3c\/p\x3e",
"description" : "\x3cp\x3e因為工作的關係現在很多時間都花在VIM的操作上\x3c\/p\x3e\n\x3cp\x3e所以之前花了滿多時間調整出一個適合自己的VIM環境\x3c\/p\x3e\n\x3cp\x3e原本的作法是把這個設定好的環境丟到自己建立的gitea 上面\x3c\/p\x3e\n\x3cp\x3e然後每到一台新的機器就要去clone 下來\x3c\/p\x3e",
"inLanguage" : "en",
"author" : "Eric Chang",
"creator" : "Eric Chang",
@@ -45,9 +45,9 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link href="https://h.cowbay.org/css/style.css?v=1626744134" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/style.css?v=1629951055" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1626744134" rel="stylesheet" type='text/css' media='all'>
<link href="https://h.cowbay.org/css/custom.css?v=1629951055" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="https://h.cowbay.org/img/favicon.ico" type="image/x-icon">
@@ -81,10 +81,6 @@ if (!doNotTrack) {
<ul id="menu-secondary-items" class="menu-secondary-items">
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/"></a>
</li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="/categories/ansible">ansible</a>
</li>
@@ -309,42 +305,23 @@ if (!doNotTrack) {
<div class="entry-content">
<article>
<p>因為工作的關係現在很多時間都花在VIM的操作上</p>
<p>所以之前花了滿多時間調整出一個適合自己的VIM環境</p>
<p>原本的作法是把這個設定好的環境丟到自己建立的gitea 上面</p>
<p>然後每到一台新的機器就要去clone 下來</p>
<p>BUT (對就是這個BUT)</p>
<p>手邊的機器有滿多不能直接連接internet的(酷吧都什麼年代了還鎖internet)</p>
<p>所以常會碰到要做git clone 不能動,還要額外去指定 proxy server 這些設定,挺麻煩的</p>
<p>今天剛好看到這個</p>
<p><a href="https://junegunn.kr/2014/10/creating-portable-vim-environment">https://junegunn.kr/2014/10/creating-portable-vim-environment</a></p>
<p>裡面介紹的小程式可以把現在使用的vim 環境,打包成一個持行檔</p>
<p>那只要把這個執行檔丟到要控制的機器</p>
<p>那麼每一台機器都會有相同的vim 環境</p>
<p>比起之前要先git clone 然後 plugininstall 的作法要更方便許多,而且操作很簡單</p>
<p>只要先抓下來那個檔案並且執行</p>
<pre><code class="language-shell">bash &lt;(curl -L https://raw.githubusercontent.com/junegunn/myvim/master/myvim)
</code></pre>
<p>就會在執行的目錄底下產生一個 vim.$(whoami) 的執行檔</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-shell" data-lang="shell">bash &lt;<span style="color:#f92672">(</span>curl -L https://raw.githubusercontent.com/junegunn/myvim/master/myvim<span style="color:#f92672">)</span>
</code></pre></div><p>就會在執行的目錄底下產生一個 vim.$(whoami) 的執行檔</p>
<p>這個就是可以帶著走的 vim環境</p>
<p>然後就把這個檔案丟到看哪一台server上然後在其他機器上面去下載回來</p>
<p>就可以有完全一樣的 vim 環境了,超級方便的!</p>
</article>
</div>
@@ -620,7 +597,7 @@ title="pinterest icon"></i>
</ul> <div class="design-credit">
<p>&copy; 2018 Göran Svensson</p>
<p>© 2018 Göran Svensson</p>
<p>Nederburg Hugo Theme by <a href="https://appernetic.io">Appernetic</a>.</p>
@@ -632,7 +609,7 @@ title="pinterest icon"></i>
</div>
<script src="https://h.cowbay.org/js/jquery.min.js"></script>
<script src="https://h.cowbay.org/js/jquerymigrate.js"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1626744134"></script>
<script src="https://h.cowbay.org/js/production.min.js?v=1629951055"></script>
</body>
</html>