Skip to content

Instantly share code, notes, and snippets.

View touilleMan's full-sized avatar
🥄

Emmanuel Leblond touilleMan

🥄
View GitHub Profile
@touilleMan
touilleMan / SimpleHTTPServerWithUpload.py
Last active April 10, 2024 12:41 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
@touilleMan
touilleMan / multiReplace.lua
Last active January 9, 2020 11:45
Aegisub script to do multiple replacements a once on the sub
--[[
multiReplace is (c) 2015 by Emmanuel Leblond <emmanuel.leblond@gmail.com>.
It is licensed to you under the terms of the WTFPLv2 (see below).
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Keybase proof

I hereby claim:

  • I am touilleMan on github.
  • I am touilleman (https://keybase.io/touilleman) on keybase.
  • I have a public key whose fingerprint is 08B3 DE7C 9373 8156 219E CA52 C360 860E 645E FFC0

To claim this, I am signing this object:

@touilleMan
touilleMan / pytest-trio.py
Last active November 15, 2017 13:33
Pytest-trio tentative...
"""pytest-trio implementation."""
import contextlib
import inspect
import socket
from functools import partial
import pytest
import trio
@touilleMan
touilleMan / dyndns_refresh.py
Created January 30, 2024 11:01
Poll Livebox and refresh OVH DynDNS
#! /usr/bin/env python3
# Most internet box support DynDNS... but not my Livebox !
# Well it's more complicated than that: only a (very) limited
# number of DynDNS services are supported, and OVH is not among
# them... After all, why would the biggest French internet provider
# support the biggest French hosting service ? (╬ ಠ益ಠ)
#
# Anyway, this script poll the Livebox to retrieve it current IP address,
# then (if it has changed) update the OVH DynDNS service accordingly.