Permalink
Browse files

convert back to md

  • Loading branch information...
1 parent 585b48b commit 8d7d02f42c3947f756c18cb4d37d9d97fbd0d27d @franckcuny committed Aug 10, 2016
Showing with 5,655 additions and 8,352 deletions.
  1. +44 −0 posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md
  2. +0 −64 posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.org
  3. +16 −0 posts/2008-06-17-vim-function-for-creating-new-task.md
  4. +0 −17 posts/2008-06-17-vim-function-for-creating-new-task.org
  5. +29 −0 posts/2008-06-18-keep-your-zshrc-simple.md
  6. +0 −32 posts/2008-06-18-keep-your-zshrc-simple.org
  7. +24 −0 posts/2008-06-20-mirror-cpan.md
  8. +0 −31 posts/2008-06-20-mirror-cpan.org
  9. +15 −0 posts/2008-06-21-debug-your-dbix-class-queries.md
  10. +0 −16 posts/2008-06-21-debug-your-dbix-class-queries.org
  11. +18 −0 posts/2008-06-24-ack.md
  12. +0 −28 posts/2008-06-24-ack.org
  13. +32 −0 posts/2008-06-26-git-branch-everywhere.md
  14. +0 −36 posts/2008-06-26-git-branch-everywhere.org
  15. +39 −0 posts/2008-06-27-dotfiles-and-scm.md
  16. +0 −50 posts/2008-06-27-dotfiles-and-scm.org
  17. +19 −0 posts/2008-06-30-upgrading-to-perl-5.10.md
  18. +0 −19 posts/2008-06-30-upgrading-to-perl-5.10.org
  19. +8 −0 posts/2008-08-08-customize-your-mysql-prompt.md
  20. +0 −9 posts/2008-08-08-customize-your-mysql-prompt.org
  21. +22 −0 posts/2008-08-19-offlineimap-on-osx.md
  22. +0 −23 posts/2008-08-19-offlineimap-on-osx.org
  23. +39 −0 posts/2008-12-05-vim-and-git.md
  24. +0 −42 posts/2008-12-05-vim-and-git.org
  25. +9 −0 posts/2009-02-17-tidify-a-json-in-vim.md
  26. +0 −12 posts/2009-02-17-tidify-a-json-in-vim.org
  27. +15 −0 posts/2009-03-08-belgian-perl-workshop-09.md
  28. +0 −42 posts/2009-03-08-belgian-perl-workshop-09.org
  29. +25 −0 posts/2009-04-14-git-and-prove.md
  30. +0 −27 posts/2009-04-14-git-and-prove.org
  31. +11 −0 posts/2009-04-25-controll-xmms2-from-vim.md
  32. +0 −12 posts/2009-04-25-controll-xmms2-from-vim.org
  33. +133 −0 posts/2009-04-27-a-simple-feed-aggregator-with-modern-perl-part-1.md
  34. +0 −179 posts/2009-04-27-a-simple-feed-aggregator-with-modern-perl-part-1.org
  35. +244 −0 posts/2009-04-28-a-simple-feed-aggregator-with-modern-perl-part-2.md
  36. +0 −302 posts/2009-04-28-a-simple-feed-aggregator-with-modern-perl-part-2.org
  37. +1 −0 posts/2009-05-04-rtgi-and-perl-conferences.md
  38. +0 −5 posts/2009-05-04-rtgi-and-perl-conferences.org
  39. +253 −0 posts/2009-05-06-a-simple-feed-aggregator-with-modern-perl-part-3.md
  40. +0 −278 posts/2009-05-06-a-simple-feed-aggregator-with-modern-perl-part-3.org
  41. +49 −73 ...tor-with-modern-perl-part-4.org → 2009-05-13-a-simple-feed-aggregator-with-modern-perl-part-4.md}
  42. +28 −46 ...with-modern-perl-part-4.1.org → 2009-05-18-a-simple-feed-aggregator-with-modern-perl-part-4.1.md}
  43. +69 −0 posts/2009-05-22-modules-i-like---module-setup.md
  44. +0 −83 posts/2009-05-22-modules-i-like---module-setup.org
  45. +19 −0 posts/2009-05-30-catalystx-dispatcher-asgraph.md
  46. +0 −31 posts/2009-05-30-catalystx-dispatcher-asgraph.org
  47. +94 −0 posts/2009-06-06-modules-i-like-web-scraper.md
  48. +0 −111 posts/2009-06-06-modules-i-like-web-scraper.org
  49. +44 −0 posts/2009-06-12-shape-of-cpan.md
  50. +0 −69 posts/2009-06-12-shape-of-cpan.org
  51. +7 −9 posts/{2009-06-17-xmobar-on-debian-sid.org → 2009-06-17-xmobar-on-debian-sid.md}
  52. +122 −0 posts/2009-06-22-modules-i-like-getopt-long-and-moosex-getopt.md
  53. +0 −137 posts/2009-06-22-modules-i-like-getopt-long-and-moosex-getopt.org
  54. +18 −0 posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
  55. +0 −28 posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.org
  56. +40 −0 posts/2009-06-30-private-and-protected-methods-with-moose.md
  57. +0 −51 posts/2009-06-30-private-and-protected-methods-with-moose.org
  58. +3 −0 posts/2009-07-07-cpan-and-auto-install.md
  59. +0 −10 posts/2009-07-07-cpan-and-auto-install.org
  60. +11 −0 posts/2009-07-16-cpanhq-and-dependencies-graph.md
  61. +0 −27 posts/2009-07-16-cpanhq-and-dependencies-graph.org
  62. +32 −0 posts/2009-07-26-apply-a-role-to-a-moose-object.md
  63. +0 −32 posts/2009-07-26-apply-a-role-to-a-moose-object.org
  64. +1 −0 posts/2009-07-26-cpan-explorer.md
  65. +0 −7 posts/2009-07-26-cpan-explorer.org
  66. +25 −0 posts/2009-07-28-cpan-explorer-update-and-three-new-maps.md
  67. +0 −48 posts/2009-07-28-cpan-explorer-update-and-three-new-maps.org
  68. +7 −11 posts/{2009-08-23-perl-5.10.1-released.org → 2009-08-23-perl-5.10.1-released.md}
  69. +11 −0 posts/2009-08-23-perl5lib-and-zsh.md
  70. +0 −11 posts/2009-08-23-perl5lib-and-zsh.org
  71. +5 −0 posts/2009-08-31-osdc.fr.md
  72. +0 −9 posts/2009-08-31-osdc.fr.org
  73. +3 −0 posts/2009-10-03-teh-batmoose-at-osdc.fr.md
  74. +0 −6 posts/2009-10-03-teh-batmoose-at-osdc.fr.org
  75. +242 −0 posts/2009-11-09-modules-i-like-devel-declare.md
  76. +0 −265 posts/2009-11-09-modules-i-like-devel-declare.org
  77. +55 −79 ...the-peer-to-peer-bug-tracking-system.org → 2009-11-17-sd-the-peer-to-peer-bug-tracking-system.md}
  78. +147 −0 posts/2009-12-13-riak-perl-and-kiokudb.md
  79. +0 −176 posts/2009-12-13-riak-perl-and-kiokudb.org
  80. +103 −0 posts/2009-12-20-moosex-net-api.md
  81. +0 −137 posts/2009-12-20-moosex-net-api.org
  82. +19 −38 ...han-two-hours.org → 2009-12-21-tatsumaki-or-how-to-write-a-nice-webapp-in-less-than-two-hours.md}
  83. +38 −0 posts/2010-01-31-dancer-1.130.md
  84. +0 −55 posts/2010-01-31-dancer-1.130.org
  85. +14 −0 posts/2010-02-03-sd-and-github.md
  86. +0 −16 posts/2010-02-03-sd-and-github.org
  87. +9 −0 posts/2010-03-07-github-explorer-a-preview.md
  88. +0 −33 posts/2010-03-07-github-explorer-a-preview.org
  89. +161 −0 posts/2010-03-19-easily-create-rest-interface-with-the-dancer-1.170.md
  90. +0 −169 posts/2010-03-19-easily-create-rest-interface-with-the-dancer-1.170.org
  91. +123 −0 posts/2010-03-25-github-explorer.md
  92. +0 −236 posts/2010-03-25-github-explorer.org
  93. +23 −0 posts/2010-04-02-github-poster.md
  94. +0 −39 posts/2010-04-02-github-poster.org
  95. +168 −0 posts/2010-04-03-more-fun-with-tatsumaki-and-plack.md
  96. +0 −209 posts/2010-04-03-more-fun-with-tatsumaki-and-plack.org
  97. +84 −0 posts/2010-04-14-presque-a-redis-tatsumaki-based-message-queue.md
  98. +0 −104 posts/2010-04-14-presque-a-redis-tatsumaki-based-message-queue.org
  99. +134 −0 posts/2010-04-19-the-dancer-ecosystem.md
  100. +0 −160 posts/2010-04-19-the-dancer-ecosystem.org
  101. +36 −59 posts/{2010-06-10-moosex-net-api-update.org → 2010-06-10-moosex-net-api-update.md}
  102. +23 −0 posts/2010-06-13-fpw2010-summary.md
  103. +0 −43 posts/2010-06-13-fpw2010-summary.org
  104. +25 −0 posts/2010-06-20-dancer-meeting.md
  105. +0 −46 posts/2010-06-20-dancer-meeting.org
  106. +35 −0 posts/2010-06-25-presque-new_features.md
  107. +0 −60 posts/2010-06-25-presque-new_features.org
  108. +7 −0 posts/2010-06-30-github-poster-to-ship.md
  109. +0 −15 posts/2010-06-30-github-poster-to-ship.org
  110. +122 −0 posts/2010-09-10-dancer-summer-of-code.md
  111. +0 −170 posts/2010-09-10-dancer-summer-of-code.org
  112. +160 −0 posts/2010-09-17-spore.md
  113. +0 −232 posts/2010-09-17-spore.org
  114. +47 −0 posts/2010-09-27-jitterbug.md
  115. +0 −81 posts/2010-09-27-jitterbug.org
  116. +32 −0 posts/2010-10-04-how-to-contribute-to-dancer.md
  117. +0 −57 posts/2010-10-04-how-to-contribute-to-dancer.org
  118. +100 −0 posts/2010-10-12-osdcfr.md
  119. +0 −142 posts/2010-10-12-osdcfr.org
  120. +135 −186 posts/{2010-10-20-spore-update.org → 2010-10-20-spore-update.md}
  121. +21 −0 posts/2010-10-25-perl-moderne.md
  122. +0 −67 posts/2010-10-25-perl-moderne.org
  123. +166 −0 posts/2010-11-22-vagrant-rocks.md
  124. +0 −218 posts/2010-11-22-vagrant-rocks.org
  125. +7 −0 posts/2010-12-06-fpw2O11.md
  126. +0 −18 posts/2010-12-06-fpw2O11.org
  127. +69 −0 posts/2011-02-20-psgichrome.md
  128. +0 −82 posts/2011-02-20-psgichrome.org
  129. +70 −0 posts/2011-03-06-how_to_use_github_effectively_for_your_project.md
  130. +0 −128 posts/2011-03-06-how_to_use_github_effectively_for_your_project.org
  131. +61 −0 posts/2011-04-22-new_job.md
  132. +0 −93 posts/2011-04-22-new_job.org
  133. +25 −0 posts/2011-05-08-french_perl_workshop.md
  134. +0 −40 posts/2011-05-08-french_perl_workshop.org
  135. +323 −0 posts/2011-06-20-stargit.md
  136. +0 −459 posts/2011-06-20-stargit.org
  137. +133 −0 posts/2012-02-17-HTTP_requests_with_python.md
  138. +0 −202 posts/2012-02-17-HTTP_requests_with_python.org
  139. +27 −0 posts/2012-10-31-virtualenv-and-checkouts.md
  140. +0 −48 posts/2012-10-31-virtualenv-and-checkouts.org
  141. +27 −0 posts/2012-11-14-two-tech-talks-in-a-day.md
  142. +0 −78 posts/2012-11-14-two-tech-talks-in-a-day.org
  143. +33 −0 posts/2012-11-27-ansible-and-chef.md
  144. +0 −90 posts/2012-11-27-ansible-and-chef.org
  145. +54 −0 posts/2012-11-28-perl-redis-and-anyevent-at-craiglist.md
  146. +0 −107 posts/2012-11-28-perl-redis-and-anyevent-at-craiglist.org
  147. +18 −0 posts/2012-12-16-about-devops.md
  148. +0 −41 posts/2012-12-16-about-devops.org
  149. +38 −0 posts/2013-01-10-carbons-manhole.md
  150. +0 −69 posts/2013-01-10-carbons-manhole.org
  151. +29 −0 posts/2013-01-14-where-im-excited-about-a-keyboard.md
  152. +0 −82 posts/2013-01-14-where-im-excited-about-a-keyboard.org
  153. +100 −0 posts/2013-01-28-let-s-talk-about-graphite.md
  154. +0 −184 posts/2013-01-28-let-s-talk-about-graphite.org
  155. +15 −0 posts/2013-02-19-should-I-read-the-code.md
  156. +0 −47 posts/2013-02-19-should-I-read-the-code.org
  157. +29 −0 posts/2013-02-24-practical-joke.md
  158. +0 −67 posts/2013-02-24-practical-joke.org
  159. +5 −0 posts/2013-07-24-patch.pm.md
  160. +0 −12 posts/2013-07-24-patch.pm.org
  161. +19 −0 posts/2013-07-28-patch.pm-report.md
  162. +0 −52 posts/2013-07-28-patch.pm-report.org
  163. +48 −64 posts/{2014-01-04-setting-up-cgit-with-ansible.org → 2014-01-04-setting-up-cgit-with-ansible.md}
  164. +131 −0 posts/2014-01-11-ansible-role-for-bittorrent-sync.md
  165. +0 −159 posts/2014-01-11-ansible-role-for-bittorrent-sync.org
  166. +49 −0 posts/2014-02-01-provision-an-ec2-instance-with-vagrant-and-ansible.md
  167. +0 −101 posts/2014-02-01-provision-an-ec2-instance-with-vagrant-and-ansible.org
  168. +89 −0 posts/2014-02-15-cursive-nrepl-cljs-oh-my.md
  169. +0 −155 posts/2014-02-15-cursive-nrepl-cljs-oh-my.org
  170. +13 −0 posts/2014-03-23-golang-for-sysadmin.md
  171. +0 −39 posts/2014-03-23-golang-for-sysadmin.org
  172. +39 −0 posts/2014-08-08-google-is-using-https-as-a-ranking-signal.md
  173. +0 −70 posts/2014-08-08-google-is-using-https-as-a-ranking-signal.org
  174. +2 −14 posts/{2014-08-18-new-job.org → 2014-08-18-new-job.md}
  175. +108 −0 posts/2014-11-20-opening-a-file.md
  176. +0 −176 posts/2014-11-20-opening-a-file.org
  177. +25 −0 posts/2015-01-02-on-video-games.md
  178. +0 −80 posts/2015-01-02-on-video-games.org
  179. +41 −0 posts/2015-01-31-ubuntu-on-dell-xps13.md
  180. +0 −74 posts/2015-01-31-ubuntu-on-dell-xps13.org
  181. +45 −0 posts/2015-07-25-dont-remove-white-spaces.md
  182. +0 −65 posts/2015-07-25-dont-remove-white-spaces.org
  183. +15 −0 posts/2015-08-22-deployment-on-friday.md
  184. +0 −36 posts/2015-08-22-deployment-on-friday.org
  185. +15 −0 posts/2015-09-03-talking-about-technology.md
  186. +0 −56 posts/2015-09-03-talking-about-technology.org
  187. +33 −0 posts/2015-12-28-books-of-2015.md
  188. +0 −145 posts/2015-12-28-books-of-2015.org
  189. +107 −0 readme.md
  190. +0 −104 readme.org
