Snippets
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.
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.
CORS Configuration with Envoy
This snippet share an Envoy configuration example for adding CORS headers.
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.
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".
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.
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.
Odoo Docker Compose
A docker-compose file for the Odoo Open Source solution with the Odoo official Docker image and Postgres database.
Metabase Docker Compose
A docker-compose file for the Metabase Open Source solution with the Metabase official Docker image and Postgres database.
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.
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.
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.
Prestashop Docker Compose
A docker-compose file for the Prestashop Open Source solution with the Prestashop official Docker image and MySQL database.
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.
NestJS Project Dockerfile
A Dockerfile to build production-ready NestJS app docker image.
Node Typescript Project Dockerfile
A Dockerfile to build production-ready Node Typescript docker image.
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.
Gogs Docker Compose
Gogs git repositories self-hosting solution docker-compose file.