Monthly Archives: December 2009

ld-preload-reverse

I though I would post this piece of code since it has been laying around for quite a while. ld-preload-reverse is a LD_PRELOAD library that overrides the most common functions for writing text to a terminal, and reverses their output: … Continue reading

Posted in Computers | Leave a comment

lighttpd rewrite rules for Symphony CMS

For Symphony 2.0.6. url.rewrite-once += ( “^/symphony/favicon.ico$” => “$0″, “^/symphony/symphony/(assets|content|lib|template)/.*$” => “$0″, “^/symphony/workspace/[^/]+/.*$” => “$0″, “^/symphony/image/(.+\.(jpg|gif|jpeg|png|bmp))$” => “/symphony/extensions/jit_image_manipulation/lib/image.php?param=$1″, “^/symphony/symphony/?(\?(.*))?$” => “/symphony/index.php?mode=administration&$2″, “^/symphony/symphony(/(.*/?))?(\?(.*))?$” => “/symphony/index.php?symphony-page=$1&mode=administration&$4″, “^/symphony/([^?]*/?)(\?(.*))?$” => “/symphony/index.php?symphony-page=$1&$3″ ) Replace the first occurrence of ‘symphony’ on every line with the location … Continue reading

Posted in Computers | 1 Comment