Skip to content

Instantly share code, notes, and snippets.

# Stopping firewall
/etc/init.d/iptables stop
# Install EPEL-6 yum repo
rpm -Uvh
# Install Erlang
yum -y install erlang
# Install RabbitMQ from RPM
# basic graphte and httpd install
# Ver. 0.9.12
rpm -ivh
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)
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
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
* The following settings shouldn't exist: build_dir
View main.go
package main
import (
kenjiskywalker /
Last active Aug 29, 2015


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