Snippets

RabbitMQ Docker Compose

In this blog post, you can find a RabbitMQ Docker Compose file that aims to simplify the deployment and management of RabbitMQ instances using Docker for local development purposes.

RabbitMQ Docker Compose

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

Creating PDFs from multiple images on Linux

Today, I want to share a nifty little trick that I recently discovered and help me a lot – how to merge a bunch of images into a single PDF file using the Linux command line.

Creating PDFs from multiple images on 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

React Component for Outbound Links

In this snippet, I will show you how to create a custom React component for outbound links that includes specific attributes for SEO concerns, such as rel="noopener noreferrer" and target="_blank".

React Component for Outbound Links

Removing Exif Data from an Image on Linux using exiftool

you can use the exiftool command line tool to remove Exif data from an image on Linux. Here's how you can use it.

Removing Exif Data from an Image on Linux using exiftool

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

Gogs Docker Compose

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

Gogs Docker Compose

Rename the extension of multiple files with bash script on Mac and Linux

A bash script snippet to rename recursively multiples files extension from the current directory.

Rename the extension of multiple files with bash script on Mac and Linux