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
<f:section title="インスタンス設定"> | |
<f:entry field="envs" title="インスタンス"> | |
<f:repeatable field="envs" minimum="1"> | |
<j:set var="helpURL" value="/plugin/aws_management/" /> | |
<table width="100%"> | |
<f:entry field="envName" title="名前(整理用)" help="${helpURL}help-envName.html" > | |
<f:textbox></f:textbox> | |
</f:entry> | |
<f:entry> | |
<div align="right"> |
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
<select name="tool"> | |
<j:set var="tool" value="${instance.tool}" /> | |
<j:choose> | |
<j:when test="${tool == 'chef'}"> | |
<option value="chef" selected="selected">Chef</option> | |
</j:when> | |
<j:otherwise> | |
<option value="chef">Chef</option> | |
</j:otherwise> | |
</j:choose> |
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
<!-- | |
public FormValidation doCheckHoge(@QueryParameter String value) throws IOException, ServletException { | |
return FormValidation.ok(); | |
} | |
--> | |
<j:set var="checkURL" value="descriptorByName/pluginName/" /> | |
<f:entry field="hoge" title="Hoge" help="${helpURL}help-hoge.html"> | |
<f:textbox clazz="required" checkUrl="'${checkURL}checkHoge?value='+encodeURIComponent(this.value)"></f:textbox> | |
</f:entry> |
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 | |
# -*- encoding: utf-8 -*- | |
instance_id = ARGV[0] | |
if !instance_id | |
print 'Empty Instance ID' | |
exit(1) | |
end | |
ssh_cmd =<<"EOS2" |
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 | |
# -*- encoding: utf-8 -*- | |
#ロールの決定(general|web|db) | |
role = ARGV[0] | |
if !role | |
role = 'general' | |
end | |
#AWSのリージョン |
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
<!-- | |
設置対象のhtmlファイルはsrc/main/webapp/help-envName.htmlに設置する | |
--> | |
<j:set var="helpURL" value="/plugin/plugin_name/" /> | |
<f:entry field="envName" title="名前" help="${helpURL}help-envName.html"> | |
<f:textbox clazz="required"></f:textbox> | |
</f:entry> |
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
<f:section title="設定"> | |
<f:entry field="envs" title="各設定"> | |
<f:repeatable field="envs" minimum="0"> | |
<table width="100%"> | |
<f:entry field="envName" title="名前"> | |
<f:textbox clazz="required"></f:textbox> | |
</f:entry> | |
<f:entry> | |
<div align="right"> | |
<f:repeatableDeleteButton /> |
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 -*- | |
# ファイルから任意のURLを読み込んでHTTP経由でリクエストを投げた結果を取得する Jmeterでもいいけどね... | |
# | |
# 使用方法 | |
# chmod a+x /path/to/get_http_request.rb | |
# | |
# 任意のディレクトリ | |
# ├get_http_request.rb |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>トラックバックテスト</title> | |
</head> | |
<body> | |
<h1>トラックバック送信テスト</h1> | |
<form action="" method="post"> |
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
libiconvのインストール | |
cd /usr/local/src | |
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz | |
tar zxvf libiconv-1.13.1.tar.gz | |
cd libiconv-1.13.1 | |
./configure | |
make && make install | |
QDBMのインストール |