Skip to content

Instantly share code, notes, and snippets.

@dhoss
dhoss / gist:253513
Created December 10, 2009 17:42 — forked from jshirley/gist:253512
#!/bin/sh
# Start a Plack daemon.
PATH=/bin:/usr/bin:/sbin:/usr/sbin:$HOME/perl5/bin
DAEMON="$HOME/perl5/bin/plackup"
NAME="AppName"
CWD=`pwd`
# Defaults
RUN="no"
@dhoss
dhoss / gist:239942
Created November 21, 2009 01:19 — forked from jhannah/gist:239941
open my $in, "oma_repl_language_text.sql";
open (my $out, ">:encoding(UTF-8)", "utf8.sql");
while (<$in>) {
print $out $_;
}
@dhoss
dhoss / mt.psgi
Created November 2, 2009 20:49 — forked from miyagawa/mt.psgi
fix'd
#!/usr/bin/perl -w
use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap ();
use MT::App::CMS;
use CGI::PSGI;
use Plack::Middleware qw(Static);
use Plack::Builder;
my $app = sub {
+my $cgi = new CGI;
-$app = $class->new( %param ) or die $class->errstr;
+$app = $class->new( %param, CGIObject => $cgi ) or die $class->errstr;
local $SIG{__WARN__} = sub { $app->trace($_[0]) };
+$app->init_request(CGIObject => $cgi);
$app->run;
## MAKE THIS A REAL FUCKING DIFF
@dhoss
dhoss / mt.psgi
Created October 21, 2009 21:25 — forked from miyagawa/mt.psgi
#!/usr/bin/perl -w
use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap ();
use MT::App::CMS;
use CGI::PSGI;
use Plack::Builder;
my $app = sub {
my $cgi = CGI::PSGI->new(shift);

Moose Hackathon Agenda

This is a list of topics/ideas/wishes/dreams that we will discuss during the Moose hackathon at YAPC::NA this year. They are in no particular order, nor does inclusion of this list imply any type of endorsement of the idea, these are just ideas, so please feel free to add yours in.


  • Traits/Roles in Class::MOP
    • A low-level trait/role type primitive
  • removing Test::Exception from Moose/MOP