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
-- lsyncd をインストール | |
-- sudo yum install -y --enablerepo=epel lsyncd | |
-- | |
-- バケット名を記載した下記ファイルを用意する | |
-- /powercms/app/tools/lsyncd_s3buckets.lua | |
-- 内容 | |
-- lsyncd_target_buckets = { | |
-- "public-singleaz-01-5h19ik0zpa42ulxr", -- vhost01 | |
-- "", -- vhost02 | |
-- } |
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
s3bucket = "public-singleaz-01-5h19ik0zpa42ulxr" | |
watchpath = "/powercms/data/sites/01/files" | |
cpexec = function(event) | |
local src_path = event.sourcePathname | |
local dst_path = event.sourcePathname | |
dst_path = string.sub( dst_path , 31 ); | |
spawnShell( event, "aws s3 cp " .. src_path .. " s3://" .. s3bucket .. dst_path .. " --include '*' --exclude '.*' || :" ) | |
end |
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
#転送元でユーザを作成し、鍵を固める | |
groupadd syncuser | |
useradd -g syncuser syncuser | |
passwd -d syncuser | |
vi /etc/sudoers.d/suncuser | |
syncuser ALL=(ALL) NOPASSWD:ALL | |
su syncuser | |
cd | |
mkdir .ssh |
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
settings { | |
logfile = "/var/log/lsyncd.log", | |
statusFile = "/var/log/lsyncd.status", | |
statusInterval = 1 | |
} | |
-- /var/www/html | |
sync { | |
default.rsync, | |
source = "/var/www/html/", | |
target = "syncuser@10.0.0.4:/var/www/html/", |
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
#アイテムテーブル | |
UPDATE `mt_asset` SET `asset_file_path` = REPLACE(`asset_file_path`, '\\', '\/') WHERE `asset_file_path` REGEXP '\\\\' ; | |
#FileInfoテーブル | |
UPDATE `mt_fileinfo` SET `fileinfo_file_path` = REPLACE(`fileinfo_file_path`, 'D:\\inetpub\\wwwroot', '\/powercms\/data\/sites\/01\/files') WHERE `fileinfo_file_path` REGEXP '\\\\'; | |
UPDATE `mt_fileinfo` SET `fileinfo_file_path` = REPLACE(`fileinfo_file_path`, '\\', '\/') WHERE `fileinfo_file_path` REGEXP '\\\\'; |
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
作成日時を出したいオブジェクト(今回の場合はセミナー参加オブジェクト)にカスタム項目を一つ追加します。 | |
カスタム項目のデータ型を「数式」にします | |
数式の戻り値のデータ型を「日付/時間」にします | |
数式の内容に「CreatedDate」と記述します(作成日時を得る場合) | |
追加したカスタム項目はそのままではレポートで使用できません。使用したいレポートタイプに[設定] -> [レポートタイプ] (クィック検索に「レポートタイプ」と指定)からアクセスして(今回の場合は「会員_セミナー参加」)、「レポートで選択可能な項目」の編集画面に遷移して、追加したカスタム項目を画面右の項目からドラッグ&ドロップで対象のオブジェクト(今回の場合はセミナー参加オブジェクト)に追加します。 | |
レポートで作成したカスタム項目を配置します。 |
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
chmod -R a=rX,u+w,g+w |
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
<!DOCTYPE html><meta charset=UTF-8><title>input type=radio readonly without disabled</title> | |
<link rel=stylesheet href=https://cdn.jsdelivr.net/pure/0.6.0/pure-min.css> | |
<style>body { margin: 8px; font-size: large }</style> | |
<script src=https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js></script> | |
<script> | |
jQuery(function($) { | |
$('input[type="radio"][data-readonly]') | |
.on("click", function() { $(this).prop("checked", false) }); | |
}); | |
</script> |
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
<div id="contents_main_inner"> | |
<div> | |
<select id="hoge"> | |
<option value="1">オプション1</option> | |
<option value="2">オプション2</option> | |
<option value="3">オプション3</option> | |
<option value="4">オプション4</option> | |
<option value="5">オプション5</option> | |
<option value="6">オプション6</option> | |
<option value="7">オプション7</option> |
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
INSERT INTO `mt_template` (`template_blog_id`, `template_build_dynamic`, `template_build_interval`, `template_build_type`, `template_created_by`, `template_identifier`, `template_linked_file`, `template_linked_file_mtime`, `template_linked_file_size`, `template_modified_by`, `template_name`, `template_outfile`, `template_rebuild_me`, `template_text`, `template_type`, `template_current_revision`) VALUES | |
(36, 0, 0, 2, 1,'', '', NULL, NULL, 1,'NEWTEST', 'test.php', 0, '<h1>TEST</h1>\n<MTArchiveList archive_type="Monthly">\n\n<MTArchiveDate format="blogtimes-%Y%m" setvar="name">\n<MTArchiveDate format="%Y%m" setvar="month">\n<MTBlogTimes name="$name" month="$month" width=400 height=30 save_dir="blogtimes" linecolor="#767F58" textcolor="#767F58" fillcolor="#D4D884" bordercolor="#C0C0C0" padding="5" show_text="on">\n<img src="<$MTBlogTimesFileURL$>" width="<$MTBlogTimesWidth$>" height="<$MTBlogTimesHeight$>" alt="B L O G T I M E S" />\n</MTBlogTimes>\n\n</MTArchiveList>', 'index', 1); |
NewerOlder