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
1362 else if (!sysctl_tcp_syncookies && | |
1363 (sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) < | |
1364 (sysctl_max_syn_backlog >> 2)) && | |
1365 (!peer || !peer->tcp_ts_stamp) && | |
1366 (!dst || !dst_metric(dst, RTAX_RTT))) { | |
1367 /* Without syncookies last quarter of | |
1368 * backlog is filled with destinations, | |
1369 * proven to be alive. | |
1370 * It means that we continue to communicate | |
1371 * to destinations, already remembered |
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
1452 if (sock) { | |
1453 somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn; | |
1454 if ((unsigned)backlog > somaxconn) | |
1455 backlog = somaxconn; | |
1456 | |
1457 err = security_socket_listen(sock, backlog); | |
1458 if (!err) | |
1459 err = sock->ops->listen(sock, backlog); | |
1460 | |
1461 fput_light(sock->file, fput_needed); |
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
--- web/server.js.orig 2012-05-31 12:50:45.000000000 +0900 | |
+++ web/server.js 2012-05-31 12:51:12.000000000 +0900 | |
@@ -51,7 +51,8 @@ | |
} | |
function serveFile(response, uri, filename) { | |
- path.exists(filename, function(exists) { | |
+ var exists = fs.exists || path.exists; | |
+ exists(filename, function(exists) { | |
if(!exists) { |
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
--- jsbeautify.vim.org 2012-05-09 16:37:26.000000000 +0900 | |
+++ jsbeautify.vim 2012-05-09 16:52:24.000000000 +0900 | |
@@ -291,8 +291,8 @@ | |
endif | |
"let a:options = {} | |
- let s:opt_indent_size = 1 | |
- let s:opt_indent_char = "\t" | |
+ let s:opt_indent_size = 2 | |
+ let s:opt_indent_char = " " |
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 strict; | |
use warnings; | |
use AnySan; | |
use AnySan::Provider::IRC; | |
use Acme::AKB48; | |
my %config = ( | |
nickname => 'YOUR_NICKNAME' | |
server => 'YOUR_SERVER', |
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 strict; | |
use warnings; | |
use Benchmark qw/cmpthese/; | |
use Math::Random::MT; | |
cmpthese( | |
10000000, | |
{ | |
mt => sub { | |
Math::Random::MT::rand(1); |
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 strict; | |
use warnings; | |
use Plack::Request; | |
use Plack::Response; | |
use LWP::UserAgent; | |
use URI; | |
use JSON; | |
use Encode; |
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
traceroute to www.charaani.com (173.227.66.26), 64 hops max, 52 byte packets | |
... | |
12 ae-1.r21.plalca01.us.bb.gin.ntt.net (129.250.5.32) 115.893 ms 115.179 ms 116.070 ms | |
13 * * * | |
14 174-47-175-54.static.twtelecom.net (174.47.175.54) 163.454 ms 164.849 ms 156.800 ms | |
15 174-47-175-54.static.twtelecom.net (174.47.175.54) 157.207 ms 169.784 ms 157.129 ms | |
16 173.227.66.26 (173.227.66.26) 150.793 ms 165.933 ms 153.552 ms | |
traceroute to www2.charaani.com (173.227.66.5), 64 hops max, 52 byte packets | |
... |
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 Foo; | |
use strict; | |
use warnings; | |
our $VERSION = '0.01'; | |
use Plack::Request; | |
use Plack::Response; | |
use OAuth::Lite::Consumer; |
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 Bar; | |
use strict; | |
use warnings; | |
use base qw(Class::Accessor::Fast); | |
sub register_hook { | |
my ($self, $context) = @_; |
NewerOlder