This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
En-tête : | |
2 mots : 0xFF16, 0xFF16. Permettent d'intenfitifer le disque comme FFAT-16 compatible. | |
2 mots : Numéro de série du disque. Par défaut, 0xF057, 0x1337. | |
15 mots : Le nom du disque human-readable. Peut terminer par plusieurs zéros. | |
La FAT occupe le second bloc. Il y a autant d'entrées que de fichiers. Elles peuvent être dans le désordre mais il ne peut y avoir de blanc entre les entrées. | |
Structure d'une entrée FAT (une entrée est longue de 16 mots) : | |
1 mot : Taille en secteurs du fichier. | |
1 mot : Secteur de début. | |
14 mots : Nom de fichier. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import psutil | |
import sys | |
import os | |
try: | |
import RPi.GPIO as GPIO | |
except RuntimeError: | |
print("ERROR : This program needs to be executed as root") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import multiprocessing | |
import time | |
def test(i): | |
print "test({})".format(i) | |
time.sleep(0.5) | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
DOCUMENTATION = ''' | |
strategy: linear_checkpoints | |
short_description: Executes tasks in a linear fashion, allow start-at-task to run `always` tags | |
description: | |
- Task execution is in lockstep per host batch as defined by C(serial) (default all). |