Month: May 2012

  • nginx passenger module re-install

    I logged in this morning and one of my clients had an issue with a Passenger app that was not responding and nginx was returning 403s for requests to the app. I dug into the nginx error.log and it showed that it could not find the PassengerWatchdog file that it would use to start the […]

  • Print only uncommented lines from a text file

    A common task that I perform is to print out the lines of a text file (or script) that are not commented and no blank lines. A few good examples of where this would be useful would be the apache httpd.conf file (which has verbose comments!) and a hosts file where many entries are in […]