Skip to content

Instantly share code, notes, and snippets.

View mateo08c's full-sized avatar
🔍
Looking for work

Matéo mateo08c

🔍
Looking for work
View GitHub Profile
@mateo08c
mateo08c / main.py
Created July 26, 2025 01:06
Python Script
import tkinter as tk
from tkinter import ttk
from tkinter.font import Font
import serial
import re
import threading
import math
from matplotlib.figure import Figure
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import sys
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <ESPFS.h>
#include <detail/mimetable.h>
AsyncWebServer server(80);
auto ssid = "";
@mateo08c
mateo08c / update-immich.sh
Created March 1, 2025 14:03
Smart Immich Docker Updater
#!/bin/bash
#
# Smart Immich Docker Updater
# An intelligent update script for Immich
#
# This script checks the current version of your Immich installation,
# compares it with the latest version available on GitHub,
# and performs the update only if necessary.
#
# Usage: ./update-immich.sh [options] [path/to/docker-compose.yml]
<script lang="ts">
import {Button, ButtonGroup, Input, InputAddon, Spinner} from "flowbite-svelte";
import {onMount} from "svelte";
export let clientId = 'xxxxx.apps.googleusercontent.com';
let googleButtonWrapper: any;
let loading = false;
export let error;
@mateo08c
mateo08c / Bind9_GeoIP-MaxMind_Best_Distance.php
Created January 15, 2022 02:03
Automatic region generation based on country for bind9 and MaxMind
<?php
$jsonFile = file_get_contents("region.json");
$json = json_decode($jsonFile, true);
$eu = [];
$na = [];
$skip = [];
foreach ($json as $item){