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
#!/bin/env python | |
import sys | |
import libvirt | |
import guestfs | |
from lxml import etree | |
if (len(sys.argv) != 4): | |
sys.exit('Usage: # sudo python %s domain eth0 eth1' % sys.argv[0]) | |
domain = sys.argv[1] |
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 -*- | |
require 'fileutils' | |
require 'date' | |
require 'yaml' | |
require 'uri' | |
require 'rexml/document' | |
include REXML | |
doc = Document.new File.new(ARGV[0]) |
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
1. Download Cygwin: http://www.cygwin.com | |
2. Run setup.exe and install the following packages in addition to the default ones: | |
- make | |
- boost | |
- libncurses-devel | |
- pkg-config | |
- perl | |
3. Download and compile Protocol Buffers: http://code.google.com/p/protobuf/ |
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
diff -ur php-5.2.17/sapi/cgi/cgi_main.c php-5.2.17_patched/sapi/cgi/cgi_main.c | |
--- php-5.2.17/sapi/cgi/cgi_main.c 2010-01-03 18:23:27.000000000 +0900 | |
+++ php-5.2.17_patched/sapi/cgi/cgi_main.c 2012-05-24 20:16:28.000000000 +0900 | |
@@ -62,6 +62,7 @@ | |
#include "php_main.h" | |
#include "fopen_wrappers.h" | |
#include "ext/standard/php_standard.h" | |
+#include "ext/standard/url.h" | |
#ifdef PHP_WIN32 | |
#include <io.h> |
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/perl | |
use strict; | |
use warnings; | |
print <<EOT; | |
- | bandwidth | iops | |
--------------|-------------|-------- | |
EOT |
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
--- modules/ldap/files/password-auth-ac | |
+++ modules/ldap/files/password-auth-ac | |
@@ -3,24 +3,25 @@ | |
# User changes will be destroyed the next time authconfig is run. | |
auth required pam_env.so | |
auth sufficient pam_unix.so nullok try_first_pass | |
-auth requisite pam_succeed_if.so uid >= 500 quiet | |
+auth requisite pam_succeed_if.so uid >= 1000 quiet_success | |
auth sufficient pam_ldap.so use_first_pass | |
auth required pam_deny.so |
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
# Emacs style key binding | |
bindkey -e | |
# プロンプトのカラー表示を有効 | |
autoload -U colors | |
colors | |
# デフォルトの補完機能を有効 | |
autoload -U compinit | |
compinit |
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
--- | |
service: minne | |
enable: | |
- h2 | |
- mruby | |
mrbgems: | |
- mruby-foo | |
- mruby-bar |
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
InnoDBの要注意パラメータをピックアップしてってる | |
innodb_adaptive_flushing_lwm | |
innodb_change_buffer_max_size | |
innodb_io_capacity | |
innodb_io_capacity_max | |
OlderNewer