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
error_page 500 @maintenance; | |
# Set Env | |
set $maintenance "on"; | |
# Allow Paths | |
if ($uri ~ "^/exclude/") { | |
set $maintenance "off"; | |
} |
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": "2012-10-17", | |
"Statement": { | |
"Effect": "Allow", | |
"Action": [ | |
"*" | |
], | |
"Resource": "*", | |
"Condition": { | |
"DateGreaterThan": {"aws:CurrentTime": "2018-10-01T00:00:00Z"}, |
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
set $maintenance "true"; | |
if ($uri ~ "^/maintenance.html") { | |
set $maintenance "false"; | |
} | |
if ($uri ~ "^/exclude/") { | |
set $maintenance "false"; | |
} | |
if ($remote_addr ~ "xxx.xxx.xxx.xxx") { | |
set $maintenance "false"; |
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
$ sudo mkdir /opt/chroot | |
$ sudo chown root.root /opt/chroot | |
$ sudo mkdir /opt/sftpuser | |
$ sudo chown sftpuser /opt/sftpuser/data | |
$ sudo chmod 755 /opt/sftpuser/data |
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
QUEUE=1h |
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
$ cloudstack-api addIpToNic --nicid <Masterで利用しているNIC ID> --ipaddress <VIP> | |
{ | |
"addiptovmnicresponse": { | |
"id": "********-****-****-****-************", | |
"jobid": "********-****-****-****-************" | |
} | |
} |
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
marathon | type | m | region | |
---|---|---|---|---|
honolulu | full | 12 | hawaii | |
shonann | full | 12 | kanagawa | |
okayama | full | 11 | okayama | |
fukkou | full | 10 | miyagi | |
fuji5lake | ultra | 4 | yamanashi | |
yokohama | full | 10 | kanagawa |
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
$ aws elb set-load-balancer-policies-of-listener --load-balancer-name <CLBの名前> --load-balancer-port 443 --policy-names <セキュリティポリシーの名前> |
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
$ git clone [email protected]:duo-labs/cloudmapper.git |
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
$ aws s3 ls s3://koh3i/ | |
2018-03-17 06:46:22 5330 SampleApp_Linux.zip |
NewerOlder