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
# el5 | |
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm | |
# el6 | |
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm |
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
<IfModule prefork.c> | |
StartServers 8 # 起動時の子プロセス数 | |
MinSpareServers 5 # 待機する子プロセスの最小値 | |
MaxSpareServers 20 # 待機する子プロセスの最大値 | |
# 以下は同じ値 | |
ServerLimit 256 # サーバプロセスの最大値 | |
MaxClients 256 # 子プロセスの最大値 | |
MaxRequestsPerChild 4000 # 子プロセスが扱えるリクエストの最大値 | |
</IfModule> |
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
# install remi repository | |
## https://gist.github.com/tkuchiki/7331149 | |
yum install --enablrepo=remi redis |
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
# nfs server (192.168.10.10) | |
yum install -y portmap nfs-utils nfs-utils-lib | |
mkdir /nfs_data | |
chown nfsnobody:nfsnobody /nfs_data | |
cat >> /etc/exports | |
/nfs_data 192.168.10.0/24(rw,no_root_squash) | |
# 以下の順で実行 |
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
php -r 'echo crypt("PASSWORD","$6$".sha1(uniqid(mt_rand(),true)));' |
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
function copy() { | |
var src = _retrieveBySpreadSheetBySheetName('sheet1').getRange('A1') | |
var dest = _retrieveBySpreadSheetBySheetName('sheet2').getRange('B1'); | |
src.copyTo(dest); | |
} | |
function _retrieveBySpreadSheetBySheetName(sheetName) { | |
return SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName); | |
} |
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
function retrieveLastRow() { | |
return SpreadsheetApp.getActiveSheet().getLastRow(); | |
} |
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
# setting wandisco.repo | |
rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco | |
yum install --enablerepo=wandisco --disablerepo=base,updates |
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
# fingerprint | |
## sha1 | |
openssl x509 -sha1 -fingerprint -noout -in FILE | |
## md5 | |
openssl x509 -md5 -fingerprint -noout -in FILE | |
# 証明書確認 | |
openssl s_client -connect example.com:443 -showcerts |
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
AWSAccessKeyId=<Write your AWS access key ID> | |
AWSSecretKey=<Write your AWS secret key> |