Permalink
Browse files

Site updated at 2012-06-25 08:40:17 UTC

  • Loading branch information...
1 parent f1a0c8d commit 8d768f9567ede5be1d298bffa979c2ed85c85714 @wongyouth committed Jun 25, 2012
View
@@ -4,7 +4,7 @@
<title><![CDATA[Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-25T15:19:18+08:00</updated>
+ <updated>2012-06-25T16:39:57+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
@@ -99,8 +99,10 @@ rails server
<h2>更新源</h2>
-<pre><code>sudo apt-get update
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>sudo apt-get update
+</span></code></pre></td></tr></table></div></figure>
+
<h2>安装系统包</h2>
@@ -116,48 +118,71 @@ capybara-webkit.gem need libqt4-dev</p>
<h2>安装<code>oh-my-zsh</code>,如果你使用<code>bash</code>可以跳过此步骤</h2>
-<pre><code>curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | bash
+</span></code></pre></td></tr></table></div></figure>
+
<h2>切换到<code>zsh</code></h2>
-<pre><code>chsh -s `which zsh`
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>chsh -s <span class="sb">`</span>which zsh<span class="sb">`</span>
+</span></code></pre></td></tr></table></div></figure>
+
<h2>配置主目录里面常用的dotfiles文件</h2>
-<pre><code>git clone git://github.com/wongyouth/dotfiles ~/.dotfiles
-cd ~/.dotfiles
-rake install
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>git clone git://github.com/wongyouth/dotfiles ~/.dotfiles
+</span><span class='line'><span class="nb">cd</span> ~/.dotfiles
+</span><span class='line'>rake install
+</span></code></pre></td></tr></table></div></figure>
+
<h2>设置<code>vim</code>文件,安装常用的<code>vim</code>插件</h2>
-<pre><code>curl https://raw.github.com/wongyouth/vimfiles/master/install.sh | bash
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>curl https://raw.github.com/wongyouth/vimfiles/master/install.sh | bash
+</span></code></pre></td></tr></table></div></figure>
+
<h2>安装<code>ruby</code>环境管理工具<code>rbenv</code></h2>
-<pre><code>curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
-rbenv bootstrap-ubuntu-12-04
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
+</span><span class='line'>rbenv bootstrap-ubuntu-12-04
+</span></code></pre></td></tr></table></div></figure>
+
<h2>安装ruby1.9</h2>
-<pre><code>rbenv install 1.9.3-p194
-rbenv global 1.9.3-p194
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>rbenv install 1.9.3-p194
+</span><span class='line'>rbenv global 1.9.3-p194
+</span></code></pre></td></tr></table></div></figure>
+
<h2>更新<code>gem</code> 并安装 <code>bundler</code> <code>rake</code></h2>
-<pre><code>gem update --system
-gem install bundler rake
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>gem update --system
+</span><span class='line'>gem install bundler rake
+</span></code></pre></td></tr></table></div></figure>
+
<h2>更新<code>rbenv</code>的<code>shim</code>,使<code>rake</code>, <code>bundle</code>命令可以直接使用</h2>
-<pre><code>rbenv rehash
-</code></pre>
+<figure class='code'><figcaption><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+</pre></td><td class='code'><pre><code class='sh'><span class='line'>rbenv rehash
+</span></code></pre></td></tr></table></div></figure>
+
+
+
]]></content>
</entry>
@@ -179,10 +204,11 @@ gem install bundler rake
<p>运行环境 ruby</p>
<pre><code>gem install capybara # install capybara
-ruby za.rb # za.rb脚本
+ruby brick.rb
</code></pre>
-<figure class='code'><figcaption><span>za.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<figure class='code'><figcaption><span> (brick.rb)</span> <a href='http://wongyouth.github.com/downloads/code/brick.rb'>download</a></figcaption>
+ <div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
<span class='line-number'>3</span>
<span class='line-number'>4</span>
@@ -243,7 +269,7 @@ ruby za.rb # za.rb脚本
<span class='line-number'>59</span>
<span class='line-number'>60</span>
<span class='line-number'>61</span>
-</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="c1"># encoding: utf-8</span>
+</pre></td><td class='code'><pre><code class='rb'><span class='line'><span class="c1"># encoding: utf-8</span>
</span><span class='line'><span class="c1">#</span>
</span><span class='line'><span class="c1"># 淘宝砸金蛋脚本</span>
</span><span class='line'><span class="c1"># 当前目录建立 tmall 文件放入帐号:密码,分号隔开</span>
@@ -275,13 +301,13 @@ ruby za.rb # za.rb脚本
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
</span><span class='line'><span class="k">def</span> <span class="nf">setup_frame</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
-</span><span class='line'> <span class="n">setup_jquery</span>
+</span><span class='line'> <span class="n">jquerify</span>
</span><span class='line'> <span class="n">page</span><span class="o">.</span><span class="n">execute_script</span> <span class="sx">%Q{</span>
</span><span class='line'><span class="sx"> jQuery(&#39;iframe&#39;).attr(&#39;name&#39;, &#39;</span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="sx">&#39;);</span>
</span><span class='line'><span class="sx"> }</span>
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">setup_jquery</span>
+</span><span class='line'><span class="k">def</span> <span class="nf">jquerify</span>
</span><span class='line'> <span class="n">page</span><span class="o">.</span><span class="n">execute_script</span> <span class="sx">%Q{</span>
</span><span class='line'><span class="sx"> var jq = document.createElement(&#39;script&#39;);</span>
</span><span class='line'><span class="sx"> jq.src = &quot;http://code.jquery.com/jquery-latest.min.js&quot;;</span>
@@ -291,7 +317,7 @@ ruby za.rb # za.rb脚本
</span><span class='line'> <span class="nb">sleep</span> <span class="mi">2</span>
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">za</span>
+</span><span class='line'><span class="k">def</span> <span class="nf">brick</span>
</span><span class='line'> <span class="n">visit</span><span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">)</span>
</span><span class='line'> <span class="mi">10000</span><span class="o">.</span><span class="n">downto</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span>
</span><span class='line'> <span class="n">find</span><span class="p">(</span><span class="s1">&#39;#J_Vol_Brick_Btn&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">click</span>
@@ -303,11 +329,9 @@ ruby za.rb # za.rb脚本
</span><span class='line'><span class="k">end</span>
</span><span class='line'>
</span><span class='line'><span class="n">login</span>
-</span><span class='line'><span class="n">za</span>
+</span><span class='line'><span class="n">brick</span>
</span></code></pre></td></tr></table></div></figure>
-
-
]]></content>
</entry>
@@ -24,19 +24,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com">
+ <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
- <script src="/javascripts/jiathis.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="Wongyouth's Blog" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<script src="/javascripts/jiathis.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-30466888-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
</head>
@@ -223,7 +235,7 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<span class="categories">
- <a class='category' href='/blog/categories/blog/'>blog</a>, <a class='category' href='/blog/categories/github/'>github</a>
+ <a class='category' href='/blog/categories/github/'>github</a>, <a class='category' href='/blog/categories/octopress/'>octopress</a>
</span>
@@ -278,7 +290,7 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<aside class="sidebar">
<section>
- <h1>Recent Posts</h1>
+ <h1>近期博文</h1>
<ul id="recent_posts">
<li class="post">
@@ -303,6 +315,14 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
</ul>
</section>
+<section>
+ <h1>分类</h1>
+ <ul id="category-list"><li><a href='/blog/categories/git'>git (2)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>Postgresql (1)</a></li><li><a href='/blog/categories/rails'>Rails (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (2)</a></li><li><a href='/blog/categories/ubuntu'>Ubuntu (1)</a></li></ul>
+</section>
+<section>
+ <h1>近期评论</h1>
+ <script type="text/javascript" src="http://wongyouth.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=0&avatar_size=32&excerpt_length=200"></script>
+</section>
<section>
<h1>GitHub Repos</h1>
@@ -19,19 +19,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/21/install-ruby-environment-on-ubuntu">
+ <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/21/install-ruby-environment-on-ubuntu/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
- <script src="/javascripts/jiathis.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="Wongyouth's Blog" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<script src="/javascripts/jiathis.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-30466888-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
</head>
@@ -269,7 +281,7 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<aside class="sidebar">
<section>
- <h1>Recent Posts</h1>
+ <h1>近期博文</h1>
<ul id="recent_posts">
<li class="post">
@@ -294,6 +306,14 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
</ul>
</section>
+<section>
+ <h1>分类</h1>
+ <ul id="category-list"><li><a href='/blog/categories/git'>git (2)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>Postgresql (1)</a></li><li><a href='/blog/categories/rails'>Rails (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (2)</a></li><li><a href='/blog/categories/ubuntu'>Ubuntu (1)</a></li></ul>
+</section>
+<section>
+ <h1>近期评论</h1>
+ <script type="text/javascript" src="http://wongyouth.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=0&avatar_size=32&excerpt_length=200"></script>
+</section>
<section>
<h1>GitHub Repos</h1>
@@ -18,19 +18,31 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/26/git-branch">
+ <link rel="canonical" href="http://wongyouth.github.com/blog/2012/04/26/git-branch/">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="/javascripts/ender.js"></script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
- <script src="/javascripts/jiathis.js" type="text/javascript"></script>
<link href="/atom.xml" rel="alternate" title="Wongyouth's Blog" type="application/atom+xml">
<!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<script src="/javascripts/jiathis.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-30466888-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
</head>
@@ -229,7 +241,7 @@ <h1 class="entry-title">Git分支常用操作</h1>
<aside class="sidebar">
<section>
- <h1>Recent Posts</h1>
+ <h1>近期博文</h1>
<ul id="recent_posts">
<li class="post">
@@ -254,6 +266,14 @@ <h1 class="entry-title">Git分支常用操作</h1>
</ul>
</section>
+<section>
+ <h1>分类</h1>
+ <ul id="category-list"><li><a href='/blog/categories/git'>git (2)</a></li><li><a href='/blog/categories/github'>github (1)</a></li><li><a href='/blog/categories/octopress'>octopress (1)</a></li><li><a href='/blog/categories/postgresql'>Postgresql (1)</a></li><li><a href='/blog/categories/rails'>Rails (1)</a></li><li><a href='/blog/categories/ruby'>ruby (2)</a></li><li><a href='/blog/categories/ubuntu'>ubuntu (2)</a></li><li><a href='/blog/categories/ubuntu'>Ubuntu (1)</a></li></ul>
+</section>
+<section>
+ <h1>近期评论</h1>
+ <script type="text/javascript" src="http://wongyouth.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=0&avatar_size=32&excerpt_length=200"></script>
+</section>
<section>
<h1>GitHub Repos</h1>
Oops, something went wrong.

0 comments on commit 8d768f9

Please sign in to comment.