Tag Archives: moved

Docker – Cleanup everything

Hi, Here a quick script to cleanup all images and containers quickly. It is useful while you develop and what to restart fresh :

 

FreeBSD: Setup properly small kimsufi (ovh) server (non-zfs) on FreeBSD 10.1 (disk setup ufs, vanilla freebsd, ipv6)

This tutorial is made for OVH Kimsufi server, the small one, where you can’t setup ZFS. They are deliver with an awful partition scheme by default and a custom kernel that break after the first freebsd-update. And of course because of the awful partition, it is almost impossible to repair after reboot. So I made … Continue reading FreeBSD: Setup properly small kimsufi (ovh) server (non-zfs) on FreeBSD 10.1 (disk setup ufs, vanilla freebsd, ipv6)

Perl Dist::Zilla hidden feature : minimum bundle version require !

Dist::Zilla is a great tools to create perl distribution. You can also create PluginBundle that contain everything you usually use in your package. You will usually add and remove stuff in your PluginBundle, and you want that people who help you develop and release your perl distribution to use the good version of your bundle. … Continue reading Perl Dist::Zilla hidden feature : minimum bundle version require !

Perl Memory::Stats – Get RSS memory reporting on multiple platforms

It is often nice to be able to dump the current memory usage of a part of your process. I’m working on Mac OSX, and I’m frustrating when a perl module only works on Linux, because it read file like ‘/proc’ or stuff like that. Thanks to IRC users, I have discover Proc::ProcessTable, and then … Continue reading Perl Memory::Stats – Get RSS memory reporting on multiple platforms

Perl Jedi Plugin Auth

Jedi::Plugin::Auth is an authentication plugin for Jedi. It handle the authentication for you, saving using info in his database, and returning the full profile in a session when the user identify himself properly. The plugin provide : jedi_auth_signin jedi_auth_signout jedi_auth_login jedi_auth_logout jedi_auth_update jedi_auth_users_with_role jedi_auth_users_count jedi_auth_users So you can add an user, remote it, log the … Continue reading Perl Jedi Plugin Auth

Perl – Understand List, Unary operation and Array in scalar context

The common misunderstanding in Perl is the difference between : A list : (1, 2, 3) An array : @my_array containing (1, 2, 3) The unary operation coma ‘,’: $operation1, $operation2, $operation3 Perl use the context to act practically over logically. That lead to unexpected behavior if you mislead each of this concept. The 3 … Continue reading Perl – Understand List, Unary operation and Array in scalar context