pete starred syuilo/summaly

@pete pete starred syuilo/summaly · November 13, 2024 20:57

🔍 Get a summary of any web page

TypeScript 51 Updated Jul 9, 2022


pete starred mjl-/ircfs

@pete pete starred mjl-/ircfs · November 13, 2024 21:02

irc with a file system interface, limbo, from mercurial

Limbo 5 Updated Aug 25, 2019


pete starred ddol/rre-rms

@pete pete starred ddol/rre-rms · November 13, 2024 19:38

Rider Rider Evolution: Richard Stallman Edition

Shell 61 Updated Aug 8, 2013


pete starred gaiaus/2024-us-presidential-general-election


pete starred sqfmi/beepy-hardware

@pete pete starred sqfmi/beepy-hardware · October 14, 2024 15:14

Beepy Hardware

255 Updated Sep 8, 2023


pete starred sindresorhus/got

@pete pete starred sindresorhus/got · September 30, 2024 05:29

🌐 Human-friendly and powerful HTTP request library for Node.js

TypeScript 14.2k Updated Sep 27


What do you think of this module?

Ouch. Yeah, I’d be worried if it hit the 90s.

I have kind of a pile of SBC heatsinks, I probably would have cut a hole in the back to fit one if it didn’t come with something to cool it off. The CM-4 can barely get by without a heatsink, the A-06 really needs one. The RK1 (similar CPU, 3588 vs. the A-06’s 3399) has a heatsink with a built-in a fan and case fans and it idles at ambient room temperature, but that wouldn’t work on a machine like the DevTerm (bulky heatsink plus all the fans uses a little more juice).

The R-01 I’ve been running with no heatsink. 40 degrees, never gets past 50 when its single core is fully loaded. I’d be really excited about a beefier RISC-V one; it seems about time for a new CPU board, but the existing ones still do the job fine; I use the A-06 about as much as I use my desktop machine.

I seem to remember reading about upgraded components in later shipments.

Yeah, basically moves the heat to the sheet and also covers the vent slots in the back of the case up to the fan, so it makes a little duct instead of just shooting air in the general direction of the CPU and hoping for the best. I didn’t see pictures of it in anyone’s build (I spent an excessive amount of time looking at pictures before the DevTerm arrived; I was very excited) and it came with separate instructions so I figured that it wasn’t part of the first run.

I think cranked all the way down the A06 is probably friendlier with battery life than the CM4?

I think so, but you can turn off cores in the CM-4 by doing sudo sh -c 'echo 0 > /sys/devices/system/cpu/cpuN/online' (replacing N) for as many cores as you want to turn off, and setting the powersave governor. I kind of wonder why the gear system doesn’t just change governors around instead of setting max frequency; like you can set the CPU governors independently, and that caps all of them at the min frequency, and adjust. There’s a “conservative” governor that is like ondemand or schedutil but it has a delay when changing frequencies so there’s a ramp-up and ramp-down period, but I think (don’t quote me on this, haven’t checked, going from memory) that it’s not included for the CM-4.


pete created a repository pete/irc7

@pete pete created a repository pete/irc7 · September 26, 2024 00:16

IRC client for Plan 9 by khm. I have some changes.

Updated Sep 26


pete created a branch master in pete/irc7

@pete pete created a branch in pete/irc7 · September 26, 2024 00:17

Updated Sep 26


pete pushed to master in pete/irc7

@pete pete pushed to master in pete/irc7 · September 26, 2024 00:34
2 commits to master
  • @pete ef4697c
    Put the new options into the man page.
  • @pete 6e6ede1
    Add a readme.

Toggle pings, remove line-wrapping, unset victim.

Toggle pings, remove line-wrapping, unset victim.

There's a new option (-P) to hide pings at startup, and a new command (/P)
to toggle ping visibility.  Pings are sometimes useful to know about but
if you don't have a target, they kinda flood.

On startup, target is nil and this lets you see everything coming through.
I'd miss DMs because the target was set to a channel, so I had to annoy
people by telling them that I couldn't see DMs unless they told me that I had
them before I had one.  So I added this option and then got a screen full of
PINGs when I woke up.  (Or half full of PINGs and the balance in PONGs.)
This makes irc7 usable as a general client for me.

Lastly, I removed line-wrapping.  I have no use for it.  If anyone else cares
about this changeset, then maybe it could be an option, but as long as I'm the
only one using it, I don't need an option that I'll never enable.

khm's C code is a fun read.  It has a lot of personality.
  • [DH] irc.c

Add a readme.

Add a readme.
  • [DH] README

Put the new options into the man page.

Put the new options into the man page.
  • [DH] irc.man

initial import

initial import
  • [DH] irc.c
  • [DH] irc.h
  • [DH] irc.man
  • [DH] ircsrv.c
  • [DH] mkfile

sam-d's anti-buffer-overflow patch

sam-d's anti-buffer-overflow patch
  • [DH] irc.c

manpage: correctly assign parameters (thanks senthil!)

manpage: correctly assign parameters (thanks senthil!)
  • [DH] irc.man

manpage: syntax fix (thanks senthil!)

manpage: syntax fix (thanks senthil!)
  • [DH] irc.man

What do you think of this module?

like other folks I’ve read comments from here, I too have turned my A06 Devterm into a CM4 device

I have the opposite experience: the CM4 is sluggish and I almost only ever use my A06 (really nice performance) or R01 (runs 6-8 hours and “not fast enough for a browser besides w3m/lynx” turns out to be a benefit). I have the CM4 in my uConsole and it’s fine but the A06 is speedy and works fine for me. (I even sprang for the 8GB CM4.) I ended up putting the CM4 into a module and slotting it into the TPi to use as a NAS.

