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 . -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
# 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
# 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
#amavis unix - - - - 2 smtp | |
# -o smtp_data_done_timeout=1200 | |
# -o smtp_send_xforward_command=yes |
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
postfix reload | |
# Reponse de Postfix : | |
#postfix/postfix-script: refreshing the Postfix mail system | |
postsuper -r ALL | |
# Exemple de reponse : | |
#postsuper: Requeued: 42 messages | |
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
<?php | |
ini_set('session.cookie_domain', substr($_SERVER['SERVER_NAME'], strpos($_SERVER['SERVER_NAME'], "."), 100)); |
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
// Dans le menu | |
<a href="signup" onClick="_gaq.push(['_trackEvent', 'Page d\'inscription', 'Clic', 'Menu']);" title="Inscription">Inscription</a> | |
// Dans l'article de blog | |
<a href="signup" onClick="_gaq.push(['_trackEvent', 'Page d\'inscription', 'Clic', 'Article de blog']);" title="Inscription">Inscription</a> | |
// Dans le footer | |
<a href="signup" onClick="_gaq.push(['_trackEvent', 'Page d\'inscription', 'Clic', 'Footer']);" title="Inscription">Inscription</a> |
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 | |
function age($naiss) | |
{ | |
list($jour, $mois, $annee) = split('[/]', $naiss); | |
$today['mois'] = date('n'); | |
$today['jour'] = date('j'); | |
$today['annee'] = date('Y'); | |
$annees = $today['annee'] - $annee; |
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
program triInsertion; | |
const MAX = 20; | |
var t : array[1..MAX] of integer; | |
var nb : integer; | |
type tableau = array[1..MAX] of integer; | |
{On recherche où placer l'élément sur l'intervalle [1..borneSup]} | |
function obtenirIndiceDInsertion (t : tableau; borneSup, lEntier : integer) : integer; | |
var i : integer; | |
begin |