- まとめ記事 http://blog.wyeworks.com/2012/11/13/rails-4-compilation-links/
- Rails 4 in 30’ http://blog.wyeworks.com/2012/10/29/rails-4-in-30-minutes/
- Ruby 2 and Rails 4 https://speakerdeck.com/a_matsuda/ruby-2-and-rails-4
- Ruby1.9.3は入ってますか?
- rbenv
def gen_credential(name, user, passwd) | |
response = { | |
"name" => name, | |
"hostname" => @mysql_config['hostname'], | |
"host" => @mysql_config['host'], | |
"port" => @mysql_config['port'], | |
"user" => user, | |
"username" => user, | |
"password" => passwd, | |
} |
makePublisher = (o) -> | |
i = undefined | |
for i of publisher | |
o[i] = publisher[i] if publisher.hasOwnProperty(i) and typeof publisher[i] is "function" | |
o.subscribers = any: [] | |
publisher = | |
subscribers: | |
any: [] |
require 'rubygems' # for ruby18 | |
require 'sinatra' | |
require 'json' | |
require 'yaml' | |
get '/' do | |
"<h1>Hello Tamac.io!!</h1>" | |
end | |
get '/version' do |
['+', '-', ''].repeated_permutation(8).each do |p| | |
arr = [] | |
(1..9).each do |i| | |
arr << i | |
arr << p.shift | |
end | |
str = arr.join | |
ans = eval(str) | |
p str if ans == 100 | |
end |
# /var/vcap/packages/director/bosh/director/vendor/bundle/ruby/1.9.1/gems/bosh_aws_cpi-0.6.0/lib/cloud/aws/cloud.rb | |
#aki = find_aki(architecture, root_device_name) | |
aki = "aki-ee5df7ef" | |
# we could set :description here, but since we don't have a | |
# handle to the stemcell name and version, we can't set it | |
# to something useful :( | |
image_params = { | |
:name => "BOSH-#{generate_unique_name}", |
--- | |
BUNDLE_DISABLE_SHARED_GEMS: "1" | |
BUNDLE_WITHOUT: test | |
BUNDLE_PATH: vendor/bundle |
gem: --no-ri --no-rdoc | |
:sources: | |
#- http://rubygems.org/ | |
- http://production.s3.rubygems.org/ |
# coding: utf-8 | |
require "nokogiri" | |
# Nokogiriの素振り | |
# <hosts> | |
# <host address="localhost"> | |
# </hosts> | |
# を | |
# <hosts> | |
# <host address="172.16.0.1"> |
CCng