Install rbenv and ruby-build to Amazon Linux (cloud-init).
- Copy & paste content of
user-data.sh
to EC2 RunInstances user-data - Then, logging in to EC2 instance as ec2-user and run
install-ruby.sh
.
#!/bin/bash | |
# on centos minimal | |
yum install gcc | |
yum install make | |
yum install ncurses-devel | |
yum install lua lua-devel | |
yum install ruby ruby-devel | |
yum install python python-devel | |
yum install perl perl-devel |
Install rbenv and ruby-build to Amazon Linux (cloud-init).
user-data.sh
to EC2 RunInstances user-datainstall-ruby.sh
.require 'eventmachine' | |
require 'em-http-request' | |
# Reference: | |
# https://github.com/igrigorik/em-http-request/wiki/Parallel-Requests | |
# http://rdoc.info/github/eventmachine/eventmachine/master/EventMachine/Iterator | |
urls = ['http://www.google.com', 'http://www.cloudamqp.com'] |
import bisect | |
class NFA(object): | |
EPSILON = object() | |
ANY = object() | |
def __init__(self, start_state): | |
self.transitions = {} | |
self.final_states = set() | |
self._start_state = start_state |
<?xml version="1.0" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="src" path="src/main/java"/> | |
<classpathentry kind="src" path="src/test/java"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
<classpathentry kind="lib" path="/usr/share/java/commons-logging-1.1.1.jar"/> | |
<classpathentry kind="lib" path="/usr/share/java/junit4.jar"/> | |
<classpathentry kind="output" path="bin"/> | |
</classpath> |
Ruby製 | |
Puppet | |
http://puppetlabs.com/ | |
http://gihyo.jp/admin/serial/01/puppet | |
Capistrano | |
https://github.com/capistrano/capistrano/wiki | |
http://ja.wikipedia.org/wiki/Capistrano | |
Chef |
こんな指針がいいのかなー 2013 夏 ver.
.NET の「例外のデザインのガイドライン」にもこう書いてある。
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |