$start = microtime(TRUE); // Code PHP à bencher for ($i = 0; $i < 10000; $i++) { isset($array[‘id’]); } echo number_format(microtime(TRUE) – $start, 6).” seconds: isset\n“;
View Enable SSL in apache2 on Debian Etch Note quick tutorial # Enable ssl a2enmod ssl # Edit /etc/apache2/ports.conf and add “Listen 443” # Generate certs: use your domain as Common Name...Read More
View Convert human readable sizes (K,M,G) to bytes in excel SI(SIERREUR(TROUVE("K";F107); 0); GAUCHE(F107;TROUVE("K";F107)-1)*1024;SI(SIERREUR(TROUVE("M";F107); 0); GAUCHE(F107;TROUVE("M";F107)-1)*1024*1024;SI(SIERREUR(TROUVE("G";F107); 0); GAUCHE(F107;TROUVE("G";F107)-1)*1024*1024*1024;F107)))Read More
View Moving the MySQL’s datadir directory Note By default, MySQL’s datadir is placed in the /var/lib/mysql directory. However, if you are planning on using MySQL tables to store a lot...Read More
View Using Virtual Ethernet Adapters in Promiscuous Mode on a Linux Host Note Très utile pour mettre une VM snort en bridge sur un linux ; il suffit de mettre les deux vmnet du bridge en...Read More