This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## | |
# Error management | |
has 'errors' => ( | |
traits => ['Hash'], | |
is => 'bare', | |
isa => 'HashRef', | |
default => sub { {} }, | |
handles => { | |
add_error => 'set', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Edited Class::MOP to this, around line 120: | |
catch { | |
unless (/^Can't locate \Q$file\E in \@INC/) { | |
# uncomment next line to temporarily work-around the problem | |
# s/ at / AT /gsm; | |
print "\n\n-------\n$_\n\n---------\n\n"; | |
confess "Couldn't load class ($name) because: $_"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Use this as Jenkins Build "Execute shell" script | |
# | |
# Pedro Melo <[email protected]> | |
## Die on any errors | |
set -ex | |
export OUTPUT=$WORKSPACE/logs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP (Starman) vs FastCGI (fastpass) | |
HTTP | |
Pros: | |
HTTP, easy for humans to debug | |
Also works directly behind load-balancers (without frontends) | |
Many PSGI server implementations, preforking Starman, Starlet and non-blocking Twiggy | |
Cons: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MIME::Lite::TLS; | |
use strict; | |
use warnings; | |
use Net::SMTP::TLS; | |
use parent 'MIME::Lite'; | |
=head1 NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9/16/11 11:32:07 AM com.apple.launchd[139] ([0x0-0x64f64f].com.mizage.divvy[87769]) Exited abnormally: Trace/BPT trap | |
9/16/11 11:32:27 AM Divvy[87780] *** -[NSBundle URLForResource:withExtension:]: unrecognized selector sent to instance 0x30e7b0 | |
9/16/11 11:32:27 AM Divvy[87780] An uncaught exception was raised | |
9/16/11 11:32:27 AM Divvy[87780] *** -[NSBundle URLForResource:withExtension:]: unrecognized selector sent to instance 0x30e7b0 | |
9/16/11 11:32:27 AM Divvy[87780] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle URLForResource:withExtension:]: unrecognized selector sent to instance 0x30e7b0' | |
9/16/11 11:32:27 AM Divvy[87780] Stack: ( | |
2497023979, | |
2493496891, | |
2497053162, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Apache::SizeLimit; | |
BEGIN { | |
### Don't try this at home kids... | |
# this version of CentOS is too old, no read-access to | |
# /proc/self/smaps unless you are root | |
no warnings; | |
$Apache::SizeLimit::Core::USE_SMAPS = 0; | |
*Apache::SizeLimit::Core::_platform_check_size = | |
\&Apache::SizeLimit::Core::_linux_size_check; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use AnyEvent; | |
use AnyEvent::WebService::Notifo; | |
use Sys::Hostname; | |
### Use your Notifo.com info here | |
my $api_key = ''; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@vs0303:~# apt-get install curl | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
ca-certificates libcurl3 | |
The following NEW packages will be installed: | |
ca-certificates curl libcurl3 | |
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. | |
Need to get 660 kB of archives. |