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
0 - Read http://blog.databigbang.com/running-your-own-anonymous-rotating-proxies/ | |
1 - Install monit, haproxy, tor and delegated. | |
2 - Setup your environment in the setup.rb file | |
3 - Just run > ruby setup.rb | |
4 - ........... | |
5 - PROFIT! > http://www.southparkstudios.com/clips/151040/the-underpants-business |
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 FindBin;use lib "$FindBin::Bin/../blib/lib"; | |
use AnyEvent::HTTP::Server; | |
use EV; | |
use Cache::Memcached::Fast; | |
use JSON::XS; | |
use Data::Dumper; | |
my $_JSON = JSON::XS->new->utf8; |
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 Plack::Builder; | |
use Plack::Request; | |
use Cache::Memcached::Fast; | |
use JSON::XS; | |
my $_JSON = JSON::XS->new->utf8; | |
my $mem = Cache::Memcached::Fast->new({servers=>[qw/127.0.0.1:11211/]}); | |
$mem->set('counter:1',0); | |
$mem->disconnect_all; | |
builder { |
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
#!perl | |
use Benchmark qw/cmpthese/; | |
use strict; | |
my @array = ( 'a', 'a', 'a', 'b', 'c', 'd', 'e', 'g', 'e', 'e', 'g', 'c' ); | |
sub uniq_v1 { | |
my %tmp; | |
my @new_array = grep { |
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 ImportMe; | |
use Mouse; | |
my @imports; | |
sub import{ | |
my $class = shift; | |
my %args = @_; | |
my $cb = sub { | |
my $self = shift; |
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 fork::global_hook; | |
use strict; | |
use B; | |
use Devel::Gladiator; | |
use constant { | |
BLESSED => 0x00100000 | |
}; |
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 fork::child_cb; | |
use strict; | |
my @CHILD_CB; | |
BEGIN { | |
*CORE::GLOBAL::fork = sub() { | |
my $ret = CORE::fork; | |
if ( defined($ret) && $ret == 0 ) { |
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 fork::global_hook; | |
use strict; | |
use Inline C => <<EOF; | |
void find_and_call(){ | |
SV* sva; | |
GV* method; | |
HV* stash; | |
char* name; | |
uint cnt = 0; |
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
#!perl | |
my $lol = bless { string => "test_string" }; | |
$lol->{cycle}{reference}[0] = $lol; | |
my $lol1 = bless []; | |
$lol1->[0]{yet}{another}{cycle}{reference} = $lol1; | |
use strict; | |
require Devel::Gladiator; |
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 Coro::MultiChannel; | |
#perl Coro::Channel multiplexer | |
use Coro; | |
use parent qw/Coro::Channel/; | |
sub CORO(){3} | |
sub new { | |
bless $_[0]->SUPER::new($_[1]); |
OlderNewer