/lost+found
-
/home/recent
- Chiffrage homomorphique
- How to dump the content of PHP sessions files
- Libération a 40 ans
- 1108
- Locking in PHP to serialize execution of critical sections
- WDC WD1002FAEX-00Z3A0 with Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH)
- Rollout your own DomainKeys-like signature verification in PHP
- RFC: Dead-WAN-Detection protocol
- « Kobo by FNAC » versus « Kobo »
- Remotely open a session on a Ubuntu desktop from Mac OS X
/var/archives
- mai 2013
- février 2013
- novembre 2012
- octobre 2012
- juillet 2012
- juin 2012
- mai 2012
- avril 2012
- mars 2012
- février 2012
- janvier 2012
- novembre 2011
- octobre 2011
- septembre 2011
- juillet 2011
- juin 2011
- mai 2011
- avril 2011
- mars 2011
- février 2011
- janvier 2011
- décembre 2010
- novembre 2010
- octobre 2010
- septembre 2010
- août 2010
- juillet 2010
- juin 2010
- mai 2010
- avril 2010
Archives de catégorie : system
How to dump the content of PHP sessions files
Here is a handy CLI oneliner to inspect the content of a user’s session file: # php -r ‘session_start();session_decode(file_get_contents($argv[1]));var_export($_SESSION);’ /path/to/php/session/sess_707484e735ad7aa9a108b23ad20cc46f
Publié dans system
Laisser un commentaire
WDC WD1002FAEX-00Z3A0 with Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH)
Dear lazy web, Are there any known incompatibilities between Western Digital SATA disks (WD1002FAEX / Firmware version 05.01D05) and ICH9 SATA controlers? I have a remote server (don’t have physical access to it) with an ICH9 SATA controler and two different disks … Continuer la lecture
Publié dans system
Laisser un commentaire
Rollout your own DomainKeys-like signature verification in PHP
Reading documentation on DKIM I found it usefull to be able to distribute public keys through DNS to allow recipient to check signed content against it. So, here is a couple of DomainKeysSigner and DomainKeysVerifier PHP classes that implement the sign … Continuer la lecture
Publié dans code, system
Laisser un commentaire
Remotely open a session on a Ubuntu desktop from Mac OS X
You have an idle Ubuntu desktop machine running somewhere in your office, and you want to open-up an X session to run some Linux specific software, but you don’t want to physically be in front of the machine?
Publié dans network, system
Laisser un commentaire
Log PHP memory consumption on each Apache requests
Edit your Apache conf and and %{mod_php_memory_usage}n to the LogFormat directive to log the PHP memory consumption in bytes : LogFormat « %h %l %u %t \ »%r\ » %>s %b » %{mod_php_memory_usage}n Save and reload Apache.
Publié dans code, system
Laisser un commentaire
Setting Postgresql work_mem from PHP
I discovered that one can set the work_mem from PHP after connecting to the database and before issuing heavy requests : <?php $conn = pg_connect(« service=test »); // Set work_mem to 128MB $res = pg_query(sprintf(« SET work_mem = ‘%s’ », pg_escape_string(’128MB’))); // Run your query … Continuer la lecture
Publié dans code, system
Laisser un commentaire
Postgresql table and index size
Here is a Postgresql requests which will allows you to view the size of your tables with their idx_scan and seq_scan counts. SELECT s.schemaname, s.relname, c.oid, c.relfilenode, s.seq_scan,s.idx_scan, c.relpages AS pages FROM pg_stat_all_tables AS s, pg_class AS c WHERE s.relname … Continuer la lecture
Publié dans code, system
Laisser un commentaire
HTTPS/SSL MITM appliance
Suite à une discussion sur les possibilités d’intercepter silencieusement les communications HTTPS/SSL, quelques liens en relation avec un de mes précédent billet (Fortinet breaks HTTPS … but they are not the only one) : Law Enforcement Appliance Subverts SSL Certied … Continuer la lecture
Publié dans network, system
Laisser un commentaire
Identifying running processes that uses deleted shared librairies
Sometimes, when you log into your Ubuntu server, you get a message warning you that the system requires a reboot : *** System restart required *** This happens after a kernel upgrade, or after upgrading a shared library like openssl … Continuer la lecture
Publié dans system
3 commentaires
OpenLDAP 2.4.x with `cn=config’ configuration
Today I upgraded an OpenLDAP 2.3.x running on an aging custom Linux distro to a brand new Ubuntu 10.04 LTS with OpenLDAP 2.4.x. I was surprised by the lack of a `slapd.conf’ config file, which is replaced by a `cn=config’ … Continuer la lecture
Publié dans system
Laisser un commentaire