Commit 50a0cb46 authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

Ajout d'un "mode: python" dans les fichiers où ce n'est pas fait

parent 64b6df73
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) Stéphane Glondu, Alexandre Bos, Michel Blockelet
# Remanié en 2015 par Gabriel Détraz
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script de déconnexion pour mail invalide
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) Stéphane Glondu, Alexandre Bos, et autres
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) Stéphane Glondu
# Licence : GPLv2
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# $Id: controle_tresorier2.py,v 1.3 2007-11-08 21:18:32 dimino Exp $
#
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2011 Michel Blockelet
# Licence : GPLv3
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# statistics-summary.py
# ---------------------
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Copyright (C) 2009 Antoine Durand-Gasselin
# Author: Antoine Durand-Gasselin <adg@crans.org>
......
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
from django.contrib.syndication.feeds import Feed
from email.Parser import Parser
import email.Utils
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# $Id: ajoute_chambre.py,v 1.2 2007-02-24 01:08:45 dimino Exp $
#
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Serveur SSL qui renvoie la MAC correspondant à une IP
# Ce serveur est utilisé sur Nectaris par les bornes wifi pour faire
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script de changement de mots de passe LDAP
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Copyright (C) 2009 Antoine Durand-Gasselin
# Author: Antoine Durand-Gasselin <adg@crans.org>
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# darcs_send_changes.py
# ---------------------
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
""" Génération de la configuration pour bind9
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# The authors of this code are
# Manuel Sabban <manu@feyd-rautha.org>
# Frédéric Pauget <pauget@crans.ens-cachan.fr>
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# The authors of this code are
# Manuel Sabban <manu@feyd-rautha.org>
# Frédéric Pauget <pauget@crans.ens-cachan.fr>
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import time, commands
from gen_confs import gen_config, ERREUR, OK, anim
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Envoi d'un mail donné à certains adherents
# Premier parametre : critere de recherche
# Second parametre, fichier à envoyer
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
import datetime
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Mise a jour periodique des listes d'ip et d'id disponibles.
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Restauration d'un objet précédement détruit dans la base.
......
#!/bin/bash /usr/scripts/python.sh
# -!- encoding: utf-8 -!-
# -!- mode: python; coding: utf-8 -!-
# SPAM_CABLAGES.PY -- Spamme respbats pour rappeler les cablages a effectuer
import psycopg2
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
from commands import getoutput
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
sys.path.append('/usr/scripts/gestion')
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import sys
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Stats sur les historiques
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
'''Ce script permet de savoir s'il y a du monde au 2B.'''
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
'''Ce script permet de savoir s'il y a du monde à la kfet, filtre par membres actifs.'''
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) Frédéric Pauget
# Licence : GPLv2
......
#!/usr/bin/python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#canon_wrapper.py
"""
.. codeauthor:: Daniel STAN <dstan@crans.org>
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import subprocess
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import netsnmp
from utils import sendmail
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
print_status.py
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import socket
import sys, re
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
""" Pour détecter et signaler les collisions d'adresses IPv6 """
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script de déconnexion automatique des machines du crans pour les raisons :
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Dtection des dmnagements non signals
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Utilisation de scappy pour détecter un DHCP pirate.
# $Id: dhcp-detect.py,v 1.3 2006/12/11 23:31:39 glondu Exp $
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script de génération de feuille de déconnexion pour :
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
###########################
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
###############################################################################
# parse_auth_log.py : Détecte les problèmes d'authentifications
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script pour placer les gens qui font du routeur advertisement sur le vlan
......
#! /usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Script d'envoi des statistiques des déconnections
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# uname_bornes.py
# ---------------
......
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# Pour envoyer effectivement des mails, il faut désactiver le debug
debug = 1
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# © Olivier Huber, 2010
# Licence MIT
""" Ce script vérifie la cohérence entre le mid et l'adresse ip de toutes les
......
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
class PagePerso:
"""Classe représentant la page perso d'une personne"""
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# stats_cableurs.py
# -----------------
......
#!/usr/bin/python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Affiche des statistiques sur le câblage des prises des chambres
(CRANS ou CROUS)."""
......
# Django settings for accounts project.
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
from settings import *
#DEBUG = True
......
# Django settings for accounts project.
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
DEBUG = True
TEMPLATE_DEBUG = DEBUG
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# uname_bornes.py
# ---------------
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Script de génération des configs backuppc sur babar
# Doit être exécuté par root.
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Contient les valeurs par défaut du plugin python
de Bcfg2"""
......
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""SafeEnvironment implementation for use of exec"""
import os
......
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Ce module est prévu pour héberger des factories, stockant toute
instance d'un fichier Python déjà compilé."""
......
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Fournit une couche d'abstraction Python pour les fichiers du même
nom"""
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# PythonPlugin.py
# ---------
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Fournit quelques outils pour le plugin Python"""
import os
......
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""Python plugin initializator for
Bcfg2"""
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
"""
Génère un graphe de dépendance des groups bcfg2
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
""" Envoie un mail avec la liste des serveurs qui ne sont pas synchro avec bcfg2.
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# This code is a Crans production, based on pika documentation examples
# and on the RabbitMQ tutorials.
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# This code is a Crans production, based on pika documentation examples
# and on the RabbitMQ tutorials.
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Basic logger, storing data in /var/log/clogger/*.log
# Author : Pierre-Elliott Bécue <becue@crans.org>
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Library designed to write in config files data
# safely.
......
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
def decode_dammit(s):
"""Renvoie un unicode. Que ``s`` soit un unicode, un str en UTF-8 ou un str en ISO-8859-1.
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import functools
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import warnings
import functools
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
# #############################################################
# ..
# .... ............ ........
......
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
#
# Les scripts du Cr@ns documentation build configuration file, created by
# sphinx-quickstart on Wed Mar 20 18:39:09 2013.
......
# ⁻*- coding: utf-8 -*-
# ⁻*- mode: python; coding: utf-8 -*-
"""
Backend python pour freeradius.
......
#! /usr/bin/env python
# ⁻*- coding: utf-8 -*-
# ⁻*- mode: python; coding: utf-8 -*-
#
# Draft de fichier d'authentification
#
......
#!/bin/bash /usr/scripts/python.sh
# -*- coding: utf-8 -*-
# -*- mode: python; coding: utf-8 -*-
import auth
import sys
......