Skip to content

Instantly share code, notes, and snippets.

View hsbt's full-sized avatar
🏠
Working from home

Hiroshi SHIBATA hsbt

🏠
Working from home
View GitHub Profile
~/D/g/ruby > hyperfine --min-runs 5 'ruby -e "p String"' 'ruby --disable-gems -e "p String"'
Benchmark #1: ruby -e "p String"
Time (mean ± σ): 310.4 ms ± 24.5 ms [User: 138.2 ms, System: 76.2 ms]
Range (min … max): 288.8 ms … 367.0 ms
Benchmark #2: ruby --disable-gems -e "p String"
Time (mean ± σ): 142.7 ms ± 6.3 ms [User: 53.8 ms, System: 57.8 ms]

fish の話

brew install fish してインストール。設定ファイルは ~/.config/fish/config.fish に書いてる。

~ > wc -l ~/.config/fish/config.fish 
      29 /Users/hsbt/.config/fish/config.fish

設定内容はこれだけ。set -x でいくつかグローバルな環境変数を入れて、あとは alias と function だけ。設定は fisherman を使って入れる。

.x86_64-darwin//miniprelude.c
.x86_64-darwin//lex.c
.x86_64-darwin//ext/rbconfig/sizeof/limits.c
.x86_64-darwin//ext/rbconfig/sizeof/sizes.c
.x86_64-darwin//ext/ripper/eventids1.c
.x86_64-darwin//ext/ripper/eventids2table.c
.x86_64-darwin//ext/ripper/ripper.c
.x86_64-darwin//ext/socket/constdefs.c
.x86_64-darwin//prelude.c
.x86_64-darwin//enc/trans/iso2022.c
~/D/g/a/all-ruby (master) > all-ruby -e "p [].respond_to? :flat_map"
ruby-0.49 -e:1: syntax error
#<Process::Status: pid 8 exit 1>
...
ruby-0.95 -e:1: syntax error
#<Process::Status: pid 20 exit 1>
ruby-0.99.4-961224 FALSE
...
ruby-1.1a7 FALSE
ruby-1.1a8 false
おはようございます。
Rails Girls Japan(RGJP)で会計を担当している柴田です。
この度は RGJP による RubyKaigi 2018 参加支援への応募ありがとうございます。
選考の結果、RubyKaigi 2018 への参加支援を行うことに決定しました。
つきましては、支援を行うにあたって以下の情報について、5/24 までにメールの
返信にて回答をお願いします。(開催まで期日がタイトなので、合わせて仙台への手配を行なった方が良さそうです)
1. RubyKaigi 2017 の参加チケットを保有状況をご連絡ください
~/D/g/r/ruby (trunk) > mk commit
make: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
Committing to svn+ssh://[email protected]/ruby/trunk ...
dcommitted on a detached HEAD because you gave a revision argument.
The rewritten commit is: ee1b07b675ec034f8a91065598c4848a0a99eee0
Already on 'trunk'
Your branch is ahead of 'origin/trunk' by 1 commit.
(use "git push" to publish your local commits)
First, rewinding head to replay your work on top of it...
Applying: Merge fileutils-1.1.0.
/Users/hsbt/Documents/github.com/rubygems/rubygems/lib/rubygems/package/tar_header.rb:233: [BUG] Segmentation fault at 0x0000000000000091
ruby 2.6.0dev (2018-05-06 trunk 63343) [x86_64-darwin17]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
liblz-dev/bionic 1.10-1 amd64
data compressor based on the LZMA algorithm (development)
liblz1/bionic 1.10-1 amd64
data compressor based on the LZMA algorithm (library)
Updated tag 'v1_3_1a_990201' (was cae88a8)
Updated tag 'v1_9_3_545' (was 3f09b48)
Updated tag 'v1_9_3_547' (was c3daa21)
Updated tag 'v1_9_3_550' (was e5f206a)
Updated tag 'v1_9_3_551' (was a61ae80)
Updated tag 'v2_0_0_451' (was bc91674)
Updated tag 'v2_0_0_481' (was c0514d8)
Updated tag 'v2_0_0_576' (was 8064ed4)
Updated tag 'v2_0_0_594' (was 475f5d0)
Updated tag 'v2_0_0_598' (was 64c4c57)
~/D/g/r/ruby (trunk) > gcc -v
Configured with: --prefix=/Applications/Xcode-beta.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.31)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
~/D/g/r/ruby (trunk) > mk up
make: Entering directory '/Users/hsbt/Documents/github.com/ruby/ruby/.x86_64-darwin'
tool/config.guess already exists