Skip to Content

Blog posts

Writing about code, systems and online technology.

  • Posted on

    Logging MySQL queries to a table

    I regularly need to find out which queries are being executed while debugging or investigating application performance. I used to configure MySQL to log into a file and then search the output to see what’s happening.

  • Posted on

    How to disable Chrome security checks for testing

    I recently ran into a problem when testing a website locally using an existing domain name. After adding the domain name to my hosts file and setting up a self-generated certificate, I was suprised to see that I could not ignore the expected certificate warnings.

  • Posted on

    Deny HTTP request methods in Nginx

    In certain situations you might need to restrict access to your web application based on the request method. Maybe because the method isn’t implemented, or you need to deny certain actions as part of your security policy.

  • Posted on

    Measuring a command's execution time

    Sometimes you need to find out how much time a command needs to finish. By adding the time command you can measure the execution time.

  • Posted on

    Manage your SSH hosts in your SSH config file

    As a system administrator or web developer, you are using SSH daily to log in to your servers. If you only manage a handful of machines, you might be keeping track of their connection details in a text file or wiki entry.