Skip to content

Instantly share code, notes, and snippets.

View lpiot's full-sized avatar
🏢
Working from my river boat

Ludovic Piot lpiot

🏢
Working from my river boat
View GitHub Profile
@lpiot
lpiot / gist:d8fb630da7d9f7222cb2c5b3ff1d1e2b
Created February 13, 2026 10:46
CNCD2026-Antoine Mayer
Une journée avec moi aux Cloud Native Days 2026
Published on 7 février 2026
Mardi 3 février 2026, après un réveil beeeeeeaucoup trop tôt, direction la gare pour rejoindre Paris et participer aux Cloud Native Days ! 🚆
Une fois arrivé sur place, la journée s’est enchaînée giga vite ! À peine le temps de prendre un café, que mes collègues Kaliop arrivent eux aussi.
le stand café
Dans la foulée, je croise mes anciens collègues de WeScale. On en profite pour discuter un peu. Et puis baaaaaaah c’est déjà l’heure de la keynote d’ouverture !
Best setup for fail2ban for hosts with ssh and apache
Jails (monitored services):
- apache - Blocks failed login attempts use the below jail
- apache-overflows - Blocks the remote host that is trying to request suspicious URLs, use the below jail
- apache-noscript - Block the remote host that is trying to search for scripts on the website to execute, use the below jail
- apache-badbots - Block the remote host that is trying to request malicious bot, use below jail
- http-get-dos - Stops DOS attack from remote host
- ssh - Blocks failed login attempts on the SSH server
@lpiot
lpiot / ocp-k8s-version.md
Last active February 24, 2026 00:13 — forked from jeyaramashok/ocp-k8s-version.md
openshift kubernetes version mapping
@lpiot
lpiot / gist:7d0c55e9c2090fd201ef6217eeb63dc9
Created April 22, 2025 15:21
outscale/outscale v1.1.0 crash when multiple provider aliases are used
# tofu plan --var-file=/secrets/customer-A.tfvars --var-file=/secrets/storcloud.tfvars
Planning failed. OpenTofu encountered an error while generating this plan.
│ Error: Plugin did not respond
│ with provider["registry.opentofu.org/outscale/outscale"],
│ on provider.tf line 10, in provider "outscale":
│ 10: provider outscale {
@lpiot
lpiot / shell_tips-and-tricks.sh
Last active April 30, 2020 09:52
SHELL - How-to convert a string with line breaks into a file
# source: https://stackoverflow.com/questions/52065016/how-to-replace-n-string-with-a-new-line-in-unix-bash-script
# Works everywhere
foo='1\n2\n3'; echo "${foo//'\n'/$'\n'}"
# With bash 4.4 and upper
foo='1\n2\n3'; echo "${foo@E}"

Keybase proof

I hereby claim:

  • I am lpiot on github.
  • I am obic (https://keybase.io/obic) on keybase.
  • I have a public key ASCI1hFXYLRGILi3cjRXQ1U3fpMFJ3aVDjz8u3K_E65HFAo

To claim this, I am signing this object: