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
// これがうまく行って | |
$.each(reserve_ids,function(index,elem) { | |
$.ajax({ | |
type: "GET", | |
url: "execute.php", | |
success: function(data){ | |
// いろいろ | |
}, | |
error: function(data) { | |
// いろいろ |
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
diff -wbEB views/sp/confirm.tmpl.php views/tablet/confirm.tmpl.php |
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
[2016-01-01 20:27:57] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Fatal error: Call to a member function set() on null in /home/vagrant/tweetranking/vendor/laravel/socialite/src/One/AbstractProvider.php:49 | |
Stack trace: | |
#0 /home/vagrant/tweetranking/app/Http/Controllers/Auth/AuthController.php(82): Laravel\Socialite\One\AbstractProvider->redirect() | |
#1 [internal function]: App\Http\Controllers\Auth\AuthController->redirectToProvider() | |
#2 /home/vagrant/tweetranking/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(76): call_user_func_array(Array, Array) | |
#3 /home/vagrant/tweetranking/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(146): Illuminate\Routing\Controller->callAction('redirectToProvi...', Array) | |
#4 /home/vagrant/tweetranking/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(94): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\Auth\AuthController), Object(Illuminate\Routing\Route), 'redirectToP |
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
require "support/utilities" | |
RSpec.configure do |config| | |
config.expect_with :rspec do |expectations| | |
expectations.include_chain_clauses_in_custom_matcher_descriptions = true | |
end | |
config.mock_with :rspec do |mocks| | |
mocks.verify_partial_doubles = true | |
end |
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
AWS_PROFILE_NAME=test # 作りたいところのプロフィール名 | |
USER_NAME=test-user # ユーザー名 | |
PASSWORD=iD8Bkcd4-JrxUXQ5v # 初期パスワード | |
GROUP_NAME=developer # グループ名 先にiamで作っとく必要あります。 |
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
<source> | |
type config_expander | |
<config> | |
type tail | |
format ltsv | |
time_format %d/%b/%Y:%H:%M:%S %z | |
path XXXXXXXXXXXXXXXXXXX | |
tag apache.access | |
pos_file /var/log/td-agent/apache.access.pos | |
</config> |
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
LogFormat "host:%h\tident:%l\tuser:%u\ttime:%{%d/%b/%Y:%H:%M:%S %z}t\tmethod:%m\tpath:%U%q\tprotocol:%H\tstatus:%>s\tresponse-size:%b\trefer:\"%{Referer}i\"\tuser-agent:\"%{User-Agent}i\"\tx-forwarded-for:\"%{X-Forwarded-For}i\"\tquery:\"%q\"\tcookie:\"%{cookie}i\"" ltsv | |
CustomLog logs/access_log ltsv |
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
# ユーザーのグループへの追加 | |
AWS_PROFILE_NAME="AWS cli のProfile名" | |
USER_NAMES="ユーザー名" | |
GROUP_NAME="グループ名" | |
for USER_NAME in $USER_NAMES | |
do | |
aws iam add-user-to-group --group-name $GROUP_NAME --user-name $USER_NAME --profile $AWS_PROFILE_NAME | |
done | |
exit |
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 | |
AWS_PROFILE_NAME=$1 | |
groups=$(aws iam list-groups --query Groups[][GroupName] --profile $AWS_PROFILE_NAME --output text) | |
for group_name in $groups | |
do | |
aws iam get-group --group-name $group_name --query [Group.GroupName,Users[][UserName]] --profile $AWS_PROFILE_NAME | |
# inline policies |
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 | |
# 環境のaws cli profile | |
AWS_PROFILE_NAME=$1 | |
# 環境のaws cli profileをアカウント名のsuffixにする | |
AWS_SYSTEM_ID=$AWS_PROFILE_NAME | |
# ユーザー名 | |
USER_NAME=$2 | |
# パスワード | |
PASSWORD=$3 |
NewerOlder