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
macbook :: ~/code/sphinxsearch-read-only » svn diff | |
Index: src/searchd.cpp | |
=================================================================== | |
--- src/searchd.cpp (revision 4648) | |
+++ src/searchd.cpp (working copy) | |
@@ -17303,6 +17303,7 @@ | |
{ | |
tOut.DataTuplet ( "ram_chunk", tStatus.m_iRamChunkSize ); | |
tOut.DataTuplet ( "disk_chunks", tStatus.m_iNumChunks ); | |
+ tOut.DataTuplet ( "mem_limit", tStatus.m_iMemLimit ); |
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
sub xs_encode_json { | |
JSON::XS::encode_json $_[1]; | |
} | |
{ | |
no warnings; | |
*Mojo::JSON::encode = \&xs_encode_json; | |
} |
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
#!/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'; |
OlderNewer