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 "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| | |
next if item.nil? || item['user'].nil? || item['_stream'].nil? | |
begin | |
image_url = item['user']['profile_image_url'] | |
next unless image_url |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS CloudFormation Example Template Copyright 2012 Serverworks Co, Ltd. All Rights Reserved", | |
"Parameters" : { | |
"InstanceType" : { | |
"Type" : "String", | |
"Description" : "Instance Type: t1.micro, m1.small, c1.medium, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, c1.xlarge.", | |
"Default" : "t1.micro", | |
"AllowedValues" : [ "t1.micro","m1.small","c1.medium","m1.medium","m1.large","m1.xlarge","m2.xlarge","m2.2xlarge","m2.4xlarge","c1.xlarge" ], |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "This is a template for the AWS CloudFormation in order to build a CloudDesignPattern No17. Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. ", | |
"Parameters" : { | |
"AMI" : { | |
"Type" : "String", | |
"Description" : "AMI ID", | |
"Default" : "ami-2819aa29", |
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
# 'defaults' applies to all environments running this application. | |
# Environment specific options apply only to a single environment and override settings in defaults. | |
--- | |
defaults: | |
bundle_without: test development mygroup | |
bundle_options: --local | |
copy_exclude: | |
- .git | |
maintenance_on_restart: false | |
maintenance_on_migrate: false |
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
diff --git a/cookbooks/papertrail/recipes/default.rb b/cookbooks/papertrail/recipes/default.rb | |
index f1ef49c..27ca836 100644 | |
--- a/cookbooks/papertrail/recipes/default.rb | |
+++ b/cookbooks/papertrail/recipes/default.rb | |
@@ -13,9 +13,9 @@ | |
app_name = node[:applications].keys.first | |
env = node[:environment][:framework_env] | |
PAPERTRAIL_CONFIG = { | |
- :syslog_ng_version => '3.3.5', | |
+ :syslog_ng_version => '3.2.5', |
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
import os | |
import boto3 | |
def main(): | |
s3_client = boto3.client('s3') | |
response = s3_client.list_objects_v2(Bucket='example-bucket') | |
for content in response['Contents']: |
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
import os | |
import boto3 | |
def main(): | |
s3_client = boto3.client('s3') | |
params = {'Bucket': 'example-bucket'} | |
while True: |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Globals: | |
Function: | |
Timeout: 900 | |
Environment: | |
Variables: | |
TZ: Asia/Tokyo |
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
OWM_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
OWM_PLACE=Tokyo,Jp |
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
[flake8] | |
ignore = E501 | |
exclude = .aws-sam |
OlderNewer