[root@rhel ~]# vim /etc/sysctl.conf
[root@rhel ~]#
[root@rhel ~]# cat /etc/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
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
require 'aws-sdk-core' | |
require 'tweetstream' | |
TweetStream.configure do |config| | |
config.consumer_key = "your_twitter_consumer_key" | |
config.consumer_secret = "your_twitter_consumer_secret_key" | |
config.oauth_token = "your_twitter_access_token" | |
config.oauth_token_secret = "your_twitter_access_token_secret" | |
config.auth_method = :oauth | |
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
require 'twitter' | |
require 'mysql2' | |
TW_CONSUMER_KEY = ENV["TWCK"] | |
TW_CONSUMER_SECRET = ENV["TWCS"] | |
TW_ACCESS_TOKEN = ENV["TWAT"] | |
TW_ACCESS_TOKEN_SECRET = ENV["TWATS"] | |
twClient = Twitter::REST::Client.new do |config| | |
config.consumer_key = TW_CONSUMER_KEY |
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
#!/bin/bash | |
APPLICATIONNAME="YourApplicationName" | |
GROUPNAME="YourApplicationGroupName" | |
BUCKETNAME="YourBucketName" | |
REGION="ap-northeast-1" | |
DIR="/path/to/your/deploy/dir/" | |
ZIPNAME="app.zip" | |
# S3にzipをpushする |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "StmtXXXXXXXXXXXXXX", | |
"Effect": "Allow", | |
"Action": "s3:*", | |
"Resource": [ | |
"arn:aws:s3:::your_s3_bucket_name", | |
"arn:aws:s3:::your_s3_bucket_name/*" |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "StmtXXXXXXXXXXX", | |
"Effect": "Allow", | |
"Action": "ec2:*", | |
"Resource": "*" | |
}, | |
{ |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1XXXXXXXXXXXXX", | |
"Effect": "Allow", | |
"Action": [ | |
"iam:ChangePassword" | |
], | |
"Resource": [ |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1XXXXXXXXXXXXX", | |
"Effect": "Allow", | |
"Action": [ | |
"rds:DescribeDBLogFiles", | |
"rds:DownloadDBLogFilePortion" | |
], |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ChangeResourceRecordSets", | |
"route53:GetHostedZone", | |
"route53:ListResourceRecordSets" | |
], |
$ openssl genrsa 2048 > server.key
$ openssl req -new -key server.key > server.csr
$ openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt
OlderNewer