Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
# see https://github.com/shyouhei/ruby/wiki/committerhowto
# see http://shyouhei.tumblr.com/post/997747981/ruby-svn-git-gateway
# see http://blogs.atlassian.com/2013/12/git-svn-tips-and-tricks/
./yum-install-if-not-exist.sh git subversion git-svn screen
./install-gtags.sh
./install-gnulib.sh
#!/usr/bin/ruby
# usage : gtags-git-update commit-id
commit = ARGV.shift
git_show = `git show --stat #{commit}`
# match like this " include/linux/memblock.h |"
git_show.scan(/^ (.*\.[ch]) +\|/) { |ary|
path = ary[0]
#!/usr/bin/ruby
# -*- mode: Ruby -*-
# usage: ruby-commit-hook <file>
changelog = nil
# find out ChangeLog file
diff = `git diff --stat HEAD`
diff.scan(/^ (ChangeLog) +\|/) { |ary|
14/08/06-06:09:27 [NDK] Exception Errno::ETIMEDOUT - Connection timed out
14/08/06-06:09:27 [NDK] Exception Errno::EPIPE - Broken pipe
14/08/06-06:09:27 [NDK] -- backtrace --
14/08/06-06:09:27 [NDK] -- backtrace --
14/08/06-06:09:27 [NDK] | /home/kosaki/.gem/ruby/gems/nadoka-0.9.1/ndk/client.rb:81:in `gets'
14/08/06-06:09:27 [NDK] | /home/kosaki/.gem/ruby/gems/nadoka-0.9.1/ndk/client.rb:188:in `write'
14/08/06-06:09:27 [NDK] | /home/kosaki/.gem/ruby/gems/nadoka-0.9.1/ndk/client.rb:81:in `recv_from_clie\
nt'
14/08/06-06:09:27 [NDK] | /home/kosaki/.gem/ruby/gems/nadoka-0.9.1/ndk/client.rb:188:in `send_msg'
14/08/06-06:09:27 [NDK] | /home/kosaki/.gem/ruby/gems/nadoka-0.9.1/ndk/client.rb:56:in `start'
1) Failure:
TestDir#test_symlink [/home/kosaki/src/ruby/test/ruby/test_dir.rb:234]:
<["/tmp/__test_dir__20150915-60718-diqxrp/",
"/tmp/__test_dir__20150915-60718-diqxrp/a/",
"/tmp/__test_dir__20150915-60718-diqxrp/c/",
"/tmp/__test_dir__20150915-60718-diqxrp/e/",
"/tmp/__test_dir__20150915-60718-diqxrp/g/",
"/tmp/__test_dir__20150915-60718-diqxrp/i/",
"/tmp/__test_dir__20150915-60718-diqxrp/k/",
"/tmp/__test_dir__20150915-60718-diqxrp/m/",
diff --git a/dir.c b/dir.c
index aed3ecaa..1bf90ee 100644
--- a/dir.c
+++ b/dir.c
@@ -1809,6 +1809,13 @@ glob_helper(
new_pathtype = path_noent;
#else
new_pathtype = dp->d_type;
+ #ifdef DT_UNKNOWN
+ if (new_pathtype == DT_UNKNOWN) {
=== threading ===
#!/usr/bin/python
import sys
import threading
THR_NUM=4
class thr(threading.Thread) :
def run(self) :
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include <sys/epoll.h>
#define MAX_EVENTS 10
void* thr_epoll_wait(void* arg)
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include <sys/epoll.h>
#define MAX_EVENTS 10
struct epoll_event ev, events[MAX_EVENTS];
int epollfd;
EL7_VMWARE : build git:(trunk) ./ruby-trunk ../test.rb
GC 13 invokes.
Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)
1 0.048 629880 1207680 30192 1.64745600000000536056
2 0.063 621080 1207680 30192 1.60094999999998988116
3 0.077 781240 1207680 30192 1.96487900000003046230
4 0.086 1064920 1207680 30192 1.22489999999997323243
5 0.088 1071080 1207680 30192 0.41275399999995965317
6 0.106 1758920 2154240 53856 2.38160399999991234665
7 0.135 3014600 3851520 96288 4.32847699999988