Skip to content

Instantly share code, notes, and snippets.

@mizucopo
mizucopo / Dockerfile
Created March 20, 2016 11:04
ruby:alpine with nokogori
FROM ruby:alpine
MAINTAINER mizu <mizu.copo@gmail.com>
RUN set -x \
&& apk upgrade --no-cache \
&& apk add --no-cache --virtual build-dependencies \
build-base \
&& apk add --no-cache \
libxml2-dev \
libxslt-dev \
@mizucopo
mizucopo / s-resources-cf.json
Created March 24, 2016 06:24
Serverless CloudFormation
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "The AWS CloudFormation template for this Serverless application's resources outside of Lambdas and Api Gateway",
"Resources": {
"IamRoleLambda": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
@mizucopo
mizucopo / s-resources-cf.json
Created March 24, 2016 06:32
S3 Slack : s-resources-cf.json
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:ListAllMyBuckets",
"s3:GetObject"
],
"Resource": "arn:aws:s3:::*"
}
@mizucopo
mizucopo / s-function.json
Created March 24, 2016 18:39
S3 Slack : s-function.json
"events": [
{
"name": "daily",
"type": "schedule",
"config": {
"enabled": true,
"schedule": "cron(0 15 * * ? *)"
}
}
],