Skip to content

Instantly share code, notes, and snippets.

View manuke's full-sized avatar

manuke manuke

View GitHub Profile
@manuke
manuke / phantomjs
Created December 4, 2015 04:09
phantomjs
var args = phantom.args;
var page = require('webpage').create();
url = args[0];
imgpath = args[1];
sp_gisou = args[2];
var page = require('webpage').create();
if (sp_gisou == "true") {
@manuke
manuke / jmeter.md
Last active August 10, 2016 04:37
jmeter

https://mowa-net.jp/wiki/JMeter

c4xlargeでテストしたが、大きなインスタンスは不要?

エラー時の停止するオプションがあるので、テスト時の設定に注意する。

Throughput Shaping Timerをインストールする。<==同時アクセス数を簡単に設定できる CUIの場合には、以下よりJMeterPlugins-Standard-1.4.0.zipをインストール https://jmeter-plugins.org/downloads/old/

@manuke
manuke / amazone elasticsearch service(Amazon ES)
Last active August 15, 2016 01:01
amazone elasticsearch service(Amazon ES)
インターネット経由のみ
IPアドレスによる制限のみ&IAM制限
kibanaは同梱されている(バージョン古い?)
local install
sudo yum install java-1.8.0
sudo alternatives --config java
https://www.elastic.co/jp/blog/setting-up-es-cluster-on-ec2
@manuke
manuke / phpunit.md
Last active December 9, 2016 09:43

#phpunit

/home/radmin/mtlib3/vendor/phpunit/phpunit/phpunitを実行するだけで、 phpunit.xmlの中身を読み込み、tests/unit/の中のテストを実行する。

- hosts: localhost
user: root
vars:
mecab_dir: /opt/mecab
src_dir: /usr/local/src
ipadic_workspace: "{{src_dir}}/mecab-ipadic-neologd"
##############
# mecab installation process
#############
tasks:
If the source IP matches a source IP bound to a zone, it uses that.
If the source IP doesn't match any particular zone, it checks to see if there's a zone configured
for the interface the packet came in on. If there is one, it uses that.
Lastly, if nothing else matches, it uses the default zone.
IPアドレスが複数条件にマッチする場合は上から順番に評価されるので先に狭いレンジの設定を入れる
reloadした時に勝手に順番が替わる?必ずreloadして確認すること。
firewall-cmd --list-all
firewall-cmd --list-all-zones
firewall-cmd --get-active-zones
@manuke
manuke / elasticsearch.md
Last active June 13, 2017 02:00
elasticsearch
@manuke
manuke / rsyslog
Created June 21, 2017 08:50
rsyslog
http://www.geocities.jp/yasasikukaitou/rsyslog-filter.html
@manuke
manuke / centos
Last active November 28, 2017 10:52
centosに新しいバージョンのパッケージを簡単にインストールする
http://qiita.com/hnakamur/items/77791e63ac2ad9644a2b
curl -s https://setup.ius.io/ | bash
yum install git2u
#yum install -y scl-utils
#yum install -y centos-release-scl-rh
#yum install rh-php56-php rh-php56-php-mbstring
@manuke
manuke / composer
Last active November 29, 2017 09:57
http://tech.quartetcom.co.jp/2015/01/19/composer-practices/
バージョンナンバーは、メジャー.マイナー.パッチとし、バージョンを上げるには、
1. APIの変更に互換性のない場合はメジャーバージョンを、
2. 後方互換性があり機能性を追加した場合はマイナーバージョンを、
3. 後方互換性を伴うバグ修正をした場合はパッチバージョンを上げます。
プレリリースやビルドナンバーなどのラベルに関しては、メジャー.マイナー.パッチの形式を拡張する形で利用することができます。
http://qiita.com/mokemokechicken/items/d3a3944bfa999c2582b7