Skip to content

Instantly share code, notes, and snippets.

View y13i's full-sized avatar
☘️

Yoriki y13i

☘️
View GitHub Profile
@y13i
y13i / ec2ZatsuPrice.js
Last active June 28, 2017 02:19
AWS Price List API で雑に月額を出してみる ref: http://qiita.com/y13i/items/b296844486363946d400
const region = process.env["AWS_REGION"] || "us-east-1";
const instanceType = process.env["INSTANCE_TYPE"] || "c4.large";
const tenancy = process.env["TENANCY"] || "Shared";
const operatingSystem = process.env["OPERATING_SYSTEM"] || "Linux";
const offerType = process.env["OFFER_TYPE"] || "OnDemand";
// ↑フィルター条件をenvで指定してね
const axios = require("axios");
@y13i
y13i / file0.txt
Last active June 24, 2017 09:08
CloudFormation であら便利に静的サイトを作る ref: http://qiita.com/y13i/items/643f7dfd989c6df81d2e
$ aws s3 sync s3://cfn-staticweb-example/ .
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+a",
"command": "cursorHomeSelect"
@y13i
y13i / file0.txt
Last active June 3, 2017 08:38
Promise をリトライする何かを作った ref: http://qiita.com/y13i/items/6ba3c8849c8af80d2dde
$ npm install --save retryx
AWSTemplateFormatVersion: "2010-09-09"
Description: "Example template including Cognito Identity Pool and User Pool."
Parameters:
EmailIdentityArn:
Type: String
Resources:
UserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName:
@y13i
y13i / file0.txt
Last active April 25, 2017 20:17
Async Functions はなぜ良いのか ref: http://qiita.com/y13i/items/76b46d19113b912f995f
次はうまくやるでしょう: 93
次はうまくやるでしょう: 46
次はうまくやるでしょう: 34
次はうまくやるでしょう: 37
できました: 96
@y13i
y13i / file0.txt
Last active April 26, 2017 19:54
JavaScript の switch っぽい何かを再発明してみた ref: http://qiita.com/y13i/items/2922c68dc4a15eb4f3c3
$ npm install --save switz
@y13i
y13i / test.md
Last active April 20, 2017 14:27
console.log(123);
const a: string = "123"
@y13i
y13i / foo.md
Created April 12, 2017 06:43
アレ

Wikipedia を wiki と略すと発狂する系譜の人間なので、こういった点が気になって仕方がないんだ。

  • EC2 Instance を EC2 と呼ぶ
  • IAM User を IAM と呼ぶ
  • Lambda Function を Lambda と呼ぶ
  • S3 Bucket を S3 と呼ぶ
$ yarn run webpack