it generally ran too hot to use them all

I think the big piece of copper and thermal paste came with later orders, or at least mine came with one; mine gets hot when it’s cranked all the way up but I rebuilt everything on-device except qt webengine (because it required more RAM to link than I could muster even after plugging in extra USB drives to use as swap). All the cores maxed out, it got up to 71C, kinda hot but still fine.

It’s possible I never got my scheduler and gear-shifting settings just right

I think what was helpful for me was I keep conky on the side (ratpoison with set padding 280 0 0 0, but I set it to toggle so I can hide conky if I want the rest of the screen), so I can see what’s going on and shift appropriately. I usually keep it cranked all the way down (-s 1 or -s 2) and turn it up when I am compiling something or if I attempt to use Firefox or mplayer or something starts to eat a lot of CPU. It’s on -s 1 right now, so just the ambient X/conky/ssh/drawterm stuff eats 13%, but it still lasts a long time. I tried to attach my .conkyrc but it’s not an allowed file type so here’s a screenshot and a gist The .conkyrc I am using on my DevTerm. · GitHub . Anyway, long way of saying it’s easier to figure out when you need to crank the gears up or down when you have a CPU monitor running.

As far as performance, I did some test compiles, the performance cores are about twice as fast at the same clock rate.


The .conkyrc I am using on my DevTerm.

.conkyrc
conky.config = {
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
minimum_width = 5,
default_graph_width = 200,
default_graph_height = 40,
default_gauge_width = 200,
alignment = 'top_left',
background = false,
default_outline_color = 'white',
default_shade_color = 'CornflowerBlue',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = '6x13',
gap_x = 0,
gap_y = 6,
minimum_height = 3,
net_avg_samples = 2,
no_buffers = true,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
own_window = false,
own_window_class = 'Conky',
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
--update_interval = 10.0,
update_interval = 1.5, -- 2.7,
uppercase = false,
use_spacer = 'none',
use_xft = false,
color0 = 'fff8e0',
color1 = 'ff2222',
color2 = '00ee00',
color3 = 'bb8833',
color4 = '0072ff',
color5 = '706c9a',
color6 = '00aabb',
color7 = 'efef60',
color8 = '999999',
color9 = 'ff8442',
}
-- urxvt*background: #000008
-- urxvt*foreground: #fff8e0
conky.text = [[
$color0${no_update $nodename}${execi 90001 echo $DISPLAY} ${no_update $sysname} ${no_update $kernel}/${no_update $machine}$color
${color8}Uptime:$color $uptime ${color8}Load:$color ${loadavg}
${color0}${time}$color | ${color9}${execi 11 /home/pete/bin/battery}${color}
${color8}${tztime America/Los_Angeles}$color | ${color7} $acpitemp°C${color} | $color6 BL: ${execi 13 /home/pete/bin/cbl}
${color4}[CPU:$color $cpu% ${freq_g}GHz ${color4}]${hr}$color
${color white}${cpugraph 40,270 00e4ff ff4da1 -t}$color
${cpugraph cpu1 15,40 224422 0072ff -t} ${cpugraph cpu2 15,40 222244 00aabb -t} ${cpugraph cpu3 15,40 222244 0072ff -t} ${cpugraph cpu4 15,40 224422 00aabb -t} ${cpugraph cpu5 15,40 442222 ff8442 -t} ${cpugraph cpu6 15,40 442222 ff8442 -t}
${color8}RAM: $color $mem/$memmax - $memperc% ${membar 4}
${color8}Swap:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color4}[FS]${hr}$color
${color white}/ $color${fs_used_perc /}% used / ${fs_free /} free
${fs_bar 6 /}
${color white}/tmp $color${fs_used_perc /tmp}% used / ${fs_free /tmp} free
${fs_bar 6 /tmp}${if_mounted /opt/tmp}
${color white}/opt/tmp $color${fs_used_perc /opt/tmp}% used / ${fs_free /opt/tmp} free
${fs_bar 6 /opt/tmp}${endif}${if_mounted /mnt}
${color white}/mnt $color${fs_used_perc /mnt}% used / ${fs_free /mnt} free
${fs_bar 6 /mnt}${endif}
${color4}[wlan0 $color${wireless_essid wlan0} $color8${addr wlan0}${color4}]${hr}$color
[${wireless_link_qual wlan0}] ${wireless_link_bar 8,60 wlan0} (${wireless_link_qual_perc wlan0}%) ${wireless_bitrate wlan0} @ ${wireless_freq wlan0}
UP: ${upspeedgraph wlan0 10,150 004da1 ff4da1 -t} ${upspeed wlan0}
DOWN: ${downspeedgraph wlan0 10,150 ff00a1 ffffa1 -t} ${downspeed wlan0}
${color4}[PS]${hr}$color
${color8}Name PID CPU% MEM%
${color #fff8e0}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey}${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color lightgrey}${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
]]

bump dependencies to latest

bump dependencies to latest
  • [DH] Cargo.lock
  • [DH] Cargo.toml

Node MSC over BMC_USB_OTG

Node MSC over BMC_USB_OTG
  • [DH] src/app.rs
  • [DH] src/app/bmc_application.rs
  • [DH] src/app/usb_gadget.rs
  • [DH] src/usb_boot.rs
  • [DH] src/utils.rs