Skip to content

Instantly share code, notes, and snippets.

View mnc's full-sized avatar

sasaki nobuya mnc

View GitHub Profile
@yosh1kura
yosh1kura / google_form_to_slack.js
Last active September 10, 2018 02:54
Google Formの投稿内容をSlackに通知するGASです。添付ファイルもGoogleDriveに保存して、URLも含めて通知できます。
var slackAccessToken = 'XXXXXXXXXXX';
var recievers = ['@メンション先', '@メンション先'];
var channelId = 'チャンネルID';
// 問い合わせフォーム内の問いと結果をまとめる処理
function _getLatestFormResponse() {
var form = FormApp.getActiveForm();
var responses = form.getResponses();
var response = responses[responses.length-1];
var itemResponses = response.getItemResponses();
@voluntas
voluntas / death_march.md
Last active September 26, 2025 07:43
デスマーチが起きる理由 - 3つの指標

デスマーチが起きる理由 - 3つの指標

著者: 青い鴉(ぶるくろ)さん @bluecrow2

これは結城浩さんの運用されていた YukiWiki に当時 Coffee 様 (青い鴉(ぶるくろ)さん)がかかれていた文章です。 ただ 2018 年 3 月 7 日に YukiWiki が運用停止したため消えてしまいました。その記事のバックアップです。

今は 404 ですが、もともとの記事の URL は http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 になります。

昔、自分がとても感銘を受けた文章なので、このまま読めなくなるのはとてももったいないと思い、バックアップとして公開しています。

The information below was written in Oct 2017. In August 2019 AWS launched official support for multiple target groups per AWS ECS service. Please use that feature instead!


Unfortunately as of writing this (Oct 18, 2017) there is no built in integration for multiple target groups per AWS ECS service. Here are a few things you can try:

  1. If your application just serves port 80 (HTTP) & port 443 (HTTPS) then you should consider using the application load balancer and terminating SSL at the load balancer. This will allow your application to function using just port 80.
@clarkdave
clarkdave / ecs-interactive-console.sh
Last active August 21, 2024 08:09
ecs-interactive-console
#!/bin/bash -e
##
# Use this annotated script a base for launching an interactive console task on Amazon ECS
#
# more info: https://engineering.loyaltylion.com/running-an-interactive-console-on-amazon-ecs-c692f321b14d
#
# Requirements:
# - `jq` must be installed on both the client and server
##
@vcastellm
vcastellm / ecs-run
Last active April 15, 2024 17:55
Run task and wait for result in AWS ECS
#!/usr/bin/env bash
set -e
function usage() {
set -e
cat <<EOM
##### ecs-run #####
Simple script for running tasks on Amazon Elastic Container Service
One of the following is required:
Required arguments:
@j5ik2o
j5ik2o / gist:5682650
Last active October 5, 2023 05:22
集約ってどんなもの?

グローバルな識別子を持つエンティティが集約になります。

ドメインモデル

  • 売上(Sale)
  • 売上明細(SaleDetail)

コード例

実装を書いてないメソッドもあるけど、適当に脳内でイメージしてね。

ドメイン層