<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>将之典藏</title>
	<atom:link href="https://xiaobin.net/feed/" rel="self" type="application/rss+xml" />
	<link>https://xiaobin.net</link>
	<description>一个社交恐惧症患者（俗称：宅男）的互联网从业生活</description>
	<lastBuildDate>Fri, 13 Jan 2017 15:07:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.4.2</generator>
	<item>
		<title>composer require &#8211;nodev</title>
		<link>https://xiaobin.net/201606/composer-require-nodev/</link>
		<comments>https://xiaobin.net/201606/composer-require-nodev/#respond</comments>
		<pubDate>Wed, 22 Jun 2016 06:30:39 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=1013</guid>
		<description><![CDATA[There not really have such a option for composer require, but you can: composer require &#8211;no-update gomoob/php-pushwoosh composer update &#8211;no-dev composer require &#8211;nodev &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201606/composer-require-nodev/ 将之典藏 - 厚积而薄发，© 2005-2016. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>There not really have such a option for composer require, but you can:</p>
<ol>
<li>composer require &#8211;no-update gomoob/php-pushwoosh</li>
<li>composer update &#8211;no-dev</li>
</ol>
<hr />
<p><strong><a href="https://xiaobin.net/201606/composer-require-nodev/">composer require &#8211;nodev</a></strong> | 暂无评论，<a href="https://xiaobin.net/201606/composer-require-nodev/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201606/composer-require-nodev/">https://xiaobin.net/201606/composer-require-nodev/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmail Go-To-Action</title>
		<link>https://xiaobin.net/201606/gmail-go-to-action/</link>
		<comments>https://xiaobin.net/201606/gmail-go-to-action/#respond</comments>
		<pubDate>Thu, 02 Jun 2016 06:42:39 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[其它]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=1010</guid>
		<description><![CDATA[Gmail里经常有一些邮件标题后面带个可以点击的连接，这是什么东西？ 答案是：这是Gmail的“Go-To-Action”，可以加一段JSON-LD代码在邮件的HTML里就可以实现。比如 &#38;lt;script type="application/ld+json"&#38;gt; { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://watch-movies.com/watch?movieId=abc123", "name": "Watch movie" }, "description": "Watch the 'Avengers' movie online" } &#38;lt;/script&#38;gt; 详见： Gmail Markup Gmail Go-To-Action &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201606/gmail-go-to-action/ 将之典藏 - 厚积而薄发，© 2005-2016. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>Gmail里经常有一些邮件标题后面带个可以点击的连接，这是什么东西？</p>
<p><img class="alignnone" src="https://i.imgur.com/lH8VMS2.png" alt="" width="699" height="100" /></p>
<p>答案是：这是Gmail的“Go-To-Action”，可以加一段JSON-LD代码在邮件的HTML里就可以实现。比如</p>
<p><code>&amp;lt;script type="application/ld+json"&amp;gt;<br />
{<br />
"@context": "http://schema.org",<br />
"@type": "EmailMessage",<br />
"potentialAction": {<br />
"@type": "ViewAction",<br />
"target": "https://watch-movies.com/watch?movieId=abc123",<br />
"name": "Watch movie"<br />
},<br />
"description": "Watch the 'Avengers' movie online"<br />
}<br />
&amp;lt;/script&amp;gt;</code></p>
<p>详见：</p>
<ul>
<li><a href="https://developers.google.com/gmail/markup/overview" target="_blank">Gmail Markup</a></li>
</ul>
<hr />
<p><strong><a href="https://xiaobin.net/201606/gmail-go-to-action/">Gmail Go-To-Action</a></strong> | 暂无评论，<a href="https://xiaobin.net/201606/gmail-go-to-action/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201606/gmail-go-to-action/">https://xiaobin.net/201606/gmail-go-to-action/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables 看门狗</title>
		<link>https://xiaobin.net/201604/iptables-watchdog/</link>
		<comments>https://xiaobin.net/201604/iptables-watchdog/#respond</comments>
		<pubDate>Fri, 29 Apr 2016 16:46:02 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=1006</guid>
		<description><![CDATA[近来业内很多服务器因redis造成服务器被黑，这个攻击的防范重点在于防火墙！！ 有时为了方便我们可能会将iptables临时关闭，方便完倘若忘记把它打开，黑客大摇大摆就走进来。 这时候，我们需要条看门狗来帮我们：如果门开了而且家里还没人在家，看门狗自己帮主人把门关上： #!/bin/sh /sbin/service iptables status &#62;/dev/null 2&#62;&#38;1 if [ $? -gt 0 ]; then if [ $(/usr/bin/who &#124; wc -l) = 0 ]; then /etc/init.d/iptables start fi fi iptables 看门狗 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201604/iptables-watchdog/ 将之典藏 - 厚积而薄发，© 2005-2016. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>近来业内很多服务器<a href="http://antirez.com/news/96" target="_blank">因redis造成服务器被黑</a>，这个攻击的防范重点在于防火墙！！</p>
<p>有时为了方便我们可能会将iptables临时关闭，方便完倘若忘记把它打开，黑客大摇大摆就走进来。</p>
<p>这时候，我们需要条看门狗来帮我们：如果门开了而且家里还没人在家，看门狗自己帮主人把门关上：</p>
<pre>#!/bin/sh

/sbin/service iptables status &gt;/dev/null 2&gt;&amp;1
if [ $? -gt 0 ]; then
    if [ $(/usr/bin/who | wc -l) = 0 ]; then
        /etc/init.d/iptables start
    fi
fi
</pre>
<hr />
<p><strong><a href="https://xiaobin.net/201604/iptables-watchdog/">iptables 看门狗</a></strong> | 暂无评论，<a href="https://xiaobin.net/201604/iptables-watchdog/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201604/iptables-watchdog/">https://xiaobin.net/201604/iptables-watchdog/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nc 传送文件</title>
		<link>https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/</link>
		<comments>https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/#respond</comments>
		<pubDate>Tue, 01 Mar 2016 14:29:25 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=1002</guid>
		<description><![CDATA[直接用nc传送文件，真的很方便。可免得压缩解压缩，也免得有权限问题。 传送整个文件夹 接受端：nc -l 1234 &#124; tar -xzvf &#8211; 发送端：tar -czvf &#8211; www &#124; nc 192.168.0.200 1234 传送单个文件： 接受方：nc -l 1234 &#62; /etc/nginx/nginx.conf 发送方：cat /etc/nginx/nginc.conf &#124; nc 192.169.0.200 1234 &#160; nc 传送文件 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/ 将之典藏 - 厚积而薄发，© 2005-2016. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>直接用nc传送文件，真的很方便。可免得压缩解压缩，也免得有权限问题。</p>
<p>传送整个文件夹</p>
<ul>
<li>接受端：nc -l 1234 | tar -xzvf &#8211;</li>
<li>发送端：tar -czvf &#8211; www | nc 192.168.0.200 1234</li>
</ul>
<p>传送单个文件：</p>
<ul>
<li>接受方：nc -l 1234 &gt; /etc/nginx/nginx.conf</li>
<li>发送方：cat /etc/nginx/nginc.conf | nc 192.169.0.200 1234</li>
</ul>
<p>&nbsp;</p>
<hr />
<p><strong><a href="https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/">nc 传送文件</a></strong> | 暂无评论，<a href="https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/">https://xiaobin.net/201603/nc-%e4%bc%a0%e9%80%81%e6%96%87%e4%bb%b6/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics API 的查询工具</title>
		<link>https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/</link>
		<comments>https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/#respond</comments>
		<pubDate>Wed, 24 Feb 2016 05:18:37 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google Analytics]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=996</guid>
		<description><![CDATA[Google Analytics API 的查询工具：Google Analytics Query Exploer Google Analytics API 的查询工具 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/ 将之典藏 - 厚积而薄发，© 2005-2016. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>Google Analytics API 的查询工具：<a href="https://ga-dev-tools.appspot.com/query-explorer/">Google Analytics Query Exploer</a></p>
<hr />
<p><strong><a href="https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/">Google Analytics API 的查询工具</a></strong> | 暂无评论，<a href="https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/">https://xiaobin.net/201602/google-analytics-api-%e7%9a%84%e6%9f%a5%e8%af%a2%e5%b7%a5%e5%85%b7/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codeship实现简单的PHP项目持续发布</title>
		<link>https://xiaobin.net/201602/codeship-simple-php-deploy/</link>
		<comments>https://xiaobin.net/201602/codeship-simple-php-deploy/#respond</comments>
		<pubDate>Tue, 23 Feb 2016 09:36:40 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=984</guid>
		<description><![CDATA[Setup command: phpenv local 5.5 pecl install -f msgpack-0.5.7 yes &#124; pecl install -f zmq-beta composer install npm install &#38;amp;&#38;amp; gulp pip install fabric Configure Test Pipelines: # 最简单的测试，只检查了一下语法 find ./ -type f -iname "*.php" -print0 &#124; xargs -0 -n1 php -l Deployment: # 用rsync等命令都可以 cd deploy &#38;amp;&#38;amp; fab production deploy 好用。但要注意有个坑：免费只有100个Build，即便是用来发布Side Project，这个量还是太少了。收费版最低$49元/月，略贵。 其他的一些解决方案： 持续集成： [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Setup command:</p>
<p><code>phpenv local 5.5<br />
pecl install -f msgpack-0.5.7<br />
yes | pecl install -f zmq-beta<br />
composer install<br />
npm install &amp;amp;&amp;amp; gulp<br />
pip install fabric</code></p>
<p>Configure Test Pipelines:</p>
<p><code># 最简单的测试，只检查了一下语法<br />
find ./ -type f -iname "*.php" -print0 | xargs -0 -n1 php -l</code></p>
<p>Deployment:<br />
<code># 用rsync等命令都可以<br />
cd deploy &amp;amp;&amp;amp; fab production deploy</code></p>
<p>好用。但要注意有个坑：免费只有100个Build，即便是用来发布Side Project，这个量还是太少了。收费版最低$49元/月，略贵。</p>
<p><span id="more-984"></span></p>
<p>其他的一些解决方案：</p>
<p>持续集成：</p>
<ul>
<li><a href="https://jenkins-ci.org/" target="_blank" rel="nofollow">Jenkins CI</a> [jenkins-ci.org]</li>
<li><a href="https://www.jetbrains.com/teamcity/" target="_blank" rel="nofollow">TeamCity</a> [jetbrains.com]</li>
<li><a href="http://www.circleci.com/" target="_blank" rel="nofollow">CircleCI</a> [circleci.com]</li>
<li><a href="https://ship.io/" target="_blank" rel="nofollow">Ship.IO</a> [ship.io]</li>
<li><a href="https://travis-ci.com/" target="_blank" rel="nofollow">Travis CI</a> [travis-ci.com]</li>
</ul>
<p>持续发布：</p>
<ul>
<li><a href="http://deploybot.com/" target="_blank" rel="nofollow">Deploybot (previously) Dploy.io</a> [deploybot.com]</li>
</ul>
<hr />
<p><strong><a href="https://xiaobin.net/201602/codeship-simple-php-deploy/">Codeship实现简单的PHP项目持续发布</a></strong> | 暂无评论，<a href="https://xiaobin.net/201602/codeship-simple-php-deploy/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201602/codeship-simple-php-deploy/">https://xiaobin.net/201602/codeship-simple-php-deploy/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2016. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 6 RPM安裝python 2.7</title>
		<link>https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/</link>
		<comments>https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/#respond</comments>
		<pubDate>Tue, 26 Mar 2013 17:49:24 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=952</guid>
		<description><![CDATA[先说第一种方法，通过rpmbuild编译XXX.src.rpm包([1]、[2])： 安装依赖：sudo yum install -y make autoconf bzip2-devel db4-devel expat-devel gcc-c++ gdbm-devel glibc-devel gmp-devel libffi-devel libGL-devel libX11-devel ncurses-devel openssl-devel readline-devel sqlite-devel systemtap-sdt-devel tcl-devel tix-devel tk-devel valgrind-devel zlib-devel 下载src.rpm: ftp://ftp.pycopia.org/pub/python/RHEL51/python2.7-2.7.1-1TH.src.rpm sudo rpmbuild &#8211;rebuild 然后等待漫长的编译过程。 …… …… …… 在此期间我宣布一下实验结果：编译+tests跑了1个多小时，最后告诉我打包rpm时出错！坑爹啊!! 第二种是懒人大法，直接下载二进制rpm包安装： http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-libs-2.7.3-6.2.el6.nux.x86_64.rpm http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-2.7.3-6.2.el6.nux.x86_64.rpm http://li.nux.ro/download/nux/dextop/el6/x86_64/tkinter27-2.7.3-6.2.el6.nux.x86_64.rpm http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-devel-2.7.3-6.2.el6.nux.x86_64.rpm &#160; 如果只需要python可以只安装1和2，不过通常未来安装python库时有时会需要头文件，所以一般推荐也安装上python27-devel. 码完收工 &#160; 2017年更新：建议参考 https://gist.github.com/dalegaspi/dec44117fa5e7597a559 CentOS 6 RPM安裝python 2.7 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/ 将之典藏 - [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>先说第一种方法，通过rpmbuild编译XXX.src.rpm包([<a href="http://d.hatena.ne.jp/ckreal/20130103/1357171663">1</a>]、[<a href="http://unix.stackexchange.com/questions/16286/python-2-7-on-centos-5">2</a>])：</p>
<ol>
<li><span style="line-height: 13px;">安装依赖：sudo yum install -y make autoconf bzip2-devel db4-devel expat-devel gcc-c++ gdbm-devel glibc-devel gmp-devel libffi-devel libGL-devel libX11-devel ncurses-devel openssl-devel readline-devel sqlite-devel systemtap-sdt-devel tcl-devel tix-devel tk-devel valgrind-devel zlib-devel</span></li>
<li>下载src.rpm: ftp://ftp.pycopia.org/pub/python/RHEL51/python2.7-2.7.1-1TH.src.rpm</li>
<li>sudo rpmbuild &#8211;rebuild</li>
</ol>
<p>然后等待漫长的编译过程。</p>
<p>……</p>
<p>……</p>
<p>……</p>
<p>在此期间我宣布一下实验结果：编译+tests跑了1个多小时，最后告诉我打包rpm时出错！坑爹啊!!</p>
<p>第二种是懒人大法，直接下载二进制rpm包安装：</p>
<ol>
<li>http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-libs-2.7.3-6.2.el6.nux.x86_64.rpm</li>
<li>http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-2.7.3-6.2.el6.nux.x86_64.rpm</li>
<li>http://li.nux.ro/download/nux/dextop/el6/x86_64/tkinter27-2.7.3-6.2.el6.nux.x86_64.rpm</li>
<li>http://li.nux.ro/download/nux/dextop/el6/x86_64/python27-devel-2.7.3-6.2.el6.nux.x86_64.rpm</li>
</ol>
<p>&nbsp;</p>
<p>如果只需要python可以只安装1和2，不过通常未来安装python库时有时会需要头文件，所以一般推荐也安装上python27-devel.</p>
<p>码完收工</p>
<hr />
<p>&nbsp;</p>
<p>2017年更新：建议参考 https://gist.github.com/dalegaspi/dec44117fa5e7597a559</p>
<hr />
<p><strong><a href="https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/">CentOS 6 RPM安裝python 2.7</a></strong> | 暂无评论，<a href="https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/">https://xiaobin.net/201303/centos-6-install-python-2-7-via-rpm/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2013. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>含autoddvpn的Buffalo WHR-G300N v2 DDWRT固件</title>
		<link>https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/</link>
		<comments>https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/#respond</comments>
		<pubDate>Sun, 17 Feb 2013 08:15:07 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[autoddvpn]]></category>
		<category><![CDATA[ddwrt]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=939</guid>
		<description><![CDATA[试验过按autoddvpn官方提供的文档自制固件[1]并不可行，会提示“ERROR: New firmware image will be larger than original image!”，可以删除一些语言文件来空余出部分空间[2]，否则做出来的固件会直接把路由器变砖（当然也可以刷回来[3]，但是过程纠结）。 自制固件下载： https://www.dropbox.com/s/sk889vo7n89o8lo/new-firmware.bin 升级步骤： 下载buffalo-to-dd-wrt_webflash-MULTI.bin,通过路由器本身的管理界面把它刷成DD-WRT 再通过DD-WRT web界面更新固件为自制固件 设置：这个就必说的太细啦。 已知问题：我目前使用这个固件超过2个月，偶有不稳定状况发生在VPN中断并重连后，发生不稳定状况时局域网内的主机无法连接到国外网络，但路由器可以。调试发现是iptables有几条规则被清除的原因，但还未找到完美的解决方法。 参考： custom firmware自制韌體模式 Buffalo whr g300n v2路由器刷dd-wrt 再刷回来 变砖之后的处理办法：通过tftp刷回原厂固件 含autoddvpn的Buffalo WHR-G300N v2 DDWRT固件 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/ 将之典藏 - 厚积而薄发，© 2005-2013. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>试验过按autoddvpn官方提供的文档自制固件[1]并不可行，会提示“ERROR: New firmware image will be larger than original image!”，可以删除一些语言文件来空余出部分空间[2]，否则做出来的固件会直接把路由器变砖（当然也可以刷回来[3]，但是过程纠结）。</p>
<p>自制固件下载：</p>
<blockquote><p>https://www.dropbox.com/s/sk889vo7n89o8lo/new-firmware.bin</p></blockquote>
<p>升级步骤：</p>
<ol>
<li>下载buffalo-to-dd-wrt_webflash-MULTI.bin,通过路由器本身的管理界面把它刷成DD-WRT</li>
<li>再通过DD-WRT web界面更新固件为自制固件</li>
</ol>
<p>设置：这个就必说的太细啦。</p>
<p>已知问题：我目前使用这个固件超过2个月，偶有不稳定状况发生在VPN中断并重连后，发生不稳定状况时局域网内的主机无法连接到国外网络，但路由器可以。调试发现是iptables有几条规则被清除的原因，但还未找到完美的解决方法。</p>
<p>参考：</p>
<ol>
<li><a href="http://code.google.com/p/autoddvpn/wiki/HOWTO">custom firmware自制韌體模式</a></li>
<li><a href="http://onepill.yo2.cn/2012/03/buffalo-whr-g300n-v2-flash-dd-wrt-and-revert/">Buffalo whr g300n v2路由器刷dd-wrt 再刷回来</a></li>
<li><a href="http://dd-wrt.com/wiki/index.php/WHR-G300N_V2#Going_back_to_Buffalo_Firmware">变砖之后的处理办法：通过tftp刷回原厂固件</a></li>
</ol>
<hr />
<p><strong><a href="https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/">含autoddvpn的Buffalo WHR-G300N v2 DDWRT固件</a></strong> | 暂无评论，<a href="https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/">https://xiaobin.net/201302/autoddvpn-inside-ddwrt-firmware-for-buffalo-whr-g300n-v2/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2013. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH登陆响应慢的问题</title>
		<link>https://xiaobin.net/201112/ssh-login-quite-slow/</link>
		<comments>https://xiaobin.net/201112/ssh-login-quite-slow/#respond</comments>
		<pubDate>Tue, 27 Dec 2011 07:21:59 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=873</guid>
		<description><![CDATA[同样的问题，有可能是两种情况： 第一种情况比较常见，也有很多资料提及到，就是在SSH登陆时服务器端会对客户端的IP进行反解析造成登陆响应慢的问题，通常改sshd_config的“UseDNS no”即可以。 第二种情况，服务器端启用了GSSAPI[1]。登陆的时候客户端需要对服务器端的IP地址进行反解析，如果服务器的IP地址没有配置PTR记录，那么就容易在这里卡住了。 对于这种情况，就有必要禁用GSSAPI认证以加速SSH登陆，具体有下面几种方式： 解法一：使用ssh命令时使用附加的参数：ssh -o GSSAPIAuthentication=no server_address 解法二：修改客户端ssh_config（/etc/ssh/ssh_config或~/.ssh/config）：GSSAPIAuthentication no 解法三：修改服务器端的sshd_config(/etc/ssh/ssd_config)：GSSAPIAuthentication no 参考： [1] &#8211; GSSAPI 禁用ssh的GSSAPI提升连接速度 SSH登陆响应慢的问题 &#124; 暂无评论，添加评论 本文网址：https://xiaobin.net/201112/ssh-login-quite-slow/ 将之典藏 - 厚积而薄发，© 2005-2011. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p>同样的问题，有可能是两种情况：</p>
<p>第一种情况比较常见，也有很多资料提及到，就是在SSH登陆时服务器端会对客户端的IP进行反解析造成登陆响应慢的问题，通常改sshd_config的“UseDNS no”即可以。</p>
<p>第二种情况，服务器端启用了GSSAPI<sup>[1]</sup>。登陆的时候客户端需要对服务器端的IP地址进行反解析，如果服务器的IP地址没有配置PTR记录，那么就容易在这里卡住了。</p>
<p>对于这种情况，就有必要禁用GSSAPI认证以加速SSH登陆，具体有下面几种方式：</p>
<ol>
<li>解法一：使用ssh命令时使用附加的参数：ssh -o GSSAPIAuthentication=no server_address</li>
<li>解法二：修改客户端ssh_config（/etc/ssh/ssh_config或~/.ssh/config）：GSSAPIAuthentication no</li>
<li>解法三：修改服务器端的sshd_config(/etc/ssh/ssd_config)：GSSAPIAuthentication no</li>
</ol>
<p>参考：</p>
<ul>
<li>[1] &#8211; <a href="http://en.wikipedia.org/wiki/Generic_Security_Services_Application_Program_Interface" target="_blank">GSSAPI</a></li>
<li><a href="http://www.issacy.com/archives/37.html" target="_blank">禁用ssh的GSSAPI提升连接速度</a></li>
</ul>
<hr />
<p><strong><a href="https://xiaobin.net/201112/ssh-login-quite-slow/">SSH登陆响应慢的问题</a></strong> | 暂无评论，<a href="https://xiaobin.net/201112/ssh-login-quite-slow/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201112/ssh-login-quite-slow/">https://xiaobin.net/201112/ssh-login-quite-slow/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2011. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎样让Google在搜索结果呈现你的头像</title>
		<link>https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/</link>
		<comments>https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 07:16:35 +0000</pubDate>
		<dc:creator><![CDATA[肖斌]]></dc:creator>
				<category><![CDATA[前端]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">https://xiaobin.net/?p=860</guid>
		<description><![CDATA[效果： 第一步：创建Google Profile，修改头像。同时，修改Google Profile的“以下网站的撰稿者”，增加你的博客网址在上面。 第二步：在博客文章中增加你的Google Profile链接，有两种方式选其一： 方式一：将Google Profile链接附加在每篇博文中。同时，重要是的还要设置链接的rel属性为“author”，如： &#60;a href="https://profiles.google.com/102865267049130142543" rel="author"&#62;肖斌&#60;/a&#62; 方式二： 创建一个“关于作者”的页面，在该页面插入Google Profile链接，但是这次rel的属性是&#8221;me&#8221;，如： Google Profile：&#60;a rel="me" href="https://profiles.google.com/102865267049130142543"&#62;Google Profile&#60;/a&#62; 每篇博文增加一个指向“关于作者”页的链接，设置该链接的rel属性为“author”，如： &#60;a rel="author" href="/about"&#62;About&#60;/a&#62; 只需要两个步骤，完成之后，可以通过Google Rich Snippets测试。 参考： Authorship Display your Profile Picture in Google Search Results http://schema.org/ &#8212; 更新： 11.27 &#8211; 看来Google还在测试这项功能，完成以上的步骤之后还需要提交一个表单。 怎样让Google在搜索结果呈现你的头像 &#124; 评论数(2)，添加评论 本文网址：https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/ 将之典藏 - 厚积而薄发，© 2005-2011. 如无特别声明，适用署名-非商业性使用-相同方式共享 3.0授权，你可以署名使用全部或者部分内容用于非商业性目的。]]></description>
				<content:encoded><![CDATA[<p><strong>效果：</strong></p>
<p><em><a href="https://xiaobin.net/wp-content/uploads/2011/11/google-srp.png"><img class="aligncenter size-full wp-image-888" title="Google搜索结果" src="https://xiaobin.net/wp-content/uploads/2011/11/google-srp.png" alt="" width="530" height="111" /></a></em></p>
<p><strong>第一步</strong>：创建<a href="https://profiles.google.com/">Google Profile</a>，修改头像。同时，修改Google Profile的“<em>以下网站的撰稿者</em>”，增加你的博客网址在上面。</p>
<p><strong>第二步：</strong>在博客文章中增加你的Google Profile链接，有两种方式选其一：</p>
<ol>
<li>方式一：将Google Profile链接附加在每篇博文中。同时，重要是的还要设置链接的rel属性为“author”，如：
<pre>&lt;a href="https://profiles.google.com/102865267049130142543" <span style="color: #ff0000;">rel="author"</span>&gt;肖斌&lt;/a&gt;</pre>
</li>
<li>方式二：
<ol>
<li>创建一个“关于作者”的页面，在该页面插入Google Profile链接，但是这次rel的属性是&#8221;me&#8221;，如：
<pre>Google Profile：&lt;a <span style="color: #ff0000;">rel="me"</span> href="https://profiles.google.com/102865267049130142543"&gt;Google Profile&lt;/a&gt;</pre>
</li>
<li>每篇博文增加一个指向“关于作者”页的链接，设置该链接的rel属性为“author”，如：
<pre>&lt;a <span style="color: #ff0000;">rel="author"</span> href="/about"&gt;About&lt;/a&gt;</pre>
</li>
</ol>
</li>
</ol>
<div><span style="font-family: Consolas, Monaco, monospace;"><span style="font-family: Consolas, Monaco, monospace;">只需要两个步骤，完成之后，可以通过<a href="http://www.google.com/webmasters/tools/richsnippets">Google Rich Snippets</a>测试。</span></span></div>
<p>参考：</p>
<ul>
<li><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=1229920">Authorship</a></li>
<li><a href="http://www.labnol.org/internet/author-profile-in-google/19775/">Display your Profile Picture in Google Search Results</a></li>
<li><a href="http://schema.org/">http://schema.org/</a></li>
</ul>
<div>&#8212;</div>
<div>更新：</div>
<div>11.27 &#8211; 看来Google还在测试这项功能，完成以上的步骤之后还需要提交一个<a href="http://bit.ly/lNjtLM">表单</a>。</div>
<hr />
<p><strong><a href="https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/">怎样让Google在搜索结果呈现你的头像</a></strong> | 评论数(2)，<a href="https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/#comments">添加评论</a>
<br>本文网址：<a href="https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/">https://xiaobin.net/201111/how-to-display-author-profile-picture-in-google-srp/</a>
<br><a href="https://xiaobin.net">将之典藏</a> - 厚积而薄发，© 2005-2011. 如无特别声明，适用<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank">署名-非商业性使用-相同方式共享 3.0</a>授权，你可以署名使用全部或者部分内容用于非商业性目的。</p>]]></content:encoded>
			<wfw:commentRss></wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk

 Served from: xiaobin.net @ 2017-06-15 00:40:37 by W3 Total Cache -->