Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
sh1 1266% curl -L https://get.rvm.io | bash -s head --debug --autolibs=3 --ruby=1.9.3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 199 0 --:--:-- --:--:-- --:--:-- 349
100 11865 100 11865 0 0 7137 0 0:00:01 0:00:01 --:--:-- 7137
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
[2013-03-30 09:08:55] /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
current path: /Users/shigeya/.rvm/src/rubygems-2.0.3
command(7): env GEM_PATH=/Users/shigeya/.rvm/gems/ruby-2.0.0-p0:/Users/shigeya/.rvm/gems/ruby-2.0.0-p0@global:/Users/shigeya/.rvm/gems/ruby-2.0.0-p0:/Users/shigeya/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/shigeya/.rvm/gems/ruby-2.0.0-p0 /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /Users/shigeya/.rvm/src/rubygems-2.0.3/setup.rb --verbose
Exception `LoadError' at /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1073 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/ruby
mkdir -p /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0
mkdir -p /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/bin
install -c -m 0644 gauntlet_rubygems.rb /Users/shigeya/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/ga
# invoked with:
# curl -L https://get.rvm.io | bash -s stable --autolibs=3 --ruby=1.9.3
[2013-03-30 09:05:40] make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -fPIC
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
% rvm install 1.9.3-p392
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Building 'ruby-1.9.3-p392' using clang - but it's not (fully) supported, expect errors.
Installing Ruby from source to: /Users/shigeya/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/shigeya/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/shigeya/.rvm/src/ruby-1.9.3-p392
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><a href="http://railscasts.com/episodes/391-testing-javascript-with-phantomjs">http://railscasts.com/episodes/391-testing-javascript-with-phantomjs</a></body></html>%
@shigeya
shigeya / gist:3942901
Created October 24, 2012 00:17
patch webrick's httpresponse.rb
#
# httpresponse.rb -- HTTPResponse Class
#
# Author: IPR -- Internet Programming with Ruby -- writers
# Copyright (c) 2000, 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
#
# $IPR: httpresponse.rb,v 1.45 2003/07/11 11:02:25 gotoyuzo Exp $
@shigeya
shigeya / gist:3925285
Created October 20, 2012 23:53
Rails3: patch to scan spec directory for rake notes
You don't need this patch if you're on Rails 4 (set environment variable instead)
*** /Users/shigeya/.rvm/gems/ruby-1.9.3-p286@aimm3/gems/railties-3.2.8/lib/rails/source_annotation_extractor.rb.FCS Sun Oct 21 08:52:47 2012
--- /Users/shigeya/.rvm/gems/ruby-1.9.3-p286@aimm3/gems/railties-3.2.8/lib/rails/source_annotation_extractor.rb Sun Oct 21 08:53:12 2012
***************
*** 47,53 ****
# Returns a hash that maps filenames under +dirs+ (recursively) to arrays
# with their annotations.
! def find(dirs=%w(app config lib script test))
@shigeya
shigeya / postgresql8.rb
Created September 14, 2012 10:01
brew's postgresql8.rb locally patched
require 'formula'
require 'hardware'
class Postgresql8 < Formula
homepage 'http://www.postgresql.org/'
url 'http://ftp.postgresql.org/pub/source/v8.4.12/postgresql-8.4.12.tar.gz'
sha1 '53a17cd0f104bcad112925d3c6fc2e29e1f89c8e'
depends_on 'readline'
depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old
@shigeya
shigeya / ftp-sites.list
Created September 9, 2012 00:27
List of FTP sites, November 21, 1993
a.cs.uiuc.edu
accuvax.nwu.edu
acm.acm.rpi.edu
acsc.com
adder.maths.su.oz.au
aelred-3.ie.org
aeneas.mit.edu
agate.berkeley.edu
ahkcus.org
aisun1.ai.uga.edu
@shigeya
shigeya / ckdl.rb
Created August 8, 2012 13:03
script to show list of days suitable for choseisan.com input
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
#
# Create list of lines of days with day of week
# suitable for http://chouseisan.com input
#
require 'date'
day = Date.today