<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>imcj01 (imcj)</title>
    <link>https://ruby-china.org/imcj01</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>有没有开源的 paas 系统推荐？</title>
      <description>&lt;p&gt;如题&lt;/p&gt;</description>
      <author>imcj01</author>
      <pubDate>Wed, 20 Feb 2019 20:40:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/38129</link>
      <guid>https://ruby-china.org/topics/38129</guid>
    </item>
    <item>
      <title>根据当前主机地理位置选择最优的 ubuntu apt 源，还有 pypi gem yum 等。</title>
      <description>&lt;p&gt;&lt;a href="https://github.com/imcj/get-mirror" rel="nofollow" target="_blank"&gt;https://github.com/imcj/get-mirror&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="get-mirror"&gt;get-mirror&lt;/h2&gt;
&lt;p&gt;通过查询当前设备的 IP 地址，获得在物理位置上比较接近的镜像服务。&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;vagrant@vagrant:~&lt;span class="nv"&gt;$ &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;get-mirror ubuntu&lt;span class="si"&gt;)&lt;/span&gt;
cn.archive.ubuntu.com
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;适用于：&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pypi&lt;/li&gt;
&lt;li&gt;gem&lt;/li&gt;
&lt;li&gt;apt&lt;/li&gt;
&lt;li&gt;yum&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; requirements.txt &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;get-mirror pypi&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="缺陷"&gt;缺陷&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;没有把抓取到的数据容缓存本地在本地&lt;/li&gt;
&lt;li&gt;no gem&lt;/li&gt;
&lt;li&gt;no debian apt&lt;/li&gt;
&lt;li&gt;no yum&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="安装"&gt;安装&lt;/h2&gt;
&lt;p&gt;安装非常简单&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;get-mirror
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>imcj01</author>
      <pubDate>Mon, 17 Jun 2013 15:38:21 +0800</pubDate>
      <link>https://ruby-china.org/topics/11780</link>
      <guid>https://ruby-china.org/topics/11780</guid>
    </item>
  </channel>
</rss>
