Skip to content

Instantly share code, notes, and snippets.

@orca8
orca8 / casperjs.dockerfile
Created May 22, 2017 16:22
Dockerfile phantomjs + casperjs + 日本語フォント付き
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
@orca8
orca8 / symlink_migrate.sh
Created May 29, 2016 17:08
bash symlink_migrate.sh /usr/tmp
@orca8
orca8 / code-prettify.txt
Last active May 22, 2016 05:24
ブログ記事中にコードを埋め込む方法
<pre class="prettyprint">
// 行番号を表示しない場合はpreのclassに"prettyprint"を指定
// コード
</pre>
<pre class="prettyprint linenums">
// 行番号を表示する場合はpreのclassに"prettyprint linenums"を指定
// コード
</pre>
@orca8
orca8 / shellscript-template.sh
Last active June 5, 2016 10:59
shellscript template
#!/bin/bash
set -eu
function usage {
cat <<EOF
$(basename ${0}) is a tool for ...
Usage:
$(basename ${0}) [<options>]
@orca8
orca8 / gist:537a309e7dfcb5646bcf
Last active August 29, 2015 14:16
SHA-2証明書の作成(自己署名)

プライベートな環境でSSLを試したいときに自己署名した証明書を作成する

サーバ秘密鍵の作成

openssl genrsa -aes256 2048 -rand /var/log/messages > /etc/pki/tls/private/server.key
chmod 600 /etc/pki/tls/private/server.key

秘密鍵を利用する場面でパスワードの入力を省略したいときはパスワードを外した鍵を作成

@orca8
orca8 / gist:ba6848c575c6a7f60f27
Last active August 29, 2015 14:15
GitHubなどのissueに付けるタグのガイドライン
  • bug システム、機能のバグ
  • feature 実装、廃止する機能
  • question 仕様や機能、使い方の質問
  • document 仕様や機能、使い方のドキュメント
  • wontfix 既知の内容だが対応しない
  • discussion 仕様や機能の議論
  • enhancement 機能の強化、機能のブラッシュアップ
  • priority 優先事項、優先的に対応