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 yum install \ | |
bzip2-devel \ | |
curl curl-devel \ | |
pcre pcre-devel \ | |
freetype freetype-devel \ | |
gcc gcc-c++ \ | |
gdbm-devel \ | |
gmp gmp-devel \ | |
libicu libicu-devel \ | |
libjpeg libjpeg-devel \ |
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
./configure \ | |
--prefix=/usr/local/php-<version> \ | |
--enable-bcmath \ | |
--enable-calendar \ | |
--enable-gd-jis-conv \ | |
--enable-gd-native-ttf \ | |
--enable-intl \ | |
--enable-mbstring \ | |
--enable-mbregex \ | |
--enable-pcntl \ |
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
cheatsheet do | |
title 'Dash Shortcut' | |
docset_file_name 'dash_shortcut' | |
keyword 'dash' | |
category do | |
id 'ショートカット' | |
entry do | |
name '検索候補の選択' |
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
cheatsheet do | |
title 'Git Command' | |
docset_file_name 'git_cheatsheet' | |
keyword 'gitc' | |
category do | |
id 'ツールの設定' | |
entry do | |
name '名前を設定する' | |
notes <<-'CODE' |
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
#!/bin/sh | |
# インデックスのプレフィックス | |
PREFIX="logstash-" | |
if [ $1 ]; then | |
PREFIX=$1 | |
fi | |
# OLDER_THAN日以上経過したインデックスを削除する | |
OLDER_THAN=30 |
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
## Elasticsearchのインストール(RPM) | |
root> yum install java-1.7.0-openjdk | |
root> wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.noarch.rpm | |
root> rpm -ivh elasticsearch-1.3.4.noarch.rpm | |
root> chkconfig --add elasticsearch && chkconfig elasticsearch on | |
root> service elasticsearch start | |
## Python, pipのインストール | |
root> yum install python python-devel | |
root> curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python |
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
root> pip uninstall elasticsearch | |
root> pip uninstall elasticsearch-curator | |
root> pip install elasticsearch | |
root> pip install elasticsearch-curator |
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
root> pip list | |
argparse (1.2.1) | |
awscli (1.5.4) | |
backports.ssl-match-hostname (3.4.0.2) | |
bcdoc (0.12.2) | |
boto (2.32.1) | |
botocore (0.68.0) | |
chardet (2.0.1) | |
Cheetah (2.4.1) | |
colorama (0.2.5) |
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
root> pip uninstall elasticsearch | |
Uninstalling elasticsearch: | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/DESCRIPTION.rst | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/METADATA | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/RECORD | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/WHEEL | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/metadata.json | |
/usr/lib/python2.6/site-packages/elasticsearch-1.2.0.dist-info/top_level.txt | |
/usr/lib/python2.6/site-packages/elasticsearch/__init__.py | |
/usr/lib/python2.6/site-packages/elasticsearch/__init__.pyc |
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
#!/bin/sh | |
## Xcode command line tool | |
xcode-select --install | |
## Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
## Add homebrew repository | |
brew tap homebrew/dupes |
OlderNewer