This file contains hidden or 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
| // Retourne un nombre de millisecondes en texte | |
| function msVersTexte(aMillisecondes) { | |
| // Prépare la chaîne à retourner | |
| var texte = ""; | |
| // Initialisation des unités | |
| var msParSeconde = 1000; | |
| var msParMinute = msParSeconde * 60; | |
| var msParHeure = msParMinute * 60; | |
| var msParJour = msParHeure * 24; |
This file contains hidden or 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
| procedure InfosVersion(Fichier: String; | |
| out Majeure, Mineure, Release, Build: Integer); | |
| var | |
| VerInfoSize, VerValueSize, Dummy: DWord; | |
| VerInfo: Pointer; | |
| VerValue: PVSFixedFileInfo; | |
| begin | |
| // Récupère la taille des infos de version | |
| VerInfoSize := GetFileVersionInfoSize(Pchar(Fichier), Dummy); | |
This file contains hidden or 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
| // Information sur un exécutable | |
| TInfoSurExe = record | |
| FileDescription, | |
| CompanyName, | |
| FileVersion, | |
| InternalName, | |
| LegalCopyright, | |
| OriginalFileName, | |
| ProductName, | |
| ProductVersion: String; |
This file contains hidden or 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
| #!/bin/bash | |
| for pdf in *.pdf; | |
| do | |
| # Display the PDF file to process | |
| echo "Processing file \"$pdf\"…" | |
| # Temporary folder | |
| TmpRep="/tmp/conversion$(date +%Y%m%d%H%M%S)" | |
| mkdir --parents "$TmpRep" |
This file contains hidden or 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
| #!/bin/python3 | |
| import queue | |
| import argparse | |
| import threading | |
| import urllib.request | |
| import csv | |
| import colorama | |
| from scapy.all import * | |
| # Creating the scanner queue |
This file contains hidden or 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
| #!/bin/bash | |
| find . -type f -exec file --mime-type --brief {} \; | sort | uniq --count | sort |
This file contains hidden or 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
| #!/bin/bash | |
| find ./ -type f -exec file --mime {} \; | grep "application/pdf" |
This file contains hidden or 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
| #!/bin/python3 | |
| import pygame | |
| import time | |
| # Initialisation de la police pygame | |
| pygame.font.init() | |
| # Fenêtre de jeu | |
| screen = pygame.display.set_mode((500, 600)) |
This file contains hidden or 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
| #!/bin/python3 | |
| import os | |
| def find_case_conflicts(root_dir): | |
| """ | |
| Traverse the directory tree starting from the given root directory and identify case conflicts for directories and files. Rename directories and files to resolve conflicts by generating unique names. | |
| Args: | |
| root_dir (str): The root directory from which to start checking for case conflicts. | |
| """ |
This file contains hidden or 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
| #!/bin/python3 | |
| import os | |
| import re | |
| def normalize_name(name): | |
| """ | |
| Normalize the given name by replacing multiple spaces with a single space and trimming leading and trailing spaces. | |
| Args: | |
| name (str): The name to normalize. |
OlderNewer