Skip to content

Instantly share code, notes, and snippets.

# 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
# 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
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
### ondemand
"us-east"
"us-west-2"
"us-west"
"eu-ireland"
"apac-sin"
"apac-tokyo"
"apac-syd"
"sa-east-1"
['-']% 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
package main
import (
"encoding/json"
"github.com/mizzy/consul-catalog"
"log"
"os"
"reflect"
"time"
)
@kenjiskywalker
kenjiskywalker / mongo-rs-remove.md
Last active August 29, 2015 14:02
arbiterをrs.removeで外すと例外が出る

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

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 August 6, 2014 10:11
AMIのImageをAMI_NAMEで絞り込んでNameとImageIdを抜き出す ref: http://qiita.com/kenjiskywalker/items/5c0d2326907bca669bb8
$ aws ec2 describe-images \
--filters "Name=name,Values='*AMI_NAME*'" \
--query 'Images[].[Name,ImageId]' \
--output text`
@kenjiskywalker
kenjiskywalker / file0.txt
Created August 7, 2014 09:22
AWSのLaunchConfigをLaunchConfigurationNameで絞るコマンド ref: http://qiita.com/kenjiskywalker/items/38e2560107e20aee6ac7
aws autoscaling describe-launch-configurations \
| jq '.LaunchConfigurations[] \
| select(.LaunchConfigurationName \
| contains("*LAUNCH_CONFIG_NAME*")) \
| .LaunchConfigurationName ' \
-r \