- 第一部 「ドメインモデルを機能させる」
- 用語の定義、ドメインモデルをしようすることの意味の解説
- 第二部 「モデル駆動設計の構成要素」
- オブジェクト指向ドメインモデリングにおけるベストプラクティスを集めたもの
- 共通の言語を使ってチームメンバ全員がモデルと設計上の意思決定について議論できるようになる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
#Incoming WebHooksのURL(※よしなにかえてね) | |
WEBHOOKURL="https://hooks.slack.com/services/XXXXXx" | |
#メッセージを保存する一時ファイル | |
MESSAGEFILE=$(mktemp -t webhook.XXXXXX) | |
trap " | |
rm ${MESSAGEFILE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: up down | |
.env: | |
@cp .env.example .env | |
up: .env | |
docker-compose up -d | |
down: | |
docker-compose down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET_FILE=/your/target_file/full_path | |
BACKUP_FILE=/your/backup_file/full_path | |
cp TARGET_FILE BACKUP_FILE | |
ln -snf BACKUP_FILE TARGET_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 設定を確認 | |
`show variables like 'slow%';` | |
`show variables like 'long%';` | |
# 設定する | |
``` | |
set global slow_query_log_file = '/tmp/mysql-slow.log'; | |
set global long_query_time = 1; | |
set global slow_query_log = ON; | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://qiita.com/ryounagaoka/items/7be0479a36c97618907f | |
# 指定DBの全テーブル dump | |
mysqldump --quote-names --skip-lock-tables --single-transaction -h {HOSTNAME} -u {USER_NAME} -p {DB_NAME} > ./{file_name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir_path="." | |
dirs=$(find $dir_path -mindepth 1 -maxdepth 1 -name '*.oma' -print0) | |
for file in $dirs; | |
do | |
targetName=${file#./} | |
encodeName=${targetName%.oma}.mp3 | |
if [ -e "$encodeName" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -t rsa(rsa形式を指定) -b 4096(ビット長を4096にデフォだと短いので) -N ""(パスフレーズは不要) -f ~/.ssh/id_rsa(出力ファイル名、ここはお好みで) | |
ssh-keygen -t rsa -m pem -b 4096 -N "" -f ~/.ssh/id_rsa |