Skip to content

Instantly share code, notes, and snippets.

View stoshiya's full-sized avatar

Toshiya SAITOH stoshiya

View GitHub Profile
@stoshiya
stoshiya / ebs-resize.sh
Last active May 31, 2018 00:53
EBS Resizing Script
#!/bin/sh
#
# $ sudo yum install jq
# $ sudo pip install -U awscli
# # sh ./ebs-resize.sh -d /dev/xvdf -v ebs-volume-name
#
usage() {
echo "Usage: $0 -d device-name -v ebs-volume-name" 1>&2
exit 1
@stoshiya
stoshiya / certbot.sh
Last active May 19, 2019 17:42
Let's encrypt wildcard certificates
$ certbot certonly -d '*.saitoh.nu' -m [email protected] \
--server https://acme-staging-v02.api.letsencrypt.org/directory \
--manual-public-ip-logging-ok \
--manual \
--preferred-challenges dns-01
$ openssl s_client -connect example.com:443 -showcerts