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
[:foo, :bar, :baz].to_enum.with_index(1).each do |elem, i| | |
puts "#{i}: #{elem}" | |
end | |
1: foo | |
2: bar | |
3: baz |
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
elisp/anything-auto-install.el | |
elisp/anything-complete.el | |
elisp/anything-config.el | |
elisp/anything-etags.el | |
elisp/anything-exuberant-ctags.el | |
elisp/anything-gist.el | |
elisp/anything-grep.el | |
elisp/anything-gtags.el | |
elisp/anything-ipa.el | |
elisp/anything-match-plugin.el |
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
#Expiredヘッダを付与する | |
ExpiresActive On | |
ExpiresByType text/css "access plus 14 days" | |
ExpiresByType application/javascript "access plus 14 days" | |
ExpiresByType application/x-javascript "access plus 14 days" | |
ExpiresByType text/javascript "access plus 14 days" | |
ExpiresByType image/jpeg "access plus 14 days" | |
ExpiresByType image/png "access plus 14 days" | |
ExpiresByType image/gif "access plus 14 days" | |
ExpiresByType image/x-icon "access plus 14 days" |
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のインストール |
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
#!/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
<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
<!-- | |
設置対象の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
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
#ロールの決定(general|web|db) | |
role = ARGV[0] | |
if !role | |
role = 'general' | |
end | |
#AWSのリージョン |