http://www.redmine.org/projects/redmine/repository/revisions/14638 を取り込む
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/bash | |
cd $(dirname ${0}) | |
PROFILE_NAME="test-profile" | |
ROLE_NAME="test-role" | |
POLICY_ARN="arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess" | |
aws iam create-instance-profile --instance-profile-name ${PROFILE_NAME} | |
aws iam create-role --role-name ${ROLE_NAME} --assume-role-policy-document file://role.json | |
aws iam attach-role-policy --role-name ${ROLE_NAME} --policy-arn ${POLICY_ARN} |
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 | |
require 'sinatra/base' | |
class MyApp < Sinatra::Base | |
get '/' do | |
"Hello world\n" | |
end | |
end |
$ ./rollback_stretcher.sh
1) deploy-20151112-191452.yml 14) deploy-20151029-215027.yml
2) deploy-20151112-191236.yml 15) deploy-20151028-182546.yml
3) deploy-20151112-190934.yml 16) deploy-20151028-175655.yml
4) deploy-20151112-190820.yml 17) deploy-20151028-175201.yml
5) deploy-20151112-190421.yml 18) deploy-20151028-174909.yml
6) deploy-20151112-190254.yml 19) deploy-20151028-174155.yml
7) deploy-20151112-190127.yml 20) deploy-20151028-171838.yml
8) deploy-20151112-190018.yml 21) deploy-20151022-191616.yml
$ ./put-s3 --help
sage: put-s3 --file=FILE --bucket=BUCKET --region=REGION [<flags>]
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
-f, --file=FILE upload file
-b, --bucket=BUCKET bucket
-r, --region=REGION region
--path=PATH path
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"logs:CreateLogGroup", | |
"logs:CreateLogStream", | |
"logs:PutLogEvents" | |
], |
$ ./tz.sh
$ ./tz.sh | grep -v ^posix
$ ./tz.sh | grep posix
cd ~/rpmbuild/SOURCES/
wget http://www.nlnetlabs.nl/downloads/nsd/nsd-4.1.6.tar.gz
# put ~/rpmbuild/SOURCES/nsd.cron
# put ~/rpmbuild/SPECS/nsd.spec
rpmbuild -ba ~/rpmbuild/SPECS/nsd.spec
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
UserParameter=user.discovery.gearmand[*],/etc/zabbix/user.discovery.gearmand.sh "$1" | |
UserParameter=gearmand[*],/etc/zabbix/gearmand.sh $1 $2 $3 |