Skip to content

Instantly share code, notes, and snippets.

View lorn's full-sized avatar
🏠
Working from home

Lindolfo Rodrigues lorn

🏠
Working from home
View GitHub Profile
upstream manager {
# fail_timeout=0 means we always retry an upstream even if it failed
# to return a good HTTP response (in case the Unicorn master nukes a
# single worker for timing out).
server unix:/opt/x.com/manager/current/tmp/sockets/unicorn.sock fail_timeout=0;
}
server {
listen 80;
@lorn
lorn / plack.pod
Created September 22, 2010 02:24

PSGI, Plack, Bada bing bada boom!

PSGI é uma especificação, Plack é uma implementação dessa especificação feita em Perl, antes de vermos mais sobre o PSGI e o Plack, vamos voltar um pouco no tempo?

"Great Scott"!

script/dispatch.fcgi -l /tmp/myapp.socket -n 5 -d
# fcgi debug on DH :D
@lorn
lorn / moose
Created January 14, 2010 19:43
06:01 <@stevan> CLOS => the MOP
06:01 <@stevan> Smalltalk => the Metaclass layer and how Class and Object work together
06:02 <@stevan> Java => ... hmm, I should probably take that one out cause I cant think of anything
06:02 <@stevan> BETA => inner() ... and some of their meta-level stuff
06:02 <@rjbs> So, I've decuded that inner() is pretty much the only thing Moose gives me over Mouse, so I'm switching.
06:02 <@stevan> OCaml => the module system and the type system
http://www.iinteractive.com/moose/hosted-presentations/2009/e-lamp-talk/perl-great-lannguages.xul
HARNESS_PERL_SWITCHES=-MDevel::Cover make test
cover
Installing re-smop
utf8-string ( haskell package )
$ cd pugs/third-party/packages/hackage.haskell.org/utf8-string/
tar -vxzf utf8-string-0.3.1.1 ...
cd utf8 ...
chmod +x Setup.lhs