bitcrafting laboratory

How to display ip on a remote vm before login

Source: taken from (http://offbytwo.com/2008/05/09/show-ip-address-of-vm-as-console-pre-login-message.html)

TL;DR Install with one the following lines (choose either slurdge.org, github.com or gitlab.com) as root. Feel free to checkout the source.

wget https://gitlab.com/snippets/1660984/raw -O - | sh
wget https://gist.githubusercontent.com/slurdge/1fe64837f751101015137c7d2b93ff77/raw/install_ip_prompt.sh -O - | sh
wget https://www.slurdge.org/posts/how-to-display-ip-remote-vm/install-ip-prompt.sh -O - | sh

 

[Read more]

How to open everything in a tab in Firefox

To open everything in a tab in Firefox, many steps are required. You will need some extension to achieve the more complicated ones.

TL;DR

Change the followings:

  1. browser.search.openintab to true in about:config
  2. Install userChrome.js and add the following script.
  3. Done.

What decides where something is open ?

When you click or type somewhere in Firefox, there is code that decides where your click or enter should open. This code is mostly javascript, which means we can inspect it and modify it.

[Read more]

Bye Drupal, welcome Hugo

It has been a long time. Way too long. Update from update, Drupal was less and less a good solution for this website. I don’t update it that often, for starters. Secondly, Drupal was horribly slow and cumbersome. While I agree that Drupal can be an excellent choice for bigger websites, it’s simply not adapted to simple portfolio type websites. As a programmer, I was instanntly seduced by the approach of static sites generators: at last, my content would be easily viewable (the whole point of Drupal was to have the content separated from the HTML, as it was in the first iterations of the site). I setted on Hugo because I liked the fact it was fast, is using not to complicated templating system (even though it seems there is quite a bit different manners of doing the same thing) and is usable only with one executable. I don’t like the idea to pull the earth on my laptop just to compile a few webpages, going with go is perfect.

[Read more]