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
# Il faut commenter la ligne de content_filter comme ci-dessous | |
#content_filter = amavis:[127.0.0.1]:10024 |
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
# Pour voir la mail queue | |
mailq | |
# Pour rajouter les emails en attente dans la mail queue et demander à Postfix de tenter à nouveau de les envoyer | |
postsuper -r ALL | |
postfix flush |
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
find . -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n |
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
mkdir /var/lib/amavis/virusmails/ | |
chmod 750 /var/lib/amavis/virusmails/ | |
chown amavis /var/lib/amavis/virusmails/ |
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
find /var/lib/amavis/virusmails/ -type f -mtime +30 -delete |
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
var nb_tests, nb_decoupes_intervalle, nb_valeurs, partie_entiere, i, j, compteur : Entier | |
var valeur, partie_decimale, borne_inf, borne_sup, valeur_theorique, pourcentage_ecart : Réel | |
var tab, densite : Tableau [1...nb_valeurs] de Réel | |
// Les informations de base | |
nb_tests <- SQRT(2) // SQRT = square root (racine carrée) | |
nb_decoupes_intervalle <- 10 | |
nb_valeurs <- 1000 | |
pour i <- 1 à nb_valeurs faire |
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
<?php | |
// N'a rien à voir avec du calcul. Mise en forme. | |
echo ' | |
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<title>Antoine Augusti</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> | |
<meta name="description" content="Antoine Augusti : développement web, actualité technologique et projets en tout genres."/> |
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
<?php | |
/* CONFIGURATION */ | |
$host = 'localhost'; | |
$user = 'root'; | |
$password = 'root'; | |
$db_name = 'euromillions'; | |
$time_to_play = 10000; | |
/* END OF CONFIGURATION */ |
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
CREATE TABLE `euromillions` ( | |
`id` int(10) NOT NULL AUTO_INCREMENT, | |
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
`nb_1` int(2) NOT NULL, | |
`nb_2` int(2) NOT NULL, | |
`nb_3` int(2) NOT NULL, | |
`nb_4` int(2) NOT NULL, | |
`nb_5` int(2) NOT NULL, | |
`star_1` int(2) NOT NULL, | |
`star_2` int(2) NOT NULL, |
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
<?php | |
/* CONFIGURATION */ | |
$host = 'localhost'; | |
$user = 'root'; | |
$password = 'root'; | |
$db_name = 'euromillions'; | |
$time_to_play = 10000; | |
/* END OF CONFIGURATION */ |