Not today...

comments

Snippet

Getting rid of gulp bunch of dependencies

Recently Nodejs environment broke due the removal from npm of a small library (11 SLOC): leftpad. As it hit the world and broke a bunch of projects and CIs, I asked myself if my projects contains so much dependencies that if one break, everything collapse. The problem For developing my frontend I use a tool which I really like: Gulp. The issue there, is that for working with multiple building process involved a lot of glue and third party libraries. Read More...

Tagged dev , javascript

comments

Snippet

Pytest command line

I have recently dug into pytest documentation, and moreover into the command line arguments and I finally found a better workflow for running tests while I develop. Here is the command I run when I just made some devs: py.test -xvvvs --tb=line --pdb -x will stop execution on first failue, useful when debugging tests in order of appearance (recommended) -vvv will display current test path (reuasable in py.test), the path will avoid to rerun all the previous tests before going to the one you are currently working on. Read More...

Tagged tests , python , cli

comments

Tuto

Pdbpp

I am a huge fan of ipython and its debugger ipdb (I have also done a patch on it). Then I discovered pdbpp and I found it so great that I no more use ipdb, here is why. More features Sticky mode Pdbpp comes with a lot of additional features which are really convenient. The first and more well known is the sticky mode: This will display the code currently, executed and shows you with an arrow at which exact line you are. Read More...

Tagged dev , python

comments

OS

Linux Mint

After a long journey, I finally found the distribution which fits all my need: Linux Mint Debian Edition Why ? It is based on debian a distribution which I really like (and not Ubuntu). The default tilling (similar to W7) is really comfortable. Lot of configuration can be done for shortcuts. Support for systemd (Yay \o/). Beautiful UI out of the box (which I didn’t have with TWM). And a lot more Installation As I am on Macbook (once upon a time, I was young and dumb), I need a particular configuration of the partitions for the installation. Read More...

Tagged admin

comments

Ansible

I have a home media server, and I spent a lot of time configuring, testing and installing on it. But I was never really satisfied by the way I had to perform the installation (which happens way too often). And I recently discovered Ansible, which is a tool for doing a lot of stuff with a server (configuration, run repetitive command, installation) over ssh. I really loved experienced with it, it does not require a lot of dependencies on the targeted server, and can be easily run. Read More...

Tagged admin , cli

comments

Pop-up with xmobar

Sometimes I just want to click, even for simple things. So I created a little popup to shutdown, restart, suspend my computer, which looks like this: {:.image-process-article-image}{:target="_blank"} Preparation First of all install xmobar, apt-get install xmobar/testing. Here I will use testing because I need the multiple fonts support, see here for the release note. The second thing I will need is an iconic font for the power button. Font Awesome fits my need. Read More...

comments

Snippet

Bash Expansion

A small post just to share a useful bashism the Brace Expansion. It is really simple to make it works: for i in {1..50} do echo "Hello World $i" done It will print fifty “Hello World”. Ok it seems cool but not amazing? Ok, now the second feature echo something/{foo,bar} > something/foo something/bar Still not amazed, ok now type this one: cp some_file{,.old} It will copy your file adding a . Read More...

Tagged bash , cli

comments

OS

Unable to find LVM volume... with LVM on top of Luks

Following this article I have LVM on top of Luks for my system. When I boot I encounter the following message:

  Volume group "vg_ssd" not found
  Skipping volume group vg_ssd
Unable to find LVM volume vg_ssd/lv_root

It appears that LVM is started before I open the crypted partition and display this error. To fix this we will manipulate the initramfs \o/.

The issue is in the file /usr/share/initramfs-tools/scripts/local-top/cryptroot

Read More...

Tagged admin

comments

OS

Debian Install 3

Today I want to install debian on my personal server. And I want to crypt the FS using Luks, and add LVM on top.

I want it to look like that (like this scheme, a lot of reference come from the arch wiki

Read More...

Tagged bash , adminsys

comments

tuto

weechat

Weechat is an ncurse client for IRC, which I use and have tweaked to fit my needs. But Weechat have one major issue: IT IS NOT USER FRIENDLY. The documentation is poor, there is a lot of plugins, which documentation is even poorer, and the configuration is a hell. WELCOME! First of all the installation, apt-get install weechat will be sufficient on a real OS. Then, just type weechat in order to launch the client. Read More...

Tagged admin