Skip to content

Instantly share code, notes, and snippets.

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

Mickaël Andrieu mickaelandrieu

💻
Hard Working on IA Projects
View GitHub Profile
@mickaelandrieu
mickaelandrieu / upgrade2.3-to-2.7.md
Last active March 18, 2025 14:11
Complete migration guide from Symfony 2.3 LTS to Symfony 2.7 LTS

From Symfony 2.3 to Symfony 2.7: the complete guide

Objectives

  • assume your code doesn't use any deprecated from versions below Symfony 2.3
  • update dependencies from 2.3 to 2.7
  • do not support "deprecated", be "Symfony3-ready"
  • list tasks component by component, bundle by bundle.
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:
@mickaelandrieu
mickaelandrieu / upgrade_to_symfony3-lts.md
Last active May 21, 2024 03:39
Migration guide to Symfony 3 LTS

Let's migrate a Symfony 2.8 LTS application to Symfony 3 LTS

Handle deprecations

First of all, ensure you don't have any deprecated!

The Symfony documentation explains it well, but let's sum up:

  • install the phpunit bridge ($ composer require --dev symfony/phpunit-bridge)
  • also check all your pages using web profiler and be ensure there is no deprecation error handled
  • found errors and need help about how to fix it ? I did a sort of guide.
[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é]
@mickaelandrieu
mickaelandrieu / install.sh
Last active May 3, 2023 21:40
Install phantomjs/casperjs on GNU/Linux
#!/bin/bash
# `` sudo sh install.sh ``
# Developement environnement
# Important: use 'i686' instead of 'x86_64'
#
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724
echo Installation de Phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2
@mickaelandrieu
mickaelandrieu / quotes_json.js
Created November 26, 2013 12:50
Scrap a website with CasperJs, JSON output.
var links = [];
var quotes = [];
var tempUrl = [];
var infos = [];
var maxLinks = 10;
var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss';
var newUrl;
var x = require('casper').selectXPath;
@mickaelandrieu
mickaelandrieu / index.php
Created August 9, 2018 19:21
Contrôleur frontal standard Symfony 4
<?php
use App\Kernel;
use Symfony\Component\Debug\Debug;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\HttpFoundation\Request;
require __DIR__.'/../vendor/autoload.php';
// The check is to ensure we don't use .env in production
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')