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
View 0001-Revert-Feature-19422-Enable-shared-by-default-on-mac.patch
From 6e957e7d49f1e1762fd28d3a0d0df1f3cd1ec288 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@ruby-lang.org>
Date: Tue, 21 Nov 2023 17:09:58 +0900
Subject: [PATCH] Revert "[Feature #19422] Enable shared by default on macOS"
This reverts commit 9694445051c4192c8f659529133acab253bd0bc3.
---
configure.ac | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
@hsbt
hsbt / demo.rb
Created September 11, 2021 03:29
View demo.rb
class Demo
# 外向けからはこれだけがよばれる
def run
puts 'new'
_run
end
private
View gist:0ec61fa5bca24778fa504f4ec25dfd8a
diff --git tool/sync_default_gems.rb tool/sync_default_gems.rb
index 1c697857d0..3b8dd5474d 100644
--- tool/sync_default_gems.rb
+++ tool/sync_default_gems.rb
@@ -353,6 +353,15 @@ def sync_default_gems(gem)
end
end
+IGNORE_FILE_PATTERN =
+ /\A(?:[A-Z]\w*\.(?:md|txt)
View gist:47da18134a7323ab6fdb00d23e148e5f
lib/open-uri.rb
2:require 'uri'
lib/time.rb
3:require 'date'
lib/rdoc/store.rb
2:require 'fileutils'
lib/rdoc/options.rb
View gist:f61e3f946f2ac5da6e0768d370ed7688
hsbt@euclid /usr % ls /usr/lib
charset.alias libMTLCapture.dylib libiodbcinst.2.dylib log sasl2
cron libffi-trampolines.dylib libiodbcinst.dylib pam sqlite3
dsc_extractor.bundle libgmalloc.dylib libobjc-trampolines.dylib php swift
dtrace libhunspell-1.2.0.dylib libpython.dylib pkgconfig system
dyld libhunspell-1.2.dylib libpython2.7.dylib python2.7 updaters
groff libiodbc.2.dylib libstdc++.6.dylib rpcsvc xpc
libLeaksAtExit.dylib libiodbc.dylib libstdc++.dylib ruby zsh
View gist:c4a6cf7dfaf3839998378e9d55faa330
linking shared-object io/nonblock.bundle
../../../../ext/fiddle/libffi-3.2.1/src/arm/trampoline.S:34:17: error: vector register expected
stmfd sp!, {r0-r3}
^
../../../../ext/fiddle/libffi-3.2.1/src/arm/trampoline.S:39:9: error: invalid operand for instruction
ldr r0, [pc, #-4092]
^
../../../../ext/fiddle/libffi-3.2.1/src/arm/trampoline.S:42:9: error: invalid operand for instruction
ldr pc, [pc, #-4092]
^
View gist:82d9eae64ccbc3a4cc648ad973ab00a6
$ rbenv install truffleruby-20.2.0
ruby-build: using openssl from homebrew
Downloading truffleruby-20.2.0-macos-amd64.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/ac1e6867e357a44d0bb72b0bb44ea50c3900b0574e81e6e48d2317b6b45a6ffd
Installing truffleruby-20.2.0...
Recompiling the OpenSSL C extension (against the installed libssl)
/Users/hsbt/.local/share/rbenv/versions/truffleruby-20.2.0/lib/mri/rubygems/specification.rb:18: warning: loading in progress, circular require considered harmful - /Users/hsbt/.local/share/rbenv/versions/truffleruby-20.2.0/lib/mri/rubygems.rb
<internal:core> core/kernel.rb:265:in `require': RubyGems did not redefine #require as expected, make sure $LOAD_PATH and home are set correctly (RuntimeError)
from /Users/hsbt/.local/share/rbenv/versions/truffleruby-20.2.0/lib/mri/rubygems/specification.rb:18:in `<top (required)>'
from <internal:core> core/kernel.rb:257:in `require'
View gist:806d4d93e120ff26e229ead84386e43f
$ rake test
Run options: --seed 14972
# Running:
.........................................................................................................................E.........................................................................................................^Crake aborted!
Interrupt:
Tasks: TOP => test
(See full trace by running task with --trace)
View gist:bc9ed40405cc8b96a82c4b432d0f219e
11238 │ compiling symbol.c
11239 │ parse.c:12491:41: error: too many arguments provided to function-like macro invocation
11240 │ yytoken, &yylval, &yylloc, p);
11241 │ ^
11242 │ parse.c:6055:9: note: macro 'yydestruct' defined here
11243 │ #define yydestruct(m, t, v) ruby_parser_yydestruct(m, t, v, p)
11244 │ ^
11245 │ parse.c:12490:11: error: use of undeclared identifier 'yydestruct'
11246 │ yydestruct ("Error: discarding",
11247 │ ^
View gist:eff3a2b9e075860d4190217dfb1475f3
abbrev
[{"id":94602,"handle":"nt_gem_test","email":"alfredhochmeier@yahoo.de"}]
base64
[{"id":95512,"handle":"jimflexton","email":"hans_adel@zoho.com"}]
coverage
[{"id":41673,"handle":"jix","email":"jannis@harderweb.de"},{"id":41557,"handle":"kbrooks","email":"cmpfixer@hotmail.com"},{"id":42043,"handle":"jpedrosa","email":"joaopedrosa@yahoo.com"},{"id":42164,"handle":"pinguin751","email":"pinguin751@gmx.net"},{"id":42796,"handle":"neoneye","email":"neoneye@gmail.com"},{"id":42828,"handle":"msparshatt","email":"msparshatt@gmail.com"}]
english
[{"id":209,"handle":"transami","email":"transfire@gmail.com"},{"id":11988,"handle":"temp_account","email":"michael.s.klishin@gmail.com"}]
fiber
[{"id":62948,"handle":"zackrw","email":"z.reneau.wedeen@gmail.com"}]