@@ -0,0 +1,44 @@
+There is different reasons to want a personal wiki on your machine:
+
+- privacy
+- having it everywhere
+
+I've tested a few wikis engines, like [tiddlywiki](http://tiddlywiki.com/), but I've found nothing that was really what I wanted. The main inconveniance is the need to use a webbrowser. A browser is not a text processor, so it's really painfull to use them for writing.
+
+I've started to try to use vim as wiki. Why would I want to use something like vim for this ? well, it's plain text (easy to grep, or to write script for manipulating data), application independent, it's a real text processor, you can customize it, and most importantly, I know how to use it, ...
+
+I've got a **wiki** directory in my home directory, with all my files in it. I use git to track versions of it (you can use svn if you prefer, there is no difference for this usage). In my .vimrc, i've added this instruction: `set exrc`.
+
+In my wiki directory, i've got another .vimrc with some specific mapping:
+
+``` viml
+map ,I <esc>:e index.mkd <cr>
+map ,T <esc>:e todo.mkd <cr>
+map ,S <esc>:e someday.mkd <cr>
+map ,c <esc>:s/^ /c/<cr>
+map ,w <esc>:s/^ /w/<cr>
+map ,x <esc>:s/^ /x/<cr>
+map gf :e <cfile>.mkd<cr> " open page
+map <backspace> :bp<cr>
+imap \date <c-R>=strftime("%Y-%m-%d")<cr>
+set tabstop=2 " Number of spaces <tab> counts for.
+set shiftwidth=2 " Unify
+set softtabstop=2 " Unify
+```
+
+I organize my files in directory. I've got a **work**, **lists**, **recipes**, **misc**, ... and I put my files in this directory.
+
+I've got an index page, with links to main section. I don't have wikiword in camelcase or things like that, so if i want to put a link to a page, I just wrote the link this way **dir\_name/page\_name**, then, i juste have to hit `gf` on this link to open the page. I also use this place as a todo list manager. I've got one paragrah per day, like this :
+
+```
+2008-06-14
+ - [@context] task 1
+ - [@context] task 2
+ ...
+```
+
+and a bunch of vim mapping for marking complete (`,c`), work in progress (`,w`) or canceled (`,x`).
+
+If i don't have a deadline for a particular task, I use a 'someday' file, where the task is put with a context.
+
+The good things with markdown, is that the syntax is easy to use, and it's easy to convert to HTML.
@@ -1,64 +0,0 @@
-There is different reasons to want a personal wiki on your machine:
-
-- privacy
-- having it everywhere
-
-I've tested a few wikis engines, like
-[[http://tiddlywiki.com/][tiddlywiki]], but I've found nothing that was
-really what I wanted. The main inconveniance is the need to use a
-webbrowser. A browser is not a text processor, so it's really painfull
-to use them for writing.
-
-I've started to try to use vim as wiki. Why would I want to use
-something like vim for this ? well, it's plain text (easy to grep, or to
-write script for manipulating data), application independent, it's a
-real text processor, you can customize it, and most importantly, I know
-how to use it, ...
-
-I've got a *wiki* directory in my home directory, with all my files in
-it. I use git to track versions of it (you can use svn if you prefer,
-there is no difference for this usage). In my .vimrc, i've added this
-instruction: =set exrc=.
-
-In my wiki directory, i've got another .vimrc with some specific
-mapping:
-
-#+BEGIN_EXAMPLE
- map ,I <esc>:e index.mkd <cr>
- map ,T <esc>:e todo.mkd <cr>
- map ,S <esc>:e someday.mkd <cr>
- map ,c <esc>:s/^ /c/<cr>
- map ,w <esc>:s/^ /w/<cr>
- map ,x <esc>:s/^ /x/<cr>
- map gf :e <cfile>.mkd<cr> " open page
- map <backspace> :bp<cr>
- imap \date <c-R>=strftime("%Y-%m-%d")<cr>
- set tabstop=2 " Number of spaces <tab> counts for.
- set shiftwidth=2 " Unify
- set softtabstop=2 " Unify
-#+END_EXAMPLE
-
-I organize my files in directory. I've got a *work*, *lists*, *recipes*,
-*misc*, ... and I put my files in this directory.
-
-I've got an index page, with links to main section. I don't have
-wikiword in camelcase or things like that, so if i want to put a link to
-a page, I just wrote the link this way *dir\_name/page\_name*, then, i
-juste have to hit =gf= on this link to open the page. I also use this
-place as a todo list manager. I've got one paragrah per day, like this :
-
-#+BEGIN_EXAMPLE
- 2008-06-14
- - [@context] task 1
- - [@context] task 2
- ...
-#+END_EXAMPLE
-
-and a bunch of vim mapping for marking complete (=,c=), work in progress
-(=,w=) or canceled (=,x=).
-
-If i don't have a deadline for a particular task, I use a 'someday'
-file, where the task is put with a context.
-
-The good things with markdown, is that the syntax is easy to use, and
-it's easy to convert to HTML.
@@ -0,0 +1,16 @@
+I've added a new function to my .vimrc for creating quickly a new task:
+
+``` viml
+function! CreateTask()
+ let context = input("Enter context: ")
+ exe ":set noautoindent"
+ exe "normal 0"
+ exe "normal o \<tab>- [@".context."] "
+ exe ":set autoindent"
+ exe ":startinsert"
+endfunction
+```
+
+and then this mapping: `map ct <esc>:call CreateTask()<cr>`
+
+Now, I've just to hit `,n` and type my context. A new line will be inserted and I just have to create my task.
@@ -1,17 +0,0 @@
-I've added a new function to my .vimrc for creating quickly a new task:
-
-#+BEGIN_EXAMPLE
- function! CreateTask()
- let context = input("Enter context: ")
- exe ":set noautoindent"
- exe "normal 0"
- exe "normal o \<tab>- [@".context."] "
- exe ":set autoindent"
- exe ":startinsert"
- endfunction
-#+END_EXAMPLE
-
-and then this mapping: =map ct <esc>:call CreateTask()<cr>=
-
-Now, I've just to hit =,n= and type my context. A new line will be
-inserted and I just have to create my task.
@@ -0,0 +1,29 @@
+Keep your .zshrc simple. Mine looks like this :
+
+``` sh
+autoload -U compinit zrecompile
+zsh_cache=${HOME}/.zsh_cache
+mkdir -p $zsh_cache
+compinit -d $zsh_cache/zcomp-$HOST
+for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
+ zrecompile -p $f && rm -f $f.zwc.old
+done
+setopt extended_glob
+for zshrc_snipplet in ~/.zsh.d/S[0-9][0-9]*[^~] ; do
+ source $zshrc_snipplet
+done
+function history-all { history -E 1 }
+```
+
+and then, in my **.zsh.d** directory, I've got:
+
+* S10_zshopts
+* S20_environment
+* S30_binds
+* S40_completion
+* S50_aliases
+* S60_prompt
+* S71_ssh
+* S72_git
+
+All my aliases are in the same file, it's much easier to search/find/add.
@@ -1,32 +0,0 @@
-Keep your .zshrc simple. Mine looks like this :
-
-#+BEGIN_EXAMPLE
- autoload -U compinit zrecompile
- zsh_cache=${HOME}/.zsh_cache
- mkdir -p $zsh_cache
- compinit -d $zsh_cache/zcomp-$HOST
- for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
- zrecompile -p $f && rm -f $f.zwc.old
- done
- setopt extended_glob
- for zshrc_snipplet in ~/.zsh.d/S[0-9][0-9]*[^~] ; do
- source $zshrc_snipplet
- done
- function history-all { history -E 1 }
-#+END_EXAMPLE
-
-and then, in my *.zsh.d* directory, I've got:
-
-#+BEGIN_EXAMPLE
- S10_zshopts
- S20_environment
- S30_binds
- S40_completion
- S50_aliases
- S60_prompt
- S71_ssh
- S72_git
-#+END_EXAMPLE
-
-All my aliases are in the same file, it's much easier to
-search/find/add.
@@ -0,0 +1,24 @@
+For the last 10 months, I've been living with no internet connection at home (not on purpose, but this is another story), so I've tried to be as much as possible independent from the web. I've started to use git for being able to work off-line, I use Vim as a wiki on my computer, my blog engine for writing post off-line, ...
+
+As as perl developer, I use a lot the CPAN. So, I've start to mirror the CPAN on my computer. Here is how:
+
+First, you will need the minicpan: `cpan CPAN::Mini`.
+
+Then, edit a **.minicpanrc** file and add the following:
+
+``` bash
+local: /path/to/my/mirror/cpan
+remote: ftp://ftp.demon.co.uk/pub/CPAN/
+```
+
+And to finish, add this in your crontab:
+
+``` bash
+5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1
+```
+
+Everyday, at 14h05, your cpan will be updated.
+
+Now use the CPAN cli: `sudo cpan` and execute the following command `cpan[1]> o conf urllist unshift file:///path/to/my/mirror/cpan`
+
+And voilà, I've got my own minicpan on my computer, so I can install everything when I need it, being off-line or not.
@@ -1,31 +0,0 @@
-For the last 10 months, I've been living with no internet connection at
-home (not on purpose, but this is another story), so I've tried to be as
-much as possible independent from the web. I've started to use git for
-being able to work off-line, I use Vim as a wiki on my computer, my blog
-engine for writing post off-line, ...
-
-As as perl developer, I use a lot the CPAN. So, I've start to mirror the
-CPAN on my computer. Here is how:
-
-First, you will need the minicpan: =cpan CPAN::Mini=.
-
-Then, edit a *.minicpanrc* file and add the following:
-
-#+BEGIN_SRC sh
- local: /path/to/my/mirror/cpan
- remote: ftp://ftp.demon.co.uk/pub/CPAN/
-#+END_SRC
-
-And to finish, add this in your crontab:
-
-#+BEGIN_SRC sh
- 5 14 * * * /usr/local/bin/minicpan > /dev/null 2>&1
-#+END_SRC
-
-Everyday, at 14h05, your cpan will be updated.
-
-Now use the CPAN cli: =sudo cpan= and execute the following command
-=cpan[1]> o conf urllist unshift file:///path/to/my/mirror/cpan=
-
-And voilà, I've got my own minicpan on my computer, so I can install
-everything when I need it, being off-line or not.
@@ -0,0 +1,15 @@
+If you use DBIx::Class and want to see what the SQL generated looks like, you can set the environment variable **DBIC\_TRACE**.
+
+``` bash
+DBIC_TRACE=1 my_programme.pl
+```
+
+And all the SQL will be printed on **STDERR**.
+
+If you give a filename to the variable, like this
+
+``` bash
+DBIC_TRACE="1=/tmp/sql.debug"
+```
+
+all the statements will be printed in this file.
@@ -1,16 +0,0 @@
-If you use DBIx::Class and want to see what the SQL generated looks
-like, you can set the environment variable *DBIC\_TRACE*.
-
-#+BEGIN_SRC sh
- % DBIC_TRACE=1 my_programme.pl
-#+END_SRC
-
-And all the SQL will be printed on *STDERR*.
-
-If you give a filename to the variable, like this
-
-#+BEGIN_SRC sh
- % DBIC_TRACE="1=/tmp/sql.debug"
-#+END_SRC
-
-all the statements will be printed in this file.
@@ -0,0 +1,18 @@
+> Ack is designed as a replacement for 99% of the uses of grep.
+
+[Ack](https://metacpan.org/module/App::Ack) is a really nice tool for searching your source code. It's faster than grep because he already knows what you want : searching your sources files :)
+
+By default it will not search in SCM files (.git, .svn, ...), backups files (source.pl~, source.pl.bak, ...). You can specify what kind of files you want (`--perl`, `--cc`, ...), make it match some regex with `--match`, ...
+
+And you can set some defaults configuration in a .ackrc file ! Mine looks like this:
+
+``` bash
+--sort-files
+--color
+--context=1
+--follow
+```
+
+Check also: [vim with ack integration](http://use.perl.org/use.perl.org/_Ovid/journal/36430.html).
+
+Oh, and it's the only program with `--thpppt` option!
@@ -1,28 +0,0 @@
-#+BEGIN_QUOTE
- Ack is designed as a replacement for 99% of the uses of grep.
-#+END_QUOTE
-
-[[https://metacpan.org/module/App::Ack][Ack]] is a really nice tool for
-searching your source code. It's faster than grep because he already
-knows what you want : searching your sources files :)
-
-By default it will not search in SCM files (.git, .svn, ...), backups
-files (source.pl~, source.pl.bak, ...). You can specify what kind of
-files you want (=--perl=, =--cc=, ...), make it match some regex with
-=--match=, ...
-
-And you can set some defaults configuration in a .ackrc file ! Mine
-looks like this:
-
-#+BEGIN_SRC sh
- --sort-files
- --color
- --context=1
- --follow
-#+END_SRC
-
-Check also:
-[[http://use.perl.org/use.perl.org/_Ovid/journal/36430.html][vim with
-ack integration]].
-
-Oh, and it's the only program with =--thpppt= option!
@@ -0,0 +1,32 @@
+The current trend is to have the name of the current git branch everywhere. Personnaly I display it in my vim's status bar, and in my zsh prompt.
+
+Here is my vimrc configuration for this (I'm not the author of this function, and can't remember where I saw it first):
+
+``` viml
+set statusline=%&lt;[%n]%m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).':'.&ff}%{g:gitCurrentBranch}%{']'}%y\ %F%=%l,%c%V%8P
+autocmd BufEnter * :call CurrentGitBranch()
+
+let g:gitCurrentBranch = ''
+function! CurrentGitBranch()
+ let cwd = getcwd()
+ cd %:p:h
+ let branch = matchlist(system('/usr/local/git/bin/git branch -a --no-color'), '\v\* (\w*)\r?\n')
+ execute 'cd ' . cwd
+ if (len(branch))
+ let g:gitCurrentBranch = '][git:' . branch[1] . ''
+ else
+ let g:gitCurrentBranch = ''
+ endif
+ return g:gitCurrentBranch
+endfunction
+```
+
+and my zshrc:
+
+``` sh
+local git_b
+git_b='$(get_git_prompt_info '%b')'
+PROMPT="%(?..%U%?%u:) $git_b %40>...<%/%(#.%U>%u.%B>%b) "
+```
+
+with the following script [S55\_git](http://www.jukie.net/~bart/conf/zsh.d/S55_git).
Oops, something went wrong.

0 comments on commit 8d7d02f

Please sign in to comment.