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
| (add-hook 'find-file-hook 'auto-insert) | |
| (setq auto-insert-alist | |
| '(("\\.hpp\\'" | |
| nil | |
| '(setq v1 (read-string "Namespace: " "cybozu")) | |
| '(setq v2 (upcase (concat v1 "_" | |
| (file-name-nondirectory | |
| (file-name-sans-extension buffer-file-name)) | |
| "_" (file-name-extension buffer-file-name)))) | |
| "// " (file-name-nondirectory buffer-file-name) n |
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
| #include "../src/memcache.hpp" | |
| #include <cybozu/dynbuf.hpp> | |
| #include <cybozu/tcp.hpp> | |
| #define TEST_DISABLE_AUTO_RUN | |
| #include <cybozu/test.hpp> | |
| #include <cybozu/util.hpp> | |
| #include <cstdint> | |
| #include <cstring> |
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
| def fizbuz(): | |
| n = 0 | |
| while True: | |
| n += 1 | |
| yield n | |
| n += 1 | |
| yield n | |
| n += 1 | |
| yield 'Fizz' # 3 | |
| n += 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
| #include <signal.h> | |
| #include <sys/syscall.h> /* For SYS_xxx definitions */ | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| int main() { | |
| pid_t tgid=18456; | |
| pid_t tid=24671; | |
| return syscall(SYS_tgkill, tgid, tid, SIGABRT); | |
| } |
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
| #include <arpa/inet.h> | |
| #include <ifaddrs.h> | |
| #include <iostream> | |
| #include <netdb.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| int main() { | |
| struct ifaddrs* addr; | |
| getifaddrs(&addr); |
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
| diff -ru virtinst-0.600.4.orig/virtinst/cli.py virtinst-0.600.4/virtinst/cli.py | |
| --- virtinst-0.600.4.orig/virtinst/cli.py 2013-03-23 01:12:13.000000000 +0900 | |
| +++ virtinst-0.600.4/virtinst/cli.py 2014-10-15 17:25:26.946638800 +0900 | |
| @@ -1684,6 +1684,8 @@ | |
| set_param("bridge", "bridge") | |
| set_param("model", "model") | |
| set_param("macaddr", "mac") | |
| + set_param("source_dev", "source") | |
| + set_param("source_mode", "source_mode") | |
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
| --- apache2-2.4.7/modules/proxy/mod_proxy.c 2013-11-16 02:07:52.000000000 +0900 | |
| +++ httpd-2.4.10/modules/proxy/mod_proxy.c 2014-06-21 22:47:30.000000000 +0900 | |
| @@ -744,22 +744,52 @@ | |
| */ | |
| const char *proxyname = r->filename + 6; | |
| int j; | |
| + apr_pool_t *rxpool = NULL; | |
| for (j = 0; j < num_sec; ++j) | |
| { |
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
| #include "../src/memcache/memcache.hpp" | |
| #include <cybozu/test.hpp> | |
| #include <cassert> | |
| #include <cerrno> | |
| #include <cstdint> | |
| #include <cstring> | |
| #include <ctime> | |
| #include <iostream> |
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
| // g++ -std=gnu++11 hoge.cpp -lpthread | |
| #include <cerrno> | |
| #include <chrono> | |
| #include <cstring> | |
| #include <iostream> | |
| #include <netdb.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <system_error> |
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
| diff -ruN debian-installer-20101020ubuntu318.15.orig/build/boot/x86/syslinux.cfg debian-installer-20101020ubuntu318.15/build/boot/x86/syslinux.cfg | |
| --- debian-installer-20101020ubuntu318.15.orig/build/boot/x86/syslinux.cfg 2014-06-03 23:02:21.000000000 +0000 | |
| +++ debian-installer-20101020ubuntu318.15/build/boot/x86/syslinux.cfg 2015-04-06 02:21:48.031746385 +0000 | |
| @@ -1,5 +1,10 @@ | |
| # D-I config version 2.0 | |
| include ${SYSDIR}menu.cfg | |
| -default ${SYSDIR}vesamenu.c32 | |
| +#default ${SYSDIR}vesamenu.c32 | |
| +# Cybozu: auto start PXE | |
| +default auto |