特殊ファイルを作成する (スペシャルファイル)
スペシャルファイルが何を指すのか分からん
# -*- encoding: utf-8 -*- | |
describe Array do | |
let(:e) { [1,2,3,4,5] } | |
it "先頭の要素(1)を返すメソッド" do | |
e[0].should == 1 | |
e.at(0).should == 1 | |
e.first.should == 1 |
#!/usr/bin/env perl | |
=head1 Examples | |
$ tail -f access_log | perl colorize.pl | |
$ plackup app.psgi 2>&1 | perl colorize.pl | |
=cut | |
use strict; |
Jul 3 16:26:47 users999 kernel: Memory cgroup out of memory: Kill process 1822 (perl) score 1000 or sacrifice child
Jul 3 16:26:47 users999 kernel: Killed process 1822, UID 0, (perl) total-vm:153088kB, anon-rss:32596kB, file-rss:52kB
Jul 3 16:27:24 users999 kernel: perl invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0, oom_score_adj=0
Jul 3 16:27:24 users999 kernel: perl cpuset=ruby-namahage-1 mems_allowed=0
Jul 3 16:27:24 users999 kernel: Pid: 1837, comm: perl Not tainted 2.6.32-220.13.1.el6.x86_64 #1
Jul 3 16:27:24 users999 kernel: Call Trace:
Jul 3 16:27:24 users999 kernel: [<ffffffff810c2e21>] ? cpuset_print_task_mems_allowed+0x91/0xb0
Jul 3 16:27:24 users999 kernel: [<ffffffff81113b80>] ? dump_header+0x90/0x1b0
;;; nasm -f macho mac-nasm.S -o hoge
;;; gcc -Wall -Werror -m32 -mmacosx -version-min=10.6 -o hello hoge
;;; gcc -Wall -Werror -arch i386 -mmacosx -version-min=10.6 -o hello hoge
section .data
msg: db "hello,world", 10
len: equ $-msg
/* | |
** mod_mod_handler_time.c -- Apache sample mod_handler_time module | |
** [Autogenerated via ``apxs -n mod_handler_time -g''] | |
** | |
** To play with this sample module first compile it into a | |
** DSO file and install it into Apache's modules directory | |
** by running: | |
** | |
** $ apxs -c -i mod_mod_handler_time.c | |
** |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/quota.h> | |
#include <xfs/xfs.h> | |
#include <xfs/xqm.h> | |
int main(int argc, const char *argv[]) { | |
fs_disk_quota_t d; |
$ make
make -C /usr/src/kernels/2.6.9-103.EL-x86_64 M=/home/hiroya/tpe-lkm modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-103.EL-x86_64'
CC [M] /home/hiroya/tpe-lkm/core.o
In file included from /home/hiroya/tpe-lkm/core.c:2:
/home/hiroya/tpe-lkm/module.h:59: error: syntax error before "bool"
/home/hiroya/tpe-lkm/module.h:59: warning: no semicolon at end of struct or union
/home/hiroya/tpe-lkm/module.h:63: error: syntax error before "found"
#!/usr/bin/env ruby | |
require 'sinatra' | |
get '/' do | |
sprintf "%d\n", request.port | |
end |
@{スコープ}
ngx.shared.*
@複数プロセス
すべてのリクエストで共有
ワーカー同士で共有可能
memcached に似た expire 付きの CRUD で扱う。文字列、数値のみ
_G.*
@1プロセス