Skip to content

Instantly share code, notes, and snippets.

View mickaelandrieu's full-sized avatar
💻
Working on AI Projects

Mickaël Andrieu mickaelandrieu

💻
Working on AI Projects
View GitHub Profile

Python backend: bugs and security issues found during the Rust port

Porting the Python backend (back/) to Rust (back-rs/, branch feat/rust-backend) meant reading every route, use case and repository closely, and running both backends side by side on the same database. Along the way this turned up defects in the Python code. Some are security holes. Some are bugs that make endpoints fail on every call. Some are robustness gaps.

Every finding below was checked again against the Python source as it stood on 2026-10-17. The last commit touching back/ at that point was e9b6b0e37 (2026-10-13). Line numbers refer to that tree.

import streamlit as st
import pandas as pd
sales = pd.read_csv('superstore.csv', parse_dates=['Ship Date', 'Order Date'])
st.markdown('# Suivi des ventes')

How to Fix UnknownHostException: connectors.airbyte.com in Airbyte Server Pod

This guide provides a structured solution to resolve java.net.UnknownHostException: connectors.airbyte.com, which occurs when Airbyte fails to resolve DNS for external services. The primary goal is to ensure proper DNS resolution by configuring CoreDNS to use reliable external DNS servers.


1. Map abctl to kubectl

Why?

import json
def tableau_vers_json(tableau):
"""
Convertit un tableau (liste de listes) en JSON.
:param tableau: Liste de listes à convertir
:return: Chaîne JSON
"""
try:
[Prénom et nom]
[Votre adresse]
[Code postal, Ville]
[Téléphone]
[Adresse e-mail]
[Date]
[Prénom et nom du député]
[Adresse du bureau du député]
[Code postal, Ville du bureau du député]
import geopandas as gdp
dep971 = gdp.read_file('./ZFU/ZFU_Dep971_Scan25_W84.shp')
dep972 = gdp.read_file('./ZFU/ZFU_Dep972_Scan25_W84.shp')
dep973 = gdp.read_file('./ZFU/ZFU_Dep973_Scan25_W84.shp')
dep974 = gdp.read_file('./ZFU/ZFU_Dep974_Scan25_W84.shp')
metropole = gdp.read_file('./ZFU/ZFU_FRM_Scan25_L93.shp')
# convert metropole to lon/lat system
dep971 = dep971.to_crs('EPSG:4326')
from pyproj import Transformer
# EPSG:2154 = Lambert 93 (french projection system)
# EPSG:4326 = WGS 84 (lon/lat)
class CoordinatesEncoder:
def convert(x: float, y: float):
transformer = Transformer.from_crs("EPSG:2154", "EPSG:4326", always_xy=True)
version: "2"
services:
plex:
image: linuxserver/plex:latest
container_name: plex
environment:
- PUID=1000
- PGID=1000
- VERSION=docker
volumes:
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/housing/housing.csv')
corr = df.corr()
corr.style.background_gradient(cmap='RdBu', vmin = -1, vmax = 1)
<?php
use Resiliency\MainCircuitBreaker;
use Resiliency\Systems\MainSystem;
use Resiliency\Storages\SimpleArray;
use Resiliency\Clients\SymfonyClient;
use Symfony\Component\HttpClient\HttpClient;
$client = new SymfonyClient(HttpClient::create());