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
| [Tue Apr 05 13:21:03 2011] [error] [client 10.10.44.12] [PROVE] prove_rename_function(ob_get_level, ____ob_get_level____) failed: ____ob_get_level____ already exists. | |
| [Tue Apr 05 13:21:03 2011] [error] [client 10.10.44.12] [PROVE] prove_rename_function(prove_ob_get_level, ob_get_level) failed: prove_ob_get_level does not exist. | |
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
| #!/bin/bash | |
| yum -y install yum-priorities | |
| wget http://jpackage.org/jpackage.asc | |
| rpm --import jpackage.asc | |
| wget http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-release-6-2.jpp6.noarch.rpm | |
| rpm -Uvh jpackage-release-6-2.jpp6.noarch.rpm | |
| # jpackage-utils インストール | |
| yum -y install jpackage-utils | |
| yum -y tomcat6 tomcat6-webapps tomcat6-lib tomcat6-docs-webapp tomcat6-admin-webapps |
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
| # 「せん茶請求書」インストール | |
| cd sencha-invoice-1.0.0/ | |
| rm .gitignore | |
| git init | |
| git add . | |
| git commit -m 'add initiali version' | |
| phper create | |
| git push phper orign master | |
| phper servers:add | |
| phper open |
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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| =begin | |
| 過去24時間以内に特定の地域の地震が10回超えたらアラート出す | |
| crontabへの設置方法 | |
| ----------------- |
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
| VERSION=1.0.0 | |
| EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs | |
| PREFIX=/Applications/Emacs.app/Contents/Resources | |
| ELS=magit.el magit-svn.el magit-topgit.el magit-key-mode.el | |
| ELCS=$(ELS:.el=.elc) | |
| DIST_FILES=$(ELS) Makefile magit.texi README.md magit.spec.in magit-pkg.el.in 50magit.el | |
| .PHONY=install | |
| BATCH=$(EMACS) -batch -q -no-site-file -eval \ |
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
| # ./vif eth1 10.10.1.1 | |
| cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$1 | |
| DEVICE=$1 | |
| BOOTPROTO=static | |
| NETMASK=255.255.255.0 | |
| IPADDR=$2 | |
| ONBOOT=yes | |
| EOF | |
| cat /etc/sysconfig/network-scripts/ifcfg-$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
| vrrp_instance VI_a { | |
| state BACKUP | |
| interface eth1 | |
| garp_master_delay 5 | |
| virtual_router_id 2 | |
| priority 101 # <-- これは優先度の高いサーバを本来のNFSサーバとするため、サーバごとにかえる | |
| advert_int 1 | |
| authentication { | |
| auth_type PASS | |
| auth_pass nfs_a.secret |
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
| vrrp_instance VI_a { | |
| state BACKUP | |
| interface eth1 | |
| garp_master_delay 5 | |
| virtual_router_id 2 | |
| priority 99 # NFS-AはNFS-1を優先するため、下げる | |
| advert_int 1 | |
| authentication { | |
| auth_type PASS | |
| auth_pass nfs_a.secret |
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
| #!/bin/sh | |
| # 0 4 * * * /path/to/backup >/dev/null 2>&1 | |
| dbname=mysql | |
| dbhost=localhost | |
| dbuser=root | |
| backup_dir=/tmp | |
| mysqlbackupfile=${backup_dir}/${dbname}-`date +%Y%m%d%H%M%S`.sql | |
| mysqldump ${dbname} -h ${dbhost} -u ${dbuser}| gzip > ${mysqlbackupfile}.gz |
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
| #!/usr/bin/env ruby | |
| # -*- coding: utf-8 -*- | |
| # process supervisor | |
| cmd = ARGV | |
| cmd = cmd.join(" ") | |
| while true | |
| puts "process '%s' start at %s" % [cmd,Time.now] | |
| system(cmd) |