Skip to content

Instantly share code, notes, and snippets.

View shigeya's full-sized avatar

Shigeya Suzuki shigeya

View GitHub Profile
# 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
[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
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
@shigeya
shigeya / ksoul.sty
Created May 23, 2013 10:23
TeX macro \kst \kul and \khl which make kanji-characters breakable inside \st \ul and \hl of soul package. Incomplete, but works well.
\ProvidesPackage{ksoul}[2010/12/24 Kanji Based soul]
\RequirePackage{soul}[2003/11/17]
% for \st
\def\kst#1{%
\@kst#1\end}
\def\@kst#1{%
\ifx#1\end \let\next=\relax \else
\st{#1}%
\let\next\@kst
# Ruby 1.8's File.read don't support option.
# read_with_options ignore optional parameter for 1.8,
# and act as alias for 1.9 or later.
class File
if RUBY_VERSION < '1.9'
def self.read_with_options(path, opts = {})
self.read(path)
end
else
def self.read_with_options(path, opts = {})
@shigeya
shigeya / pdf_encoding_fix.sty
Created September 27, 2013 09:22
Hack to correct encoding of PDF section browser titles
\ifluatex\else\ifx\kanjiskip\undefined\else
\ifx\ucs\undefined
\usepackage{atbegshi}
\ifnum 42146=\euc"A4A2
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
\else
\AtBeginShipoutFirst{\special{pdf:tounicode 90ms-RKSJ-UCS2}}
\fi\fi\fi\fi
- Y. Takabe, K. Matsumoto, M. Yamagiwa, and M. Uehara, “Proposed Sensor Network for Living Environments Using Cloud Computing,” presented at the 2012 15th International Conference on Network-Based Information Systems (NBiS), pp. 838–843.
- K. Matsumoto, M. Yamagiwa, M. Uehara, and H. Mori, “Proposal of Sensor Data Gathering with Single Board Computer,” presented at the 2013 Workshops of International Conference on Advanced Information Networking and Applications (WAINA), pp. 162–167.
- M. Ikebe and K. Yoshida, “An Integrated Distributed Log Management System with Metadata for Network Operation,” presented at the 2013 7th International Conference on Complex, Intelligent, and Software Intensive Systems (CISIS), pp. 747–750.
【auからのお知らせ(受信無料)】ようこそアメリカ・カナダ・カリブ諸国へ。アメリカ・カナダ・カリブ諸国ではメールやインターネットが最大でも2,980円/日(日本時間の0-24時)の定額で安心してご利用いただけます。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国から日本への発信は140円/分です。SMSの送信は100円/通、受信は無料です。海外から日本に電話をかける際は、「+81」に続き、頭の0を除いた電話番号を入力して下さい。(+は0を長押し等)(例)080-XXXX-XXXXにかけたい場合⇒+81-80-XXXX-XXXX ご旅行中お気をつけてお過ごし下さい。
【auからのお知らせ(受信無料)】アメリカ・カナダ・カリブ諸国での通話・通信料金はここからチェック http://www.au.kddi.com/r/sms-lusa/ ※リンク先ページの閲覧にはデータ通信料金が発生します
# $Id$
# News
INBOX.News.WSJ from [email protected]
INBOX.News.WashingtonPost from @letters.washingtonpost.com
INBOX.News.WashingtonPost from @email.washingtonpost.com
INBOX.News.NYTimes from [email protected]
INBOX.News.LATimes from @email.latimes.com
INBOX.News.SpaceDaily from @spacedaily.com
#!/usr/bin/env ruby
# Script to generate sieve script from triplet of folder, header, match
#
#puts 'require "fileinto";'
doif = "elsif"
ARGF.each {|p|
p.chomp!
p.sub!(/^\s+/, "")