Unix-kraplinka is my personal blog where I write about IT. I share code snippets and tips, but not only. I share opinions and passions on other personal topics too.

  • Climging mountains

    paroie des morgans, salève 74 “pas mal le malpas” 6a, Rocher du Malpas 74

  • shutdown pool on cloudflare LB via api

    I have been looking for some time to find out the proper syntax out to shutdown a pool in a cloudflare loadbalancer via api request. As you can find different syntaxes regarding authentication bearer versus keys in their documentation, that seems not up to date at the moment.

  • Activate core dumps on a go program launched via systemd

    You have to set the 2 following line in unit file: LimitCORE=infinity # unlimited core file sizeEnvironment=”GOTRACEBACK=crash” example: In case of panic core files will be stored in /home/toto. You can load them in a debugger for analysis. Go offers this nice feature out of the box: when you send it SIGQUIT signal, it exits with…

  • Nomad extra_hosts is not propagated into the docker containers /etc/hosts

    When you’re using Hashicorp Nomad + Consul Connect the docker extra_hosts argument is not propagated to containers.Here is a quick workaround to append custom values to /etc/hosts of your containers.Add the following task in your group, task will start first and exit (0). Reference of the bug that will soon be fixed, I hope https://github.com/hashicorp/nomad/issues/11056

  • haproxy

    log every requests to stdout (mostly for containerized environment)

  • motos

    Here is an overview of the bikes I owned, from newest to oldest

  • OpenBSD cheatsheet

    list services / restart a service rcctl ls all / rcctl restart configure an interface sh /etc/netstart wg1 equivalent to netstat -lpentu on linux netstat -f inet -t show routing table netstat -rn -f inet dump pf traffic tcpdump -lenvvvi pflog0 Show logs paquet for a specific port (443) tcpdump -n -e -ttt -r /var/log/pflog…

  • SSH tips

    Proxify web browser via ssh tunnel (SOCKS proxy) ssh -ND 1080 my-endpoint-ssh-server.comchromium –proxy-server=”SOCKS5://localhost:1080″

  • Freebsd revert a package to a previous version

    I am running Freebsd Current on my personal computer because I am interested in the development of the OS. Naturally, this brings its share of worries sometimes. One day, my X server refuses to start following an upgrade of the AMD graphics kernel module. So I decided to rollback on the previous version which worked…

  • Airlock custom patch for pre-reboot tasks execution

    To quickly introduce it, airlock is a reboot manager that manages the possibility for a server to request its auto reboot in order to apply an update. It is able to manage a lock on a fleet of machines and give the green light (or not), to Zincati, Airlock is developed by the Coreos team.…

Want to get in touch ?


brangeonm@protonmail.com