summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md1
-rw-r--r--_posts/2008-06-17-vim-function-for-creating-new-task.md1
-rw-r--r--_posts/2008-06-18-keep-your-zshrc-simple.md1
-rw-r--r--_posts/2008-06-20-mirror-cpan.md1
-rw-r--r--_posts/2008-06-21-debug-your-dbix-class-queries.md1
-rw-r--r--_posts/2008-06-24-ack.md1
-rw-r--r--_posts/2008-06-26-git-branch-everywhere.md1
-rw-r--r--_posts/2008-06-27-dotfiles-and-scm.md1
-rw-r--r--_posts/2008-06-30-upgrading-to-perl-5.10.md1
-rw-r--r--_posts/2008-08-08-customize-your-mysql-prompt.md1
-rw-r--r--_posts/2008-08-19-offlineimap-on-osx.md1
-rw-r--r--_posts/2008-12-05-vim-and-git.md1
-rw-r--r--_posts/2009-02-17-tidify-a-json-in-vim.md1
-rw-r--r--_posts/2009-04-14-git-and-prove.md1
-rw-r--r--_posts/2009-04-25-controll-xmms2-from-vim.md2
-rw-r--r--_posts/2009-06-17-xmobar-on-debian-sid.md1
-rw-r--r--_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md5
-rw-r--r--_posts/2009-07-07-cpan-and-auto-install.md1
-rw-r--r--_posts/2009-08-23-perl5lib-and-zsh.md1
-rw-r--r--_posts/2014-01-04-setting-up-cgit-with-ansible.md1
20 files changed, 21 insertions, 4 deletions
diff --git a/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md b/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md
index 759b506..7801779 100644
--- a/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md
+++ b/_posts/2008-06-14-how-to-use-vim-as-a-personal-wiki.md
@@ -2,6 +2,7 @@
layout: post
title: On how to use vim as a personal wiki
summary: In which I describe how I use vim as a personal wiki.
+type: codex
---
There is different reasons to want a personal wiki on your machine:
diff --git a/_posts/2008-06-17-vim-function-for-creating-new-task.md b/_posts/2008-06-17-vim-function-for-creating-new-task.md
index 18e20c6..cbf3874 100644
--- a/_posts/2008-06-17-vim-function-for-creating-new-task.md
+++ b/_posts/2008-06-17-vim-function-for-creating-new-task.md
@@ -2,6 +2,7 @@
layout: post
title: Vim function for creating new task
summary: In which I add a few functions for my vim wiki.
+type: codex
---
I've added a new function to my .vimrc for creating quickly a new task:
diff --git a/_posts/2008-06-18-keep-your-zshrc-simple.md b/_posts/2008-06-18-keep-your-zshrc-simple.md
index 8a632b6..8e346f2 100644
--- a/_posts/2008-06-18-keep-your-zshrc-simple.md
+++ b/_posts/2008-06-18-keep-your-zshrc-simple.md
@@ -2,6 +2,7 @@
layout: post
title: keep your zshrc simple
summary: In which I explain how I maintain my zsh configuration.
+type: codex
---
Keep your .zshrc simple. Mine looks like this :
diff --git a/_posts/2008-06-20-mirror-cpan.md b/_posts/2008-06-20-mirror-cpan.md
index dc026e1..37112b4 100644
--- a/_posts/2008-06-20-mirror-cpan.md
+++ b/_posts/2008-06-20-mirror-cpan.md
@@ -2,6 +2,7 @@
layout: post
title: Mirror cpan
summary: In which I setup a mirror of CPAN using minicpan.
+type: codex
---
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, ...
diff --git a/_posts/2008-06-21-debug-your-dbix-class-queries.md b/_posts/2008-06-21-debug-your-dbix-class-queries.md
index 7cb66c2..eb5ddef 100644
--- a/_posts/2008-06-21-debug-your-dbix-class-queries.md
+++ b/_posts/2008-06-21-debug-your-dbix-class-queries.md
@@ -2,6 +2,7 @@
layout: post
title: debug your DBIx::Class queries
summary: In which I explain how to see SQL queries generated for DBIx::Class.
+type: codex
---
If you use DBIx::Class and want to see what the SQL generated looks like, you can set the environment variable **DBIC_TRACE**.
diff --git a/_posts/2008-06-24-ack.md b/_posts/2008-06-24-ack.md
index 200fb2f..56028cb 100644
--- a/_posts/2008-06-24-ack.md
+++ b/_posts/2008-06-24-ack.md
@@ -2,6 +2,7 @@
title: Ack
layout: post
summary: In which I share my settings for ack.
+type: codex
---
> Ack is designed as a replacement for 99% of the uses of grep.
diff --git a/_posts/2008-06-26-git-branch-everywhere.md b/_posts/2008-06-26-git-branch-everywhere.md
index ed93df2..8ec346c 100644
--- a/_posts/2008-06-26-git-branch-everywhere.md
+++ b/_posts/2008-06-26-git-branch-everywhere.md
@@ -2,6 +2,7 @@
layout: post
title: Git branch everywhere
summary: In which I share a snippet of code to display a git branch in vim.
+type: codex
---
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.
diff --git a/_posts/2008-06-27-dotfiles-and-scm.md b/_posts/2008-06-27-dotfiles-and-scm.md
index 6769efd..a300a5c 100644
--- a/_posts/2008-06-27-dotfiles-and-scm.md
+++ b/_posts/2008-06-27-dotfiles-and-scm.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I share how I manage my dotfiles.
title: Dotfiles and SCM
+type: codex
---
All my dotfiles are stored in a SCM. Most of the time I'm on my main computer, but I can be working on a server or a different workstation. In this case, I like to have all my configurations for zsh, vim, screen, etc.
diff --git a/_posts/2008-06-30-upgrading-to-perl-5.10.md b/_posts/2008-06-30-upgrading-to-perl-5.10.md
index 057c294..512fd59 100644
--- a/_posts/2008-06-30-upgrading-to-perl-5.10.md
+++ b/_posts/2008-06-30-upgrading-to-perl-5.10.md
@@ -2,6 +2,7 @@
layout: post
summary: In which we upgrade to Perl 5.10.
title: Upgrading to perl 5.10
+type: codex
---
Get the list of your installed 5.8 modules:
diff --git a/_posts/2008-08-08-customize-your-mysql-prompt.md b/_posts/2008-08-08-customize-your-mysql-prompt.md
index f023186..62a25e6 100644
--- a/_posts/2008-08-08-customize-your-mysql-prompt.md
+++ b/_posts/2008-08-08-customize-your-mysql-prompt.md
@@ -2,6 +2,7 @@
layout: post
summary: In which we customize our MySQL prompt
title: Customize your MySQL prompt
+type: codex
---
To customize your MySQL prompt, create a .my.cnf file in your $HOME then add the following:
diff --git a/_posts/2008-08-19-offlineimap-on-osx.md b/_posts/2008-08-19-offlineimap-on-osx.md
index c5f6d8c..870d243 100644
--- a/_posts/2008-08-19-offlineimap-on-osx.md
+++ b/_posts/2008-08-19-offlineimap-on-osx.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I have to patch offline imap to make it work on OS X.
title: offlineimap on osx
+type: codex
---
If you are using offlineimap on leopard, on an imap connection with ssl (like GMail) and it keep crashing because of the following error:
diff --git a/_posts/2008-12-05-vim-and-git.md b/_posts/2008-12-05-vim-and-git.md
index 39f8024..e9c9370 100644
--- a/_posts/2008-12-05-vim-and-git.md
+++ b/_posts/2008-12-05-vim-and-git.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I share another snippet of code for vim.
title: vim and git
+type: codex
---
idea from [Ovid's journal](http://use.perl.org/use.perl.org/_Ovid/journal/37966.html) (ovid is full of really good ideas for vim):
diff --git a/_posts/2009-02-17-tidify-a-json-in-vim.md b/_posts/2009-02-17-tidify-a-json-in-vim.md
index 8771e59..93e2cc9 100644
--- a/_posts/2009-02-17-tidify-a-json-in-vim.md
+++ b/_posts/2009-02-17-tidify-a-json-in-vim.md
@@ -2,6 +2,7 @@
layout: post
summary: In which we tidify a JSON in vim.
title: tidify a json in vim
+type: codex
---
If you have to edit json files from vim, you may want to make them more readable, here is how you can do this:
diff --git a/_posts/2009-04-14-git-and-prove.md b/_posts/2009-04-14-git-and-prove.md
index 60c8740..f76f21d 100644
--- a/_posts/2009-04-14-git-and-prove.md
+++ b/_posts/2009-04-14-git-and-prove.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I add a hook to git to run my tests.
title: Git and prove
+type: codex
---
A little trick to force you to run your tests before a commit:
diff --git a/_posts/2009-04-25-controll-xmms2-from-vim.md b/_posts/2009-04-25-controll-xmms2-from-vim.md
index 848319d..4ca7b42 100644
--- a/_posts/2009-04-25-controll-xmms2-from-vim.md
+++ b/_posts/2009-04-25-controll-xmms2-from-vim.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I control xmms2 from vim.
title: controll xmms2 from vim
+type: codex
---
a really basic way to controll xmms2 from your vim session:
@@ -15,4 +16,3 @@ map <leader>xs <Esc>:!xmms2 stop<CR><CR>
{% endhighlight %}
now, type `,xn` in vim, and xmms2 will start to play the next track from your playlist.
-
diff --git a/_posts/2009-06-17-xmobar-on-debian-sid.md b/_posts/2009-06-17-xmobar-on-debian-sid.md
index 52d88f6..bf2f467 100644
--- a/_posts/2009-06-17-xmobar-on-debian-sid.md
+++ b/_posts/2009-06-17-xmobar-on-debian-sid.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I path xmobar for Debian SID
title: xmobar on debian SID
+type: codex
---
If you are using [xmonad](http://www.xmonad.org/) and [xmobar](http://projects.haskell.org/xmobar/) on [Debian SID](http://www.debian.org/) on a laptop, and don't see any battery information, you may have test this [solution](http://5e6n1.wordpress.com/2009/03/30/xmobar-battery-plugin-using-sysfs-not-procfs/).
diff --git a/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md b/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
index 9466bbc..0592f4f 100644
--- a/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
+++ b/_posts/2009-06-25-how-to-prevent-some-components-to-be-loaded-by-catalyst.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I show how to disable some components in Catalyst.
title: How to prevent some components to be loaded by Catalyst
+type: codex
---
Let's say you have a large [Catalyst](http://search.cpan.org/perldoc?Catalyst) application, with a lot of compoments. When you deploy your application, or when you want to test it while your developping, you may not want to have some of thoses components loaded (you don't have all the dependencies, they are incompatible, etc...). Catalyst use [Module::Pluggable](http://search.cpan.org/perldoc?Module::Pluggable) to load the components, so you can easily configure this. In your application's configuration, add:
@@ -14,7 +15,7 @@ setup_components:
...
{% endhighlight %}
-Module::Pluggable have some other interesting features. You may have a second Catalyst application, and want to use one or more components from this one. You can easily do this:
+Module::Pluggable have some other interesting features. You may have a second Catalyst application, and want to use one or more components from this one. You can easily do this:
{% highlight yaml %}
setup_components:
@@ -22,5 +23,3 @@ setup_components:
- MyApp
- MyOtherApp::Model
{% endhighlight %}
-
-
diff --git a/_posts/2009-07-07-cpan-and-auto-install.md b/_posts/2009-07-07-cpan-and-auto-install.md
index 9315702..4490f0a 100644
--- a/_posts/2009-07-07-cpan-and-auto-install.md
+++ b/_posts/2009-07-07-cpan-and-auto-install.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I show how to auto answer questions asked by cpan
title: CPAN and auto-install
+type: codex
---
When you install a module from the [CPAN](http://search.cpan.org), and this module requires other modules, the cpan shell will ask you if you want to install them. When you are installing [Catalyst](http://www.catalystframework.org/), it may take a while, and you may not want to spend your afternoon in front of the prompt answering "yes" every 5 seconds.
diff --git a/_posts/2009-08-23-perl5lib-and-zsh.md b/_posts/2009-08-23-perl5lib-and-zsh.md
index 24dcc37..a4ddc0a 100644
--- a/_posts/2009-08-23-perl5lib-and-zsh.md
+++ b/_posts/2009-08-23-perl5lib-and-zsh.md
@@ -2,6 +2,7 @@
layout: post
summary: In which I show how I manage my $PERL5LIB.
title: $PERL5LIB and zsh
+type: codex
---
in my .zsh.d/S80_perl
diff --git a/_posts/2014-01-04-setting-up-cgit-with-ansible.md b/_posts/2014-01-04-setting-up-cgit-with-ansible.md
index 7be1ae0..4bdb23d 100644
--- a/_posts/2014-01-04-setting-up-cgit-with-ansible.md
+++ b/_posts/2014-01-04-setting-up-cgit-with-ansible.md
@@ -2,6 +2,7 @@
layout: post
title: Setting up cgit with Ansible
summary: In which I share how I install cgit with Ansible.
+type: codex
---
I've [already write](/ansible-and-chef/) about [Ansible](http://www.ansibleworks.com/). I use it to manage and configure my servers (most of them are VMs running on my laptop, but the idea is the same). One of the server is used to store my personal git repositories, and I wanted to use [cgit](http://git.zx2c4.com/cgit/) as the front end for the public repositories instead of the old and slow [gitweb](https://git.wiki.kernel.org/index.php/Gitweb).