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
'----- 定数 ----- | |
'計算回数 | |
Const LOOP_TIMES As Integer = 50 | |
'休止期状態時色 | |
Const DEFAULT_COLOR As Integer = 2 | |
'興奮期状態時色 | |
Const ACTIVE_COLOR As Integer = 3 | |
'不応期状態時色 |
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
#cloud-config | |
write_files: | |
- path: /usr/bin/conoha-motd | |
owner: root:root | |
permissions: '0755' | |
content: | | |
#!/bin/sh | |
echo -e "このホストは $(hostname) だよ!\nリソースの状態は\n$(vmstat)\nこんな感じ。\n更新日時は: $(date)だよー" \ | |
| conohasay -c $([ $(($RANDOM % 2)) -eq 0 ] && echo conoha || echo anzu) -s m > /etc/motd |
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
version: '3.1' | |
services: | |
database: | |
image: mariadb:10.1 | |
expose: | |
- 3306 | |
volumes: | |
# データベース上のデータを保存する必要がなければ削除して良い | |
- ./volumes/database:/var/lib/mysql |