Snippets

Easy Redis stack setup using Docker Compose

Learn how to effortlessly set up a Redis stack using Docker Compose and the redis/redis-stack-server docker image in this quick and easy guide with a docker compose file.

Easy Redis stack setup using Docker Compose

Golang Cobra commands documentation script

This snippet shows how to generate documentation for a Cobra package commands quickly, making it easier for both you and your users to find the information you need.

Golang Cobra commands documentation script

Création de PDFs à partir de plusieurs images sur Linux

Je souhaitais partager avec vous une petite astuce que j'ai récemment découverte : comment fusionner plusieurs images en un seul fichier PDF en utilisant la ligne de commande sur Linux.

Création de PDFs à partir de plusieurs images sur Linux

CORS Configuration with Envoy

This snippet share an Envoy configuration example for adding CORS headers.

CORS Configuration with Envoy

How to Configure Nginx with OAuthkeeper for API Proxy Authentication

Learn how to secure your API gateway by configuring Nginx with OAuthkeeper for API proxy authentication. This blog post will show you configure Nginx and OAuthkeeper to ensure that only authenticated users or applications can access your APIs.

How to Configure Nginx with OAuthkeeper for API Proxy Authentication

Composant React pour les liens sortants

Dans cet article, je vais vous montrer comment créer un composant React personnalisé pour les liens sortants qui inclut les attributs spécifiques répondant aux différentes problèmatiques de référencement, tels que rel="noopener noreferrer" et target="_blank".

Composant React pour les liens sortants

Supprimer les données Exif d'une image sur Linux

Il est possible d'utiliser la command exiftool pour supprimer les données Exif d'une image sous Linux. Voici comme l'utiliser.

Supprimer les données Exif d'une image sur Linux

Ory OAthKeeper with Envoy Proxy, Prometheus and Jaeger Docker Compose

Ory OAthKeeper is a great Open Source Identity and Access Proxy (IAP). It can be deployed as a reverse proxy or as a control decision engine deployed with a reverse proxy. Most of the time, services are already deployed with a proxy like an Nginx or an Envoy. If you want to deploy for production, you may want to have metrics and distributed tracing as well.

Ory OAthKeeper with Envoy Proxy, Prometheus and Jaeger Docker Compose

Odoo Docker Compose

A docker-compose file for the Odoo Open Source solution with the Odoo official Docker image and Postgres database.

Odoo Docker Compose

Metabase Docker Compose

A docker-compose file for the Metabase Open Source solution with the Metabase official Docker image and Postgres database.

Metabase Docker Compose

Git command for deleting local and remote tag

Git tags are used to store a specific version of a file and more globally tag specific commits in the history of a repository. For some reason, you may want to remove this tag from your local repository and from the remote repository.

Git command for deleting local and remote tag

Github Action for mirroring repositories

In some cases, it is useful to mirror a repository on GitHub. Unfortunately, Github does not provide an automatic mirroring feature so far. The only way to make mirroring is to do it yourself manually or automate it. Thanks to Github Actions, we will be able to mirror a repository on GitHub automatically.

Github Action for mirroring repositories

Create layout with HandlebarsJS

Layout template is a good practice to not repeat ourselves (DRY). Handlebars templates engine does not provide a layout feature out of the box but it still is possible to create a layout. principle. Handlebars template engine, there is no out-of-the-box layout feature but it is possible to create a layout.

Create layout with HandlebarsJS

Prestashop Docker Compose

A docker-compose file for the Prestashop Open Source solution with the Prestashop official Docker image and MySQL database.

Prestashop Docker Compose

Make only part of Typescript properties required

Making all properties of a type or an interface required is easy with the `Required` TypeScript utility. Let's make only part of the optional properties required.

Make only part of Typescript properties required

NestJS Project Dockerfile

A Dockerfile to build production-ready NestJS app docker image.

NestJS Project Dockerfile

Node Typescript Project Dockerfile

A Dockerfile to build production-ready Node Typescript docker image.

Node Typescript Project Dockerfile

Renommer l'extension de fichiers avec bash sur Mac et Linux

Un script bash permettant de change l'extension de fichiers d'un dossier de manière récursif.

Renommer l'extension de fichiers avec bash sur Mac et Linux

Gogs Docker Compose

Gogs git repositories self-hosting solution docker-compose file.

Gogs Docker Compose