Skip to content

Instantly share code, notes, and snippets.

View The-Ludwig's full-sized avatar

Ludwig Neste The-Ludwig

View GitHub Profile
@saniaky
saniaky / Readme.md
Last active June 24, 2024 07:31
Docker + nginx-proxy + let's encrypt + watchtower + fail2ban

Complete solution for websites hosting

This gist contains example of how you can configure nginx reverse-proxy with autmatic container discovery, SSL certificates generation (using Let's Encrypt) and auto updates.

Features:

  • Automatically detect new containers and reconfigure nginx reverse-proxy
  • Automatically generate/update SSL certificates for all specified containers.
  • Watch for new docker images and update them.
  • Ban bots and hackers who are trying to bruteforce your website or do anything suspicious.
@The-Ludwig
The-Ludwig / bsplines.hpp
Last active February 6, 2023 20:31
Efficient BSplines in modern C++: Implemenation of an efficient algorithm to calculate the values of BSplines and their derivatives in modern C++ using `std::vector`. The function to get the BSpline values and their derivative are thoroughly documented.
/**
* @file bsplines.hpp
* @author Jan Ullmann & Ludwig Neste
* @brief Implemenation of an efficient algorithm to calculate the values of
* BSplines and their derivatives in modern C++ using `std::vector`.
* (C++ 17 required, compile with `-std=c++17`)
*
* The used algorithms are similar to and inspired by DeBoors algorithm
* (https://en.wikipedia.org/wiki/De_Boor%27s_algorithm), but distinct.
*