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
#include <cerrno> | |
int main( int argc, char** argv ) { | |
return std::errno; | |
} |
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
#include "util.hpp" | |
#include <Poco/File.h> | |
#include <lzma.h> | |
#include <vector> | |
#include <iostream> | |
#include <cstddef> | |
#include <cstring> | |
#include <cstdlib> |
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: utf-8 -*- | |
''' | |
パスフレーズがいいらしい | |
→ 日本人なんだから日本語フレーズがいいに決まっている | |
いい辞書ないかな | |
→ pubdic+ | |
http://www.remus.dti.ne.jp/~endo-h/wnn/ | |
平仮名→ローマ字 |
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
$ sudo /sbin/mdadm -A /dev/md/a -R --auto=md --symlink=no --update=devicesize /dev/sda | |
Size was 2097128 | |
Size is 2097128 | |
mdadm: /dev/md/a has been started with 1 drive (out of 2). | |
$ ls -l /dev/md | |
total 0 | |
lrwxrwxrwx 1 root root 8 Aug 9 02:28 a -> ../md127 | |
$ sudo /sbin/mdadm -A /dev/md/b -R --auto=md --symlink=no --update=devicesize /dev/sdb |
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/env python | |
''' | |
GitHub API v3 client. | |
@see http://developer.github.com/v3/ | |
@see https://support.enterprise.github.com/entries/21391237-using-the-api | |
''' | |
from argparse import ArgumentParser, REMAINDER |
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
/** | |
* Compilation: | |
* | |
* 1. Without e2fslib: | |
* $ gcc -O2 -o due2fs due2fs.c | |
* | |
* 2. With e2fslib | |
* $ sudo apt-get install e2fslibs-dev | |
* $ gcc -DUSE_E2FSLIB -O2 -o due2fs due2fs.c -lext2fs | |
* |
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
--- linux-3.2.0/drivers/target/iscsi/iscsi_target_login.c 2012-06-07 05:37:34.000000000 +0000 | |
+++ iscsi_target_login.c 2012-06-07 05:34:22.866487169 +0000 | |
@@ -1107,6 +1107,20 @@ | |
goto new_sess_out; | |
} | |
+ /* Cybozu */ | |
+ if (zero_tsih) { | |
+ int error = 0; | |
+ spin_lock_bh(&np->np_thread_lock); |
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
--- /etc/network/if-pre-up.d/ifenslave 2012-01-24 02:26:28.000000000 +0900 | |
+++ ifenslave 2012-09-12 01:03:22.558799876 +0900 | |
@@ -224,6 +224,7 @@ | |
# Setup the master interface | |
early_setup_master | |
setup_master | |
+ enslave_slaves | |
# Indicate that we're done setting up the master | |
# this is required as ifstate is modified at the beginning |
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
--- OSDistro.py.orig 2012-06-15 06:05:53.966087512 +0000 | |
+++ OSDistro.py 2012-06-15 06:09:42.362805372 +0000 | |
@@ -951,7 +951,11 @@ | |
# regular tree: | |
# http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-amd64/ | |
+ def _set_media_paths(self): | |
+ self._hvm_kernel_paths = [ ("vmlinuz", "initrd.gz") ] | |
+ | |
def isValidStore(self, fetcher, progresscb): |
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
#include <chrono> | |
#include <typeinfo> | |
#include <cxxabi.h> | |
#include <cstdlib> | |
#include <string> | |
#include <iostream> | |
typedef std::chrono::microseconds us_t; | |
template <typename T> |
OlderNewer