.
last
Welcome to my SnippetVamp space !
Reduire la consomation mémoire de MySQL avec Wamp
Ajouter à la fin du fichier my.ini
table_definition_cache = 400
MySQL Windows
http://forum.wampserver.com/read.php?2,118339,118370
<iframe width="100%" height="218" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=524c34a3e84b8" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 02/10/2013
Domaines alternatifs pour spamgourmet
spamgourmet.net
spamgourmet.org
spamcannon.net
antichef.com
antichef.net
neverbox.com
recursor.net
dfgh.net
vspameater.org
xoxy.net
spam
https://spamgourmet.com/index.pl?printpage=faq.html
<iframe width="100%" height="362" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=5237317ae9bb8" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 16/09/2013
Supprimer un service Windows
SC DELETE "nomduservice"
Windows
<iframe width="100%" height="200" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=523035dc31aba" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 11/09/2013
Tag, nom, fabriquant d'un PC sous Windows
wmic csproduct get vendor,name,identifyingnumber
Windows
<iframe width="100%" height="200" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=522de01e44f39" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 11/09/2013
Récupérer le jour de la semaine
//$tsDay timestamp
//Jour au format long
function getDayOfTheWeek($tsDay) {
$days = array("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi");
return $days[date("w", $tsDay)];
}
//Jour au format court
function getDayOfTheWeekShort($tsDay) {
$days = array("Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam");
return $days[date("w", $tsDay)];
}
PHP date
<iframe width="100%" height="416" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=521f534d62a6b" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 29/08/2013
Ne garder que les chiffres dans un texte
function onlyDigits($string) {
return preg_replace("#[^0-9]#", "", $string);
}
PHP
<iframe width="100%" height="236" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=521e09312f006" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 28/08/2013
Récupérer l'extension d'un fichier
function getExt($file) {
return pathinfo($file, PATHINFO_EXTENSION);
}
PHP
<iframe width="100%" height="236" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=521dc1a973cf9" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 28/08/2013
Ajouter un zéro devant les chiffres <10
//Javascript
function addZ(n) {
return (n<10)?"0"+n:n;
}
//PHP
function addZ($n) {
return ($n<10)?"0".$n:$n;
}
Javascript PHP
<iframe width="100%" height="344" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=521da4168d169" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 28/08/2013
Nombre de jours entre 2 dates
function nbJourEntreDate($date1, $date2) {
$datetime1 = new DateTime(date("Y-m-d", $date1));
$datetime2 = new DateTime(date("Y-m-d", $date2));
$interval = $datetime1->diff($datetime2);
return $interval->format('%a');
}
PHP date
<iframe width="100%" height="290" src="http://sykius.fr/snippetvamp/snippetvamp.php?embed=5215cf0479f97" type="text/html"></iframe>
Text only - Permalink - Snippet public post date 22/08/2013