Skip to content

Instantly share code, notes, and snippets.

{
"Cluster":"arn:aws:ecs:ap-northeast-1:985683768009:cluster/rcs-transportmanager-cluster-development",
"TaskARN":"arn:aws:ecs:ap-northeast-1:985683768009:task/rcs-transportmanager-cluster-development/d3e54957d69f4e65874ed8b90696b84e",
"Family":"rcs-transportmanager-development",
"Revision":"7",
"DesiredStatus":"RUNNING",
"KnownStatus":"RUNNING",
"Limits":{
"CPU":16,
"Memory":32768

Layer

UI層

  • ユーザとの相互作用の境界となる層
  • アプリケーション層の一部なのか別個のレイヤなのか諸説あり
  • ユーザーに情報を提示して、ユーザーの操作やコマンドの解釈を担うレイヤー。 DDDでは、このレイヤーにビジネスロジックを組む込むことを皮肉を込めて「利口なUI」というアンチパターンとしており、避けるべきパターンである。

アプリケーション層

  • ドメインオブジェクトを操作することで、ソフトウェアが果たすべき仕事を実現する層
  • アプリケーションが行うことになっている仕事(ユースケース)を定義し、その仕事をドメインレイヤーのオブジェクトが解決するように指揮(orchestrate)するレイヤー。このレイヤーもビジネスロジックは含まず、実際の処理はドメインレイヤーに委譲して調整役を担う。
@ryu1
ryu1 / big_file_encryption.bash
Created April 30, 2023 08:49
Big file encryption
# 秘密鍵を作成する(パスフレーズ有り)
openssl genrsa -aes256 4096 > private.key
# X.509 証明書生成 (自己署名証明書)
openssl req -new -x509 -key private.key -out cert.pem -days 36500 -subj /CN="sample"
# 証明書情報の確認
openssl x509 -noout -subject -dates -in cert.pem
# 暗号化
@ryu1
ryu1 / jdk8_download.sh
Created November 30, 2022 03:25 — forked from apiOmat/jdk8_download.sh
JDK8 command line download script; For JDK10, please check: https://gist.github.com/P7h/9741922
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget / curl.
### You can download all the binaries one-shot by just providing one BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
@ryu1
ryu1 / osc52.sh
Created November 7, 2022 08:17
クリップボードを操作するエスケープシーケンス
#!/bin/sh
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Max length of the OSC 52 sequence. Sequences longer than this will not be
# sent to the terminal.
OSC_52_MAX_SEQUENCE="100000"
# Write an error message and exit.
# Usage: <message>
die() {
package test;
import org.dbunit.DefaultOperationListener;
import org.dbunit.IDatabaseTester;
import org.dbunit.IOperationListener;
import org.dbunit.JdbcDatabaseTester;
import org.dbunit.database.DatabaseConfig;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.ReplacementDataSet;
@ryu1
ryu1 / migration-m6i.large.md
Created May 13, 2022 06:48
m5.largeからm6i.largeに変更する手順

HTML-TIPS


上下中央揃え

<style type="text/css">
html, body {
	height: 100%;
}
@ryu1
ryu1 / HowToDisableESET.MD
Last active May 13, 2022 06:36
ESET セキュリティソフトの有効/無効

ESET セキュリティソフトの有効/無効

ときおり、邪魔になるセキュリティソフトを一時的に無効にしたいときに使用する.

Disable

$ sudo killall esets_gui
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.esets_daemon.plist
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.esets_pidmapper.plist
$ sudo launchctl unload /Library/LaunchDaemons/com.eset.remoteadministrator.agent_daemon.plist
@ryu1
ryu1 / prevent-multiple-form-submission.js
Last active September 14, 2021 00:53
javascript code to prevent multiple form submission for django
window.addEventListener("load", function() {
(function ($) {
$(function () {
$('form').submit(function () {
$(this).find('input[type="submit"], button[type="submit"]').prop('disabled', 'true');
});
});
})(django.jQuery);
});