Skip to content

Instantly share code, notes, and snippets.

View inokappa's full-sized avatar
😴
zzzzz

Yohei Kawahara inokappa

😴
zzzzz
View GitHub Profile
@inokappa
inokappa / gist:8760681
Created February 1, 2014 23:27
AWS.ec2.instances のメソッド
[10] pry(main)> instance[0].methods
=> [:id,
:instance_id,
:reservation_id,
:owner_id,
:requester_id,
:private_dns_name,
:dns_name,
:public_dns_name,
:product_codes,
digraph docker {
base -> "66e362af92fd" [style=invis]
"66e362af92fd" [label="66e362af92fd\nwheezy:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base -> "0706021145f1" [style=invis]
"0706021145f1" -> "62a408b30071"
"62a408b30071" -> "7df359e27365"
"7df359e27365" [label="7df359e27365\ninokappa/wheezy-7.2-basic:latest",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"7df359e27365" -> "9fc00ede35f4"
"9fc00ede35f4" -> "a5ab3dc16aa1"
"a5ab3dc16aa1" -> "4fc1cc5e3c86"
{
"snapshots" : [ {
"snapshot" : "snapshot_20140204",
"indices" : [ "test01" ],
"state" : "SUCCESS",
"start_time" : "2014-02-03T17:38:35.292Z",
"start_time_in_millis" : 1391449115292,
"end_time" : "2014-02-03T17:38:36.386Z",
"end_time_in_millis" : 1391449116386,
"duration_in_millis" : 1094,
@inokappa
inokappa / gist:9633438
Last active August 29, 2015 13:57
test

test

test

  • aaaa
  • bbbb
@inokappa
inokappa / gist:9676960
Created March 21, 2014 00:22
monit で sensu-api を監視する設定
check process sensu-api matching "sensu-api"
start program = "/etc/init.d/sensu-api start"
stop program = "/etc/init.d/sensu-api stop"
if 5 restarts within 5 cycles then timeout
"handlers": {
"default": {
"type": "set",
"handlers": [
"stdout"
]
},
"stdout": {
"type": "pipe",
"command": "cat"
@inokappa
inokappa / gist:10563633
Last active August 29, 2015 13:59
第3回 コンテナ型仮想化の情報交換会@大阪の聴講メモ

13:10 – 14:00 Linuxコンテナ入門 @ten_forward

自己紹介

  • 加藤さん
  • Docker との関わり→ RPM パッケージをビルドするのに使っている
  • cgroups
  • Plamo Linux
  • Blog
@inokappa
inokappa / gist:11331404
Last active August 29, 2015 14:00
(twemproxy) nutcracker の冗長モードで起動した場合のログ

(twemproxy) nutcracker の冗長モードで起動した場合のログ

set

[Sat Apr 26 21:16:33 2014] nc_stats.c:653 skip aggregate of shadow 0x2147230 to sum 0x2147730 as generator is slow
[Sat Apr 26 21:16:41 2014] nc_epoll.c:254 epoll 0001 triggered on conn 0x214b340
[Sat Apr 26 21:16:41 2014] nc_core.c:281 event 00FF on p 6
[Sat Apr 26 21:16:41 2014] nc_client.c:46 ref conn 0x214b4a0 owner 0x21422a0 into pool 'hoge'
[Sat Apr 26 21:16:41 2014] nc_connection.c:225 get conn 0x214b4a0 client 1
@inokappa
inokappa / gist:40846327dbfaff19b298
Last active August 29, 2015 14:00
Puppet を使って Sensu Server をプロビジョニングした際のログ
Warning: Deprecation notice: Resource references should now be capitalized on line 11 in file /etc/puppet/manifests/site.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for ip-192-168-x-xxx.ec2.internal in environment production in 4.93 seconds
Notice: /Stage[main]/Rabbitmq::Repo::Rhel/Exec[rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc]/returns: executed successfully
Notice: /Stage[main]/Main/Node[default]/Yumrepo[epel]/ensure: created
Notice: /Stage[main]/Main/Node[default]/Package[erlang]/ensure: created
Notice: /Stage[main]/Redis/Package[redis]/ensure: created
Notice: /Stage[main]/Redis/Service[redis]/ensure: ensure changed 'stopped' to 'running'
Notice: /Stage[main]/Rabbitmq::Install/Package[rabbitmq-server]/ensure: created
Notice: /Stage[main]/Rabbitmq/Rabbitmq_plugin[rabbitmq_management]/ensure: created
@inokappa
inokappa / gist:206bbc5276ef6b90d81c
Created May 4, 2014 01:00
Sensu Server をセットアップするマニフェスト
node default {
yumrepo { "epel":
mirrorlist => 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch',
enabled => 1,
gpgcheck => 0
}
#
$packages = [ "erlang" ]
package { $packages:
ensure =>"installed",