Skip to content

Instantly share code, notes, and snippets.

View nicoschoenmaker's full-sized avatar

Nico Schoenmaker nicoschoenmaker

View GitHub Profile
@nicoschoenmaker
nicoschoenmaker / DeprecationErrorHandler.php
Created February 19, 2016 15:53
Logging Symfony deprecation errors to the log
/**
* The goal of this handler is to write all silenced (@) E_USER_DEPRECATION
* errors to the server error log.
*
* Please note that only one error handler can be active at any given point in
* time. This means two things:
* - We have to be a good citizen and call the previous error handler (if any).
* - We're fully dependant for later error handlers to do the same thing.
*/
class DeprecationErrorHandler
@nicoschoenmaker
nicoschoenmaker / deployment_triangle.dot
Created February 4, 2013 20:32
"Dot" /graphviz source code of graph used to create the image of the deployment triangle at http://nschoenmaker.nl/2013/02/technical-solution-to-a-social-problem
digraph deployment_triangle {
subgraph same_ranking_subgraph {
rank = same;
deployed;
master;
}
deployed -> "target tag" -> master -> "target tag" -> deployed -> master -> deployed
}