Skip to content

Instantly share code, notes, and snippets.

View serge-kilimoff's full-sized avatar

Serge Kilimoff-Goriatchkine serge-kilimoff

  • Paris - France
View GitHub Profile
@serge-kilimoff
serge-kilimoff / grepolis-manager-ui.user.js
Last active September 3, 2017 09:13
Extension chrome ou greasemonkey pour ajouter des raccourcis vers certaines fenêtres dans grepolis.
// ==UserScript==
// @name grepolis-manager-ui
// @namespace http://grepolis.com/
// @version 1.0
// @description Ajoute des liens pour l'ouverture des menus comme avec l'option premium de manager
// @author Serge Kilimoff-Goriatchkine
// @match https://*.grepolis.com/game/*
// @grant none
// ==/UserScript==
@serge-kilimoff
serge-kilimoff / watchdog_persistent_observer.py
Last active August 11, 2022 16:48
Persistent watchdog observer. When watchdog re-start, check if new/modify/delete/etc.. files or directories since the last launch, and send events for suscribers handlers.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Subclassing Observer for saving states of folders, and load this states at the next observation.
TODO : mapping events and handlers dispatching, for a shorter code.
"""
from __future__ import unicode_literals, print_function, division
import cPickle as pickle
import os