Skip to content

Instantly share code, notes, and snippets.

View horike37's full-sized avatar

Takahiro Horike horike37

  • Serverless Operations, Inc
  • Japan
View GitHub Profile

最新のステータス: 追記: 2019/7/10

転職しました。長らくのご愛顧誠にありがとうございました。


転職先をちょくちょく探しています。

興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。

@k-kinzal
k-kinzal / 1-variantを触ってみよう.md
Last active May 13, 2021 03:29
variant #Serverlessconf Tokyo 2018 Contributor Day

variantを触ってみよう

https://github.com/mumoshu/variant

  • 手順でよくわからない、もしくは上手く動かないという方がいれば随時声かけてください
  • もし、文章の方が説明しやすいという方がいれば@k_kinzalまでメンションかDMをお送りください

インストール

Mac

@ac360
ac360 / cloudevent-aws-s3-object-created.md
Last active May 14, 2018 17:19
This is a JSON representation of CloudEvent for AWS S3 Object Created
{
  // CloudEvents metadata data goes here
  "eventType": "aws.s3.object.created",
  "eventID": "C1234-1234-1234",
  "eventTime": "2018-05-08T14:48:09.769Z",
  "eventTypeVersion": "1.0",
  "source": "/cloudevents-bucket",
  "extensions": {},
 "contentType": "application/json",
@jscattergood
jscattergood / serverless.yml
Last active March 10, 2019 13:57
Creating a custom serverless resource for subscribing to SNS topics in another region
# Welcome to Serverless!
#
# Happy Coding!
service: cross-region-sns-subscriber
# Keep environment specific configurations in separate files
custom: ${file(config/${env:STAGE}.json)}
provider:
@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active March 20, 2024 00:17
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@keesiemeijer
keesiemeijer / setup-phpunit.sh
Last active December 8, 2023 11:02
Setup PHPUnit for use in the Local by Flywheel app
#!/usr/bin/env bash
# ===============================================================================
# Script to install PHPUnit in the Local by Flywheel Mac app
# These packages are installed
#
# PHPUnit, curl wget, rsync, git, subversion and composer.
#
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit.
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory.
@doyle
doyle / gist:92b0b34cd4804d237ed9661e20e33e5d
Created October 17, 2016 19:51
Use curl to upload a file to a S3 pre-signed url
curl -X PUT -T test_s3.txt -L "https://your-bucket.s3.amazonaws.com/url-stuff"

インスタグラムAPIが仕様変更し、アプリケーション・サービスへの利用には申請と承認が必要に

2015年11月17日からインスタグラムの提供しているAPIの仕様が大幅に変更されました。

仕様変更する前までは、インスタグラムのアカウント所有者であれば誰でも、開発者登録をするだけでAPI機能の全てを使用することができましたが、今回の変更で、APIの正式利用にはインスタグラムにレビューの申請をして承認されることが必須となりました。
また、17日以前に作成したアプリケーション・サービスについても、2016年6月1日までに申請し承認されなければ、自動的にテスト(サンドボックス)モードに切り替わるようです。

インスタグラムAPI利用規約の日本語訳

英語でしか表記のなかった規約の一部を日本語に翻訳したので、まとめておきます。

@DmZ
DmZ / pre-commit
Last active July 25, 2023 13:40
Git pre-commit hook to search for Amazon AWS API keys.
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
@hissy
hissy / gist:6822610
Created October 4, 2013 08:14
[WordPress/ACF] example of import values to repeater field
<?php
$value = array(
array(
'text' => 'text',
'image' => 1
),
array(
'text' => 'text2',
'image' => 2
)