index.html (6689B)
1 <!DOCTYPE html> 2 3 <html lang="en"> 4 5 <head> 6 <meta charset="utf-8"> 7 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 8 9 <link rel="start" href="https://vincent.demeester.fr" /> 10 11 <title>Vincent Demeester</title> 12 <link rel="canonical" href="https://vincent.demeester.fr/posts/2012-05-07-reinit-and-jekyll/"> 13 <link href="https://vincent.demeester.fr/index.xml" rel="alternate" type="application/rss+xml" title="Vincent Demeester" /> 14 15 <link rel="openid.server" href="https://indieauth.com/openid" /> 16 <link rel="openid.delegate" href="http://vincent.demeester.fr/" /> 17 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> 18 19 <link rel="stylesheet" href="/css/screen.css" type="text/css" /> 20 <link rel="stylesheet" href="/css/sbrain.css" type="text/css" /> 21 <link rel="stylesheet" href="/css/syntax.css" type="text/css" /> 22 23 </head> 24 25 <body lang="" class="gray"> 26 27 28 29 30 31 32 <div id="main-container"> 33 <div id="page"> 34 <article class="post"> 35 <header> 36 <h1 class="emphnext">Reinit and Jekyll</h1><a href='https://vincent.demeester.fr/posts/2012-05-07-reinit-and-jekyll/'></a> 37 <address class="signature"> 38 <span class="date">Mon, 7 May, 2012</span> 39 <span class="words">(300 Words)</span> 40 </address> 41 <ul class="tag_box inline"> 42 43 <li class="category"><a href="/categories/#me">me</a></li> 44 45 46 47 48 49 <li class="tag tag-intro"><a href="/tags/#intro">intro<span>1</span></a></li> 50 51 52 <li class="tag tag-jekyll"><a href="/tags/#jekyll">jekyll<span>4</span></a></li> 53 54 <br/> 55 56 </ul> 57 </header> 58 59 60 61 62 63 <p>Two weeks ago, my <em>online</em> personal server has been attacked and, somehow, died. I’m in the process 64 of re-installation of it but I’m going to hardened a bit the security on it. Anyway, this crash meant 65 that every piece of site I maintain has been down. That’s why I moved this <em>identity site</em> on the 66 github pages, using a CNAME ; That way I can crash as much as I want my server(s), this page should 67 still be up for a while.</p> 68 69 <p>And I’m switching on Jekyll for this website as It is supported by Github page, easy to use and easy 70 to deploy elsewhere (if one day I want to move from Github).</p> 71 72 <p>The rest of the post is going to be used as a <em>sandbox</em> post to test the site styles.</p> 73 74 <blockquote> 75 <p>This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, 76 consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. 77 Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.</p> 78 79 <p>Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse 80 id sem consectetuer libero luctus adipiscing.</p> 81 </blockquote> 82 83 <h2 id="highlight">Highlight</h2> 84 85 <div class="highlight"><pre class="chroma"><code class="language-ruby" data-lang="ruby"><span class="k">def</span> <span class="nf">foo</span> 86 <span class="nb">puts</span> <span class="s1">'foo'</span> 87 <span class="k">end</span></code></pre></div> 88 89 <p>Some bash script…</p> 90 91 <div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash"><span class="cp">#!/bin/bash 92 </span><span class="cp"></span>update_gems<span class="o">()</span> <span class="o">{</span> 93 <span class="nb">echo</span> <span class="s2">"Update gems for all versions ? (y/N)"</span> 94 <span class="nb">read</span> UPDATE_GEMS 95 <span class="nb">test</span> -z <span class="s2">"</span><span class="si">${</span><span class="nv">UPDATE_GEMS</span><span class="si">}</span><span class="s2">"</span> <span class="o">&&</span> <span class="nv">UPDATE_GEMS</span><span class="o">=</span><span class="s2">"n"</span> 96 <span class="k">if</span> <span class="nb">test</span> <span class="s2">"</span><span class="si">${</span><span class="nv">UPDATE_GEMS</span><span class="si">}</span><span class="s2">"</span> <span class="o">=</span> <span class="s2">"y"</span><span class="p">;</span> <span class="k">then</span> 97 <span class="k">for</span> version in <span class="sb">`</span>ls --color<span class="o">=</span>never <span class="nv">$HOME</span>/.rbenv/versions<span class="sb">`</span><span class="p">;</span> <span class="k">do</span> 98 <span class="nb">echo</span> <span class="s2">"Updating </span><span class="si">${</span><span class="nv">version</span><span class="p">%/</span><span class="si">}</span><span class="s2">"</span> 99 <span class="nv">RBENV_VERSION</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">version</span><span class="p">%/</span><span class="si">}</span><span class="s2">"</span> rbenv <span class="nb">exec</span> gem update 100 <span class="nv">RBENV_VERSION</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">version</span><span class="p">%/</span><span class="si">}</span><span class="s2">"</span> rbenv <span class="nb">exec</span> gem install bundler 101 <span class="k">done</span> 102 <span class="k">fi</span> 103 <span class="o">}</span> 104 105 update_gems</code></pre></div> 106 107 108 </article> 109 <hr /> 110 <div class="prev-next"> 111 112 <a class="paging-link prev" href="/posts/2012-05-08-gitolite-quick-and-dirty-mirror/" title="Gitolite quick and dirty mirror">← Previous post</a> 113 114 115 116 <a class="paging-link next" href="/about/" title="About">Next post →</a> 117 118 </div> 119 120 </div> 121 </div> 122 123 <footer> 124 <nav> 125 126 <a href="/">home</a> 127 <span class="text-muted"> | </span> 128 129 <a href="/about">about</a> 130 <span class="text-muted"> | </span> 131 132 <a href="/archive">archive</a> 133 <span class="text-muted"> | </span> 134 135 <a href="/categories">categories</a> 136 <span class="text-muted"> | </span> 137 138 <a href="/tags">tags</a> 139 <span class="text-muted"> | </span> 140 141 <a href="https://twitter.com/vdemeest">twitter</a> 142 <span class="text-muted"> | </span> 143 144 <a href="https://github.com/vdemeester">github</a> 145 <span class="text-muted"> | </span> 146 147 <a href="https://vincent.demeester.fr/index.xml">rss</a> 148 </nav> 149 <br/> 150 <address> 151 <span class="copyright"> 152 Content and design by Vincent Demeester 153 (<a rel="licence" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Some rights reserved</a>) 154 </span><br /> 155 <span class="engine"> 156 Powered by <a href="https://gohugo.io/">Hugo</a> and <a href="https://github.com/kaushalmodi/ox-hugo/">ox-hugo</a> 157 </span> 158 </address> 159 </footer> 160 </body> 161