Exploring a weird HTTP issues

Posted on 2022-05-04 in Programmation • Tagged with Python, Django, nginx, GCP, devops

Today I'd like to explain how I tried to solve a weird HTTP issues that I found at work. I hope you will find the method and the trials I used the useful/interesting if/when you will encounter something similar.

The issue was this: I needed to dynamically generate …


Continue reading

Create test environments in Kubernetes

Posted on 2022-02-20 in Programmation • Tagged with Devops, Kubernetes

Context and possible solutions

If you are working …


Continue reading

How to avoid CSRF token issues with Django when running on different sub-domains

Posted on 2022-02-13 in Trucs et astuces • Tagged with Python, Django

If you deploy multiple Django websites on your infrastructure on various subdomains, you may get issues about invalid CSRF tokens. This is happening either because:

  • You erase the cookie by using the same domain. For instance, if you have your prod API at api.jujens.eu and pre-production one at …

Continue reading

Yarn workspaces and mono repos

Posted on 2022-02-06 in Programmation • Tagged with Devops, JavaScript

I currently work in a small startup with two other developers. We have three projects: an API written in Python with the Django web framework, a big React app and a website written with NextJS. All these project are in the same git repository. This allows us to easily share …


Continue reading

Shutdown Kubernetes

Posted on 2022-01-30 in Programmation • Tagged with Devops, Kubernetes

It can be a good idea to shutdown part of your infrastructure when you don't need it. It will help you reduce costs and your environmental impact. It is however, not always easy to actually do it.

In this article, I'll talk here about how to shutdown a Kubernetes based …


Continue reading

Testing the re-frame Clojure frontend framework

Posted on 2022-01-16 in Programmation • Tagged with JavaScript, Clojure

I wanted to test re-frame a Clojure framework for building user interfaces. It is built on top of Reagent a Clojure library to interface with React in ClojureScript. The main goal of this framework is to help you manage the state of your application. To do that, you need to …


Continue reading

Testing the Svelte JS framework

Posted on 2022-01-03 in Programmation • Tagged with JavaScript

After hearing good things about the Svelte JS framework, I decided to give it a try. To test it, I did something very original: the classic TODO app. You can see a picture of the end result on the screenshot below.

The styled app

Here are my impressions after this tests:

  • Despite using …

Continue reading

From ZSH to Fish

Posted on 2021-11-07 in Blog

After several years of ZSH with oh-my-zsh, I decided to give fish (Friendly Interactive Shell). I heard and read several good things about it. I also wanted to test starship (a cross shell prompt) easily without messing with my ZSH configuration.

The least I can say is: I'm impressed. Most …


Continue reading

My take on GKE auto-pilot mode

Posted on 2021-10-17 in Programmation • Tagged with security, gcp, gke, kubernetes

I recently switched from a standard GKE cluster where I had to manage nodes to an autopilot one where Google does it for me. I must say the switch was easy to do (despite an interruption of our services) and greatly simplified the management of the cluster.

I noticed this …


Continue reading

Generate PDF from React components

Posted on 2021-09-26 in Programmation • Tagged with JavaScript, React, Chrome, Puppeteer

How do you generate a PDF from any React components? I am not talking about just allowing your users to print a page into a PDF with their browser, I am talking about transforming a page as PDF programmatically and saving it server side. The idea is for our user …


Continue reading