Skip to content

Instantly share code, notes, and snippets.

@gawel
gawel / about_profiling.rst
Last active December 22, 2015 23:49
Profiling middleware. Log wallclock, utime, stime and idle time.

Profiling

This gist contain a set of modules to help you to profile your application

#!/bin/bash
if ! [ -e seahub.sh ]; then
echo "This script must be run in the directory of the seahub.sh script"
exit 1
fi
function check_python_executable () {
if [[ "$PYTHON" != "" && -x $PYTHON ]]; then
return 0

Parlement Virtuel

Concept

Créer un parlement virtuel pour avoir un contre pouvoir virtuel. L'idée est d'avoir le point de vue des citoyens sur les lois votées dans une assemblée et de le comparer au votes éfectués à l'assemblée réel.

@gawel
gawel / backup.py
Last active November 24, 2018 14:13
from chut import * # noqa
@console_script(fmt='msg')
def backup(args):
"""
Usage: %prog [options] sync [<server>...]
%prog add <target>
%prog list
@gawel
gawel / proxfree.youtube.js
Created November 25, 2012 22:00
Automaticaly use proxfree for youtube
// ==UserScript==
// @name proxfree youtube
// @namespace proxfree
// @include http://www.youtube.com/*
// @include https://www.youtube.com/*
// @include *proxfree*
// @version 1
// ==/UserScript==
//
if (/.*proxfree.*/.exec(window.location.href)) {