プライベートな環境でSSLを試したいときに自己署名した証明書を作成する
openssl genrsa -aes256 2048 -rand /var/log/messages > /etc/pki/tls/private/server.key
chmod 600 /etc/pki/tls/private/server.key
秘密鍵を利用する場面でパスワードの入力を省略したいときはパスワードを外した鍵を作成
FROM centos:7 | |
ENV PHANTOMJS_VERSION=phantomjs-2.1.1-linux-x86_64 | |
RUN yum update -y && \ | |
yum install -y bzip2 unzip fontconfig git && \ | |
yum clean all | |
# install phantomjs | |
RUN curl -L -O https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_VERSION.tar.bz2 |
#!/bin/bash | |
set -eu | |
readonly FIND_PATH=${1} | |
links=() | |
while read -r f | |
do | |
links+=("$f") |
<pre class="prettyprint"> | |
// 行番号を表示しない場合はpreのclassに"prettyprint"を指定 | |
// コード | |
</pre> | |
<pre class="prettyprint linenums"> | |
// 行番号を表示する場合はpreのclassに"prettyprint linenums"を指定 | |
// コード | |
</pre> |
#!/bin/bash | |
set -eu | |
function usage { | |
cat <<EOF | |
$(basename ${0}) is a tool for ... | |
Usage: | |
$(basename ${0}) [<options>] |