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
module Fluent | |
class AsisTailInput < TailInput | |
Plugin.register_input('tailasis', self) | |
def initialize | |
super | |
@parser = nil | |
end |
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
# <match dbi.test> | |
# type dbi | |
# #dsn DBI:Pg:dbname:127.0.0.1 | |
# dsn DBI:Mysql:dbname:127.0.0.1 | |
# db_user username | |
# db_pass password | |
# keys host,time_m,method,uri,protocol,status | |
# query insert into access_log (host, time, method, uri, protocol, status) values (?, ?, ?, ?, ?, ?) | |
# </match> |
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
diff -uNr httpd-2.4.4.orig/modules/metadata/mod_headers.c httpd-2.4.4/modules/metadata/mod_headers.c | |
--- httpd-2.4.4.orig/modules/metadata/mod_headers.c 2012-12-09 22:20:13.000000000 +0900 | |
+++ httpd-2.4.4/modules/metadata/mod_headers.c 2013-02-27 19:37:08.466361782 +0900 | |
@@ -96,7 +96,8 @@ | |
hdr_unset = 'u', /* unset header */ | |
hdr_echo = 'e', /* echo headers from request to response */ | |
hdr_edit = 'r', /* change value by regexp, match once */ | |
- hdr_edit_r = 'R' /* change value by regexp, everymatch */ | |
+ hdr_edit_r = 'R', /* change value by regexp, everymatch */ | |
+ hdr_toenv = 'E' /* copy to subprocess_env and unset */ |
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
puki2doku.pl has moved to https://github.com/yteraoka/puki2doku |
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
--- /tmp/cronoutils.c 2013-05-21 20:08:08.369211753 +0900 | |
+++ src/cronoutils.c 2013-05-21 20:08:43.056192371 +0900 | |
@@ -195,11 +195,11 @@ | |
{ | |
struct stat stat_buf; | |
- if (stat(prevlinkname, &stat_buf) == 0) | |
+ if (lstat(prevlinkname, &stat_buf) == 0) | |
{ | |
unlink(prevlinkname); |
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
register_read_type line => sub { | |
my ($self, $cb, $eol) = @_; | |
if (@_ < 3) { | |
# this is more than twice as fast as the generic code below | |
sub { | |
$_[0]{rbuf} =~ s/^([^\015\012]*)(\015?\012)// or return; | |
$cb->($_[0], "$1", "$2"); | |
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
#!/usr/bin/perl | |
# | |
# http://ftp.apnic.net/stats/apnic/delegated-apnic-latest | |
# | |
# | |
use strict; | |
use warnings; | |
print "#" x 78 ."\n"; | |
print "# \$Id\$\n"; |
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 'echo $1; echo $2' | bash hoge fuga | |
bash: hoge: No such file or directory |
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
require 'spec_helper' | |
describe package('mysql-server') do | |
it { should be_installed } | |
end | |
describe service('mysqld') do | |
it { should be_enabled } | |
it { should be_running } | |
end |
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
# coding: ascii-8bit | |
require 'spec_helper' | |
describe command('/usr/bin/curl -s http://localhost/wp-admin/install.php') do | |
it { should return_stdout /5分でできる WordPress の有名なインストールプロセスへようこそ/ } | |
end |
OlderNewer