TCP Keepalive and timeout

So, I had an issue at work (well previous work), where in case the link between client and server was lost, they wouldn't timeout for a pretty long while, in this use case this was a real issue, especially knowing that they also wouldn't keep talking to each other when …

more ...

Git log oneline

The issue

For quite a while, I had an older version of an alias for a short and readable oneline-per-commit git log:

t log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0 …
more ...

Terminal emulators testing

So I thought about changing my good old setup based on urxvt, for the longest time, the thing that prevented me from using another terminal was the fact that I was way too confortable using mark-and-yank plugin to open url using keyboard shortcut. Having most of my exchange with other …

more ...

Switching to NeoVim

I've been planning on trying out neovim again, but couldn't remember what the issue was last time I tried it, so I tried quickly again and found back:

Powerline isn't compatible with it.

And the previous time I wasn't willing to play too much with my configuration so I didn't …

more ...

Ratonland V4

Here we go again .oO(♬ Shelter - Here We Go ♬), once again, a new version of the website.

Thanks to the wayback machine I managed to get a few screenshots of the previous versions

2004 - V1

Using lanewfactory in PPH and storing data in xml.

v1

2006 - V2

Custom php made, with …

more ...

ESP8266 + bme280 battery life: 120 days and counting

The sensor

I have an outside battery powered temperature/humidity/pressure sensor, here is the list of what it is based on:

  • ESP8266 (esp12f), according to espressif
    • from 120 to 170mAh for Tx
    • 10µAh in deep sleep mode
  • bme280
    • 3.6µAh at 1Hz when measuring the 3 parameters
  • MCP1700-3302E LDO …
more ...

Anxiety, small summary of what I found until now

Disclaimer

I'm not a neither a psychologist nor a psychiatrist, I have no medical background and I can have totally misunderstood some of the things I went through, bear with me and do not hesitate to reach out to me if you found something that doesn't make sense.

Introduction

I've …

more ...

Brother printer and scanner under archlinux

We received our new Brother DCP-L2520DW printer, a black and white laser printer and scanner with wifi, for 140€, that was a decent deal, my only concern was linux support.

Of course I checked before and saw the drivers provided on Brother's website, a friend also told me he had …

more ...

ESP8266 + DHT22 + Homie -> Home-Assistant

So now that I had a Home-Assistant (HA) setup working, an esp8266 booting and that I can write software for, it was time to start making the two talk to each other and make something that can become unseful based on all this.

The choice went to the simplest element …

more ...

esp8266 with Homie and PlatformIO

As I talked about in previous posts, I got some ESP8266 devices I wanted to play with, one has been setup on a breadboard for testing for a while, able to boot, but never got to try anything more on it yet.

Protocol and firmware base choice

As my goal …

more ...

Home Automation (part 3)

My current Home-Assistant setup

Currently my HA homepage looks like this:

ha-ui

Let's first go over the various parts of the UI, and how my setup is currently working befor diving into the configuration file details.

The web UI

  • At the top, we have the status of …
more ...

Home Automation (part 2)

Note: Part 1 is here

Electrical setup for living room light

Our new place doesn't have any ceiling lights in the living room, but one switch activated wall plug. It is driven by a 2 way setup of 2 switches, and I decided to put the fibaro dimmer in one …

more ...

Home Automation begins (part 1)

Introduction

So we moved, again, back to Versailles. I had the bad idea to start looking into home automation before we even moved, and started wondering what I wanted to have or to do.

Defining the need

The thing I was interested in at first was simply controlling the lights …

more ...

Decipher ESP packets with Scapy

I'm currently working on implementing support for hardware cryptographic engine on a board we support at work. Currently it is not working and I was trying to debug it, thus trying to see what is happening. I tcpdumped the packets received, and tried to have a look at it. Sadly …

more ...

.vimrc

As a reference, here is my current .vimrc file, stripped from a few things specific to my current job:

" ---------------
" Start Plug
" ---------------
call plug#begin('~/.vim/plugged')

" git
Plug 'tpope/vim-fugitive'

" utils
Plug 'rking/ag.vim'         " ag fro grepping in vim
Plug 'tpope/vim-commentary' " gcc gc etc for commenting
Plug 'tpope …
more ...