Skip to content

Instantly share code, notes, and snippets.

View manuke's full-sized avatar

manuke manuke

View GitHub Profile
@manuke
manuke / ElgetPackages
Last active May 15, 2020 00:55
emacs install&setting
cat << EOT >~/.emacs.d/ElgetPackages
(el-get-bundle auto-complete)
(el-get-bundle quickrun)
(el-get-bundle ag)
(el-get-bundle color-theme)
(el-get-bundle flymake)
(el-get-bundle highlight-symbol)
(el-get-bundle helm)
(el-get-bundle helm-ag)
@manuke
manuke / ansible
Last active August 15, 2019 02:32
#/bain/bash
RUNDIR=${0%/*}
cd ${RUNDIR}
#check /etc/resolv.conf
yum -y upgrade ca-certificates
#centos6
#rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#centos7
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 / 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") {
##AWS AMIから起動するとデフォルトでyum updateがかかった状態なるので、この動作をしないようにするためには追加設定が必要
- hosts: localhost
connection: local
user: root
vars:
tasks:
- name: copy timezone file
shell: cp /usr/share/zoneinfo/Japan /etc/localtime
- name: set false to clock utc
@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 / git.md
Last active December 21, 2017 01:49
git.md
@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