Skip to content

Instantly share code, notes, and snippets.

View sec.py
# -*- coding: utf-8 -*-
from chut import gpg
from chut import * # noqa
from getpass import getpass
from hashlib import sha1
import pexpect
def get_password():
@gawel
gawel / proxfree.youtube.js
Created Nov 25, 2012
Automaticaly use proxfree for youtube
View proxfree.youtube.js
// ==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)) {
View virtual_parlement.rst

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.

View seafile-1.6.1-fr-messages.sh
#!/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
@gawel
gawel / about_profiling.rst
Last active Dec 22, 2015
Profiling middleware. Log wallclock, utime, stime and idle time.
View about_profiling.rst

Profiling

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

View README.rst

Usage:

$ git clone https://gist.github.com/7273196.git pypy-benches
$ cd pypy-benches
$ python2.7 bootstrap.py
$ bin/buildout

zope.interface bench:

$ python2.7 bin/zope-interface
View 11link2sd
#!/system/bin/sh
if [ -f adb ]; then
./adb push 11link2sd /system/etc/init.d/11link2sd
./adb shell chown root:shell /system/etc/init.d/11link2sd
./adb shell chmod +x /system/etc/init.d/11link2sd
exit
fi
LOG=/data/link2sd-11link2sd.log
View tinydb_test.py
# -*- coding: utf-8 -*-
from tinydb import TinyDB
from tinydb import Query
db = TinyDB('db.json')
def fake():
from faker import Faker
f = Faker()