This file contains 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/perl -w | |
use strict; | |
use Event::Lib; | |
use Data::Dumper; | |
use MysqlAsync; | |
use AsyncCaller qw/schedule/; | |
$Data::Dumper::Terse = 1; |
This file contains 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/bash | |
FAIL=0 | |
echo "starting" | |
./sleeper 2 0 & | |
./sleeper 2 1 & | |
./sleeper 3 0 & | |
./sleeper 2 0 & |
This file contains 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/bash | |
FAIL=0 | |
echo "starting" | |
./sleeper 2 0 & | |
./sleeper 2 1 & | |
./sleeper 3 0 & | |
./sleeper 2 0 & |
This file contains 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/perl -w | |
use strict; | |
my $time = $ARGV[0] || 1; | |
my $exit = $ARGV[1] || 0; | |
sleep $time; | |
exit $exit; |
This file contains 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/bash | |
T_USER=twitter_username | |
T_PASS=twitter_password | |
T_URL=http://twitter.com/statuses/update.xml | |
cd $HOME | |
LAST_IP=`cat .last_ip` | |
IP=`curl -s -o - http://jeremy.zawodny.com/ip.php` |
This file contains 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
<? echo $_SERVER['REMOTE_ADDR'] ?> |
This file contains 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/perl -w | |
$|++; | |
use strict; | |
use Redis; | |
my $r = Redis->new(server => 'localhost:63790') or die "$!"; | |
for my $key (1..100_000_000) { | |
my $val = int(rand($key)); |
This file contains 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/perl -w | |
$|++; | |
use strict; | |
use lib 'perl-Redis/lib'; | |
use Redis; | |
my $r = Redis->new(server => 'localhost:63790') or die "$!"; | |
## 2.5B values |
This file contains 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/perl -w | |
$|=1; | |
use strict; | |
use lib '/home/jzawodn/code/AnyEvent-Redis/lib'; | |
use AnyEvent::Redis; | |
my $host = 'localhost'; | |
my $port = 6379; | |
my $key = 'foo'; |
This file contains 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/perl -w | |
$|=1; | |
use strict; | |
use lib '/home/jzawodn/code/AnyEvent-Redis/lib'; | |
use AnyEvent::Redis; | |
my $host = 'localhost'; | |
my $port = 6379; | |
my @chan = 'a'..'z'; # which queues/channels to check | |
my $command_timeout = 1; # how long to wait for a response |
OlderNewer