Skip to content

Instantly share code, notes, and snippets.

Kenji Naito kenjiskywalker

Block or report user

Report or block kenjiskywalker

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sensu_sandbox_centos.sh
# Stopping firewall
/etc/init.d/iptables stop
# Install EPEL-6 yum repo
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Install Erlang
yum -y install erlang
# Install RabbitMQ from RPM
View basic-graphite-intstall.sh
# basic graphte and httpd install
# https://github.com/graphite-project/graphite-web
# Ver. 0.9.12
rpm -ivh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install -y python-devel pycairo Django django-tagging python-twisted python-zope-interface fontconfig fontconfig-devel mod_wsgi python-pip pytz pyparsing python-memcached memcached
yum install -y httpd
pip-python install whisper
View perl-error.txt
Error: Package: perl-DateTime-Format-Builder-0.8000-2.el6.noarch (@epel)
Requires: perl(:MODULE_COMPAT_5.10.1)
Removing: 4:perl-5.10.1-127.15.amzn1.i686 (@amzn-main)
perl(:MODULE_COMPAT_5.10.1)
Updated By: 4:perl-5.16.3-280.30.amzn1.i686 (amzn-main)
Not found
...
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
View aws_region.json
### ondemand
"us-east"
"us-west-2"
"us-west"
"eu-ireland"
"apac-sin"
"apac-tokyo"
"apac-syd"
"sa-east-1"
View vagrant-err.txt
['-']% vagrant up --provider=docker
Bringing machine 'default' up with 'docker' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
docker provider:
* One of "build_dir" or "image" must be set
VagrantPlugins::DockerProvisioner::Config:
* The following settings shouldn't exist: build_dir
View main.go
package main
import (
"encoding/json"
"github.com/mizzy/consul-catalog"
"log"
"os"
"reflect"
"time"
)
@kenjiskywalker
kenjiskywalker / mongo-rs-remove.md
Last active Aug 29, 2015
arbiterをrs.removeで外すと例外が出る
View mongo-rs-remove.md

レプリカセットつくるコマンド

mkdir -p /tmp/mongo
chmod 777 /tmp/mongo
mkdir -p /tmp/mongo/node[0-2]
mkdir -p /tmp/mongo/log/

mongod --replSet foo --smallfiles --port 27017 --dbpath /tmp/mongo/node0 
mongod --replSet foo --smallfiles --port 27018 --dbpath /tmp/mongo/node1
@kenjiskywalker
kenjiskywalker / file0.txt
Created Aug 6, 2014
AMIのImageをAMI_NAMEで絞り込んでNameとImageIdを抜き出す ref: http://qiita.com/kenjiskywalker/items/5c0d2326907bca669bb8
View file0.txt
$ aws ec2 describe-images \
--filters "Name=name,Values='*AMI_NAME*'" \
--query 'Images[].[Name,ImageId]' \
--output text`
@kenjiskywalker
kenjiskywalker / file0.txt
Created Aug 7, 2014
AWSのLaunchConfigをLaunchConfigurationNameで絞るコマンド ref: http://qiita.com/kenjiskywalker/items/38e2560107e20aee6ac7
View file0.txt
aws autoscaling describe-launch-configurations \
| jq '.LaunchConfigurations[] \
| select(.LaunchConfigurationName \
| contains("*LAUNCH_CONFIG_NAME*")) \
| .LaunchConfigurationName ' \
-r \
You can’t perform that action at this time.