Skip to content

Instantly share code, notes, and snippets.

View gist:d05a3801ab51c0bf44d5d9a04d93d09c
diff --git a/src/hash.c b/src/hash.c
index b800a251..298eab26 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -12,6 +12,20 @@
#include <mruby/string.h>
#include <mruby/variable.h>
+#ifdef MRB_HASH_DEBUG
+//# include <stdio.h>
View gist:f8f7c8a0eca849457d258634e5439736
git diff
diff --git a/mrblib/simplehttp.rb b/mrblib/simplehttp.rb
index 2edbe51..855198e 100644
--- a/mrblib/simplehttp.rb
+++ b/mrblib/simplehttp.rb
@@ -88,7 +88,9 @@ class SimpleHttp
else
# dns lookup
yabm = YABM.new
+yabm.print @uri.ii
View gist:3ee4a05076aabcc6ce515692c28fbdbb
ERB build/repos/rtl8196/mruby-object-internal/src/gc.c.erb -> build/rtl8196/mrbgems/mruby-object-internal/src/gc.c
rake aborted!
NameError: undefined local variable or method `_1' for #<MRuby::Gem::Specification:0x0105a004>
View gist:cb6cd857d85d5f59b1e588feaf7b956c
% ./mkmrb.sh samples/class.rb
=================================================================
==1294==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x22e068e9 at pc 0x004b32bb bp 0xffbfe4cc sp 0xffbfe0a8
WRITE of size 8 at 0x22e068e9 thread T0
#0 0x4b32ba in __asan_memcpy /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp:22:3
#1 0x534f13 in write_footer /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:358:3
#2 0x52ce88 in dump_irep /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:858:3
#3 0x52d454 in mrb_dump_irep_binary /usr/home/hiroki/rtlbm-mruby/mruby/src/dump.c:890:12
#4 0x52af12 in dump_file /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:263:9
#5 0x52678a in main /usr/home/hiroki/rtlbm-mruby/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c:333:12
View list.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>AM DX LIST</title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<link href="https://unpkg.com/tabulator-tables@4.8.3/dist/css/tabulator.min.css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/tabulator-tables@4.8.3/dist/js/tabulator.min.js"></script>
<script>
function customFilter(data, filterParams){
View gist:7f09ac11d18a052939d7ba9632e1db57
def track(c, mml)
return Fiber.new {
ch = c
dat = mml
curev = -1
loop do
if curev == -1 || curev[1] == 0 then
curev = dat.getnext()
if curev == -1 then
View gist:9f0ac048df2dedfa06366ca84865f5a9
26552
356508
9.1
1022.74
["200 OK", "200 OK"]
I2C find 77
26551
356505
9.1
1022.66
View gist:08e24e09bfa5bc5386df8f5909a1209a
diff --git a/sys/dev/fdt/fdt_slicer.c b/sys/dev/fdt/fdt_slicer.c
index 462cb4d80fe..bc468108732 100644
--- a/sys/dev/fdt/fdt_slicer.c
+++ b/sys/dev/fdt/fdt_slicer.c
@@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/openfirm.h>
+#include <geom/geom.h>
+
View peerstats.20191127
58814 7220.853 127.127.20.0 971a 0.000002338 0.000000000 0.000246762 0.000015259
58814 7236.853 127.127.20.0 971a 0.000002342 0.000000000 0.000246762 0.000015259
58814 7252.853 127.127.20.0 971a 0.000002537 0.000000000 0.000246762 0.000015259
58814 7268.853 127.127.20.0 971a 0.000002297 0.000000000 0.000246762 0.000015259
58814 7284.853 127.127.20.0 971a 0.000002660 0.000000000 0.000246762 0.000015259
58814 7300.853 127.127.20.0 971a 0.000002629 0.000000000 0.000246762 0.000015259
58814 7316.854 127.127.20.0 971a -31.999997655 0.000000000 0.000246762 32.000000099
58814 7332.853 127.127.20.0 971a -31.999998022 0.000000000 0.000246762 29.626243646
58814 7348.853 127.127.20.0 911a -31.999998074 0.000000000 0.000246762 27.044936631
58814 7364.836 127.127.20.0 911a -31.999998182 0.000000000 0.000246762 24.189726812
View gist:d68a4d2b98d0014cb55fb513b7bbb9a5
microserver % readelf -S Fon_FON2305E_FDT_kernel
There are 28 section headers, starting at offset 0x43d230:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 80001100 001100 296530 00 AX 0 0 16
[ 2] .MIPS.stubs PROGBITS 80297630 297630 000010 00 AX 0 0 4
[ 3] .rodata PROGBITS 80297640 297640 03357c 00 A 0 0 16
[ 4] set_modmetadata_s PROGBITS 802cabbc 2cabbc 000414 00 A 0 0 4