Blogs

View SSL certificate thumbprint / fingerprint / serial number

Assume you've just installed your certificate from LetsEncrypt and you want to verify that the thumbprint you see in your browser matches the value in the certificate itself.

Note that certificate thumbprint, fingerprint and serial number are all the same thing.

From the browser, we can see that the cert is using sha1 for the thumbprint.

 

The path to the cert provided by LetsEncrypt would be something like

McAfee virus

My laptop came pre-installed with a trial version of McAfee anti-virus software. Since my employer got hit with the qbot trojan I was concerned that it might have spread to my personal laptop so I decided to refresh it, which brought back all the pre-installed software including McAfee. In light of the qbot incident I decided to leave McAfee alone this time.

After a couple days I opened my laptop and wanted to work on a project. After 10 minutes waiting for the machine to become usable, watching Task manager and all of the McAfee processes, I decided this wasn't working out.

Drupal 7 print stack trace

Drupal 7 stack trace

 

//$e = new \Exception;
//$trace = var_dump($e->getTraceAsString());
//$trace = $e->getTraceAsString();
//$formatted_trace = str_replace('#', '<br />#',$trace);
//drupal_set_message($formatted_trace);
//drupal_debug($e->getTrace());
//debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
 

Repair mysql database

After an unexpected shutdown, your mysql dastabase files might need to be recovered.

https://www.a2hosting.com/kb/developer-corner/mysql/repairing-mysql-data…

Database datafiles for mysql are typically in /var/lib/mysql, one folder for each schema so long as you have innodb_file_per_table set.

[mysqld]
innodb_file_per_table=1

The mysql log file can be found at /var/log/mysql/error.log. 

Check each database with

mysqlcheck my_database

Pages

Subscribe to Blogs