Skip to content

Instantly share code, notes, and snippets.

View matsumotory's full-sized avatar
:octocat:
manager now

Ryosuke Matsumoto / @matsumotory matsumotory

:octocat:
manager now
View GitHub Profile
if ((rcv_len = recvfrom(raw_socket, buf, sizeof(buf), 0, (struct sockaddr *)&dst, &fromlen) == -1)) {
ERROR("recvfrom", "recvfrom", 4);
}
printf("rec_len: %d\n", rcv_len); /* rcv_len is always 0 */
VirtualDocumentRoot "/usr/local/apache/vhosts/%0"
$gv = 1
Apache.global_remove :gv
$ ./bin/mirb
mirb - Embeddable Interactive Ruby Shell
> Etcd::hoge
/Users/matsumotory/DEV/mruby/build/mrbgems/mruby-etcd/mrblib/etcd.rb:4: undefined method 'aaa' for Etcd (NoMethodError)
>
@matsumotory
matsumotory / matsumotory_survey.md
Last active August 17, 2016 16:53
matsumotory's survey: my interesting papers list
  1. Mirheidari, Seyed Ali, Sajjad Arshad, and Saeidreza Khoshkdahan. "Performance evaluation of shared hosting security methods." 2012 IEEE 11th International Conference on Trust, Security and Privacy in Computing and Communications. IEEE, 2012.
  2. Labrinidis, Alexandros, and Nick Roussopoulos, "Generating dynamic content at database-backed web servers: cgi-bin vs. mod_perl.", ACM SIGMOD Record 29.1 (2000): 26-31.
  3. Soltesz, Stephen, et al. "Container-based operating system virtualization: a scalable, high-performance alternative to hypervisors." ACM SIGOPS Operating Systems Review. Vol. 41. No. 3. ACM, 2007.
  4. Banga, Gaurav, Peter Druschel, and Jeffrey C. Mogul. "Resource containers: A new facility for resource management in server systems." OSDI. Vol. 99. 1999.
  5. Sullivan, David G., and Margo I. Seltzer. "ISOL AT IONWITHFLEXIBILITY: ARESOURCEMANAGEMENTFR AMEWORK FORCENTRALSERVERS." (2000).
  6. Titchkosky, Lance, Martin Arlitt, and Carey Williamson. "A performance comparison of dynamic Web technologies." AC
//
// $ ./a.out 728_time_time_time
// key offset: 5819
// $ ./a.out 414_time_time_time
// key offset: 5819
//
#include <stdio.h>
#include <string.h>
@matsumotory
matsumotory / add_configure_option
Last active June 23, 2016 16:06
PATCH: nginx v1.9.9 supports neverbleed
--with-cc-opt='-Wno-error'
@matsumotory
matsumotory / cwd.rb
Last active November 16, 2015 07:35
execute "pwd" do
user "norikra"
cwd "/tmp"
not_if "pwd; false"
only_if "pwd; true"
end
--- scoreboard.h.orig 2014-07-15 04:55:04.000000000 +0900
+++ scoreboard.h 2015-10-16 00:06:11.265344540 +0900
@@ -37,6 +37,7 @@
#include "apr_portable.h"
#include "apr_shm.h"
#include "apr_optional.h"
+#include <netdb.h>
/* Scoreboard file, if there is one */
#ifndef DEFAULT_SCOREBOARD
# from mod_resource_checker log
<source>
type tail
path /var/log/httpd/resource.log
pos_file /var/log/td-agent/resource.log.pos
tag apache.resource
format json
</source>
<filter apache.resource.**>