Skip to content

Instantly share code, notes, and snippets.

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
View gist:3c4d139a21dc1397fb893db0e31e74ba
.. fis init -f
.. load -r -v -b 0x80050000 Nec_WR7850S_rootfs_clean.iso.ulzma
.. fis create -e 0x00000000 rootfs
.. load -r -b 0x80004000 Nec_WR7850S_kernel.kbin
.. exec
ip_address -l 10.10.10.180 -h 10.10.10.3
.. fis init -f
.. load -r -v -b 0x80050000 Corega_CG-WLCVR54AG_rootfs_clean.iso.ulzma
View gist:63c4b9cc841530003ad0ee6842ea653b
def copylcd(c, sp)
for n in 1..64 do
rgba = c.getpix(0, n - 1, 128)
for i in 1..16 do
pat = 0
for k in 1..8 do
if rgba[1 + (i - 1) * 4 * 8 + (k - 1) * 4] == 0xff
pat |= 1 << (8 - k)
end
end
View gist:12994b190c9c0921dd7c7a3e7ad98980
def copylcd(c, sp)
for n in 1..64 do
rgba = c.getpix(0, n - 1, 128)
for i in 1..16 do
pat = 0
for k in 1..8 do
if rgba[1 + (i - 1) * 4 * 8 + (k - 1) * 4] == 0xff
pat |= 1 << (8 - k)
end
end
View gist:a95106079336584ebeb5a9d05387ffbd
# geom -t
Geom Class Provider
flash/spi0 DISK flash/spi0
flash/spi0 MAP map/bootloader
map/bootloader DEV
flash/spi0 MAP map/upgrade
map/upgrade DEV
flash/spi0 MAP map/kernel
map/kernel DEV
flash/spi0 MAP map/rootfs
View gist:f070f4ef0d86d976fb9758dd27ddb221
BCM338332 TP0 346890
MemSize: 128 M
Chip ID: BCM3383G-B0
BootLoader Version: 2.6.0-15-gac1e Release Gnu spiboot reduced DDR drive
Build Date: Mar 13 2015
Build Time: 15:41:05
SPI flash ID 0xc22018, size 16MB, block size 64KB, write buffer 256, flags 0x0
parameter offset is 40788
You can’t perform that action at this time.