Skip to content

Instantly share code, notes, and snippets.

Avatar

Kazuyoshi Kato kzys

View GitHub Profile
View cocproxy.nginx.conf
#!nginx -p . -c cocproxy.nginx.conf
error_log /dev/stderr debug;
daemon off;
events {
worker_connections 48;
}
http {
@riywo
riywo / gist:725640
Created Dec 2, 2010
easy QueryComment(where the query executed)
View gist:725640
my $dbh = DBI->connect('dbi:mysql:test','test','test', {
RaiseError => 1,
Callbacks => {
ChildCallbacks => {
execute => sub {
my ($obj, @binds) = @_;
my ($package, $file, $line) = caller;
$obj->{Database}->{Statement} .= "/* $package:$file:$line */";
return;
},
You can’t perform that action at this time.