2012-05-07-reinit-and-jekyll.org (1849B)
1 #+title: Reinit and Jekyll 2 #+date: <2012-05-07 Mon> 3 #+filetags: website jekyll 4 #+setupfile: ../templates/post.org 5 6 * Introduction 7 8 Two weeks ago, my /online/ personal server has been attacked and, 9 somehow, died. I'm in the process of re-installation of it but I'm going 10 to hardened a bit the security on it. Anyway, this crash meant that 11 every piece of site I maintain has been down. That's why I moved this 12 /identity site/ on the github pages, using a CNAME ; That way I can 13 crash as much as I want my server(s), this page should still be up for a 14 while. 15 16 And I'm switching on Jekyll for this website as It is supported by 17 Github page, easy to use and easy to deploy elsewhere (if one day I want 18 to move from Github). 19 20 The rest of the post is going to be used as a /sandbox/ post to test the 21 site styles. 22 23 #+BEGIN_QUOTE 24 This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, 25 consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. 26 Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. 27 28 Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse 29 id sem consectetuer libero luctus adipiscing. 30 #+END_QUOTE 31 32 ** Highlight 33 :PROPERTIES: 34 :CUSTOM_ID: highlight 35 :ID: 6e1687a1-6898-4fe1-ac56-53b6e1e1f310 36 :END: 37 38 #+begin_src ruby 39 def foo puts 'foo' end 40 #+end_src 41 42 Some bash script... 43 44 #+begin_src bash 45 #!/bin/bash 46 update_gems() { 47 echo "Update gems for all versions ? (y/N)" 48 read UPDATE_GEMS 49 test -z "${UPDATE_GEMS}" && UPDATE_GEMS="n" 50 51 if test "${UPDATE_GEMS}" = "y"; then 52 for version in =ls --color=never $HOME/.rbenv/versions=; do 53 echo "Updating ${version%/}" 54 RBENV_VERSION="${version%/}" rbenv exec gem update 55 RBENV_VERSION="${version%/}" rbenv exec gem install bundler 56 done 57 fi 58 } 59 60 update_gems 61 #+end_src