Not today...

Filed under Tuto...

comments

Tuto

Kvm Hello World

Let’s start a small serie of post on KVM. It is a tool I sometime need to use when Docker is too simple for the problem at hand, or if I really need virtualization (to emulate another arch or a totally different system). I will start by giving a series of snippets to quick start your KVM usage. I am doing this because I often struggle to retrieve simple information when I want to come back on this kind of technology. Read More...

Tagged kvm , cli

comments

Tuto

Debug Terraform

How to easily debug Terraform? This was one of my biggest problem when dealing with the tool. I followed instructions to use some output ressources or browse the “debug” logs. Disclaimer: none of it was working properly. So here is what I am actually doing and I am perfectly happy with. Oh! And just before starting to enable debug logs you have to pass the environment variable TF_LOG=debug (because there is no man page and it is not written in the --help content). Read More...

Tagged cli , terraform

comments

Tuto

Wireguard on a Linux Alpine with Docker

For most of my infrastructure, I am now using Alpine Linux. I like it because it only has a small number of moving parts. It’s easy to know and master them, it is making my life easier :). So, I decided to install one on my VPS. Like my distro I wanted it to be simple and small. For all those reasons I went for Wireguard. The fact that it is the new cool kid, may also have helped. Read More...

Tagged alpine , admin

comments

Tuto

Gopass

A pretty good security advice would be to never write down a password unencrypted on disk. This can be pretty tricky to achieve, especially on personal and development environments. So let me introduce gopass which is a tool aiming to help with this problem. First of all, let me say it right away, the CLI interface is not that good. Took me a lot of time to set things properly as options may be cryptic and behavior is not obvious as first sight. Read More...

Tagged admin , cli

comments

tuto

Alpine iPXE

For a personal project I want to iPXE boot alpine. I did not found any step by step guide, so I ended up testing multiple solutions until it works. This post is a “copy” of the answer I made here for the netboot.xyz project.

To fix this issue I used a bunch of thread and resources but here are the three main entry used:

Read More...

Tagged admin

comments

Tuto

Libvirt through vagrant

I will not install VirtualBox! That’s all (nor VMWare, don’t be ridiculous). But I really like Vagrant, and use it every time I need something closer to a running machine. So, I dig up the internet and found that there is an unofficial support of libvirt. Installation I do not remember where I found the documentation to do this or if I did it by myself, so no link here, just what I do in order to make this work. Read More...

Tagged admin

comments

Snippet Tuto

Gogs + Drone

Jenkins is everywhere now, but I really don’t like it. So I am looking at a replacement from day to day. I discovered Gogs an I though that a CI is also a good use case for the Golang language. And I finally found Drone (which was not really difficult as it is mentionned in a ticket on gogs github). So I decided to make them work together in order to test that. Read More...

Tagged admin

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

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

comments

Tuto

Patch dependency

When developing on a project it is possible that a dependency can have an issue. First you want to be able to debug it (pdb, ipdb), then modify it if you find a bug. To do that there is a naive way in python, which consist in editing directly the sources of the module. But there is a cleaner way based on pip. The -e option allows you to pass a path (git, http, file) for a given module and link it to your environment. Read More...

Tagged dev , python