pete starred eylles/shed

@pete pete starred eylles/shed · April 6, 2026 20:40

session process with init-agnostic user services and graceful session log out

Shell 17 Updated Apr 6


pete starred realytcracker/go-bithue

@pete pete starred realytcracker/go-bithue · April 6, 2026 01:13

correlate your Philips Hue lights to the bitcoin price on Bitfinex

Go 22 Updated Mar 16, 2017


pete starred realytcracker/hummingbot

@pete pete starred realytcracker/hummingbot · April 6, 2026 00:32

Open source software that helps you create and deploy high-frequency crypto trading bots

Python 2 Updated Aug 14, 2025


pete starred wasdwasd0105/picocalc-pi-zero-2

@pete pete starred wasdwasd0105/picocalc-pi-zero-2 · April 5, 2026 17:48

Raspberry Pi Zero 2 on Picocalc

C 51 Updated Jun 13, 2025


pete starred tabemann/zeptoforth

@pete pete starred tabemann/zeptoforth · April 5, 2026 13:54

A not-so-small Forth for Cortex-M

Forth 323 Updated Mar 24


pete starred rh1tech/frank-os

@pete pete starred rh1tech/frank-os · April 5, 2026 12:56

FRANK OS - The RP2350 Operating System

C 209 Updated Apr 5


pete starred jcrona/tamalib

@pete pete starred jcrona/tamalib · April 4, 2026 17:49

A hardware agnostic first-gen Tamagotchi emulation library

C 252 Updated Apr 3, 2025


ollama on Plan 9

afill
#!/bin/rc
# This script was written entirely out of perversity:
# it is LLM code-completion for acme under Plan 9.
# It will attempt to fill in a chunk of code under the cursor,
# in acme
# under Plan 9
# using only tools available in Plan 9
# to talk to ollama.
# I have mixed the sacred and the profane.
# You just put it in the tag in the acme window, and then you
# middle-click it and it will complete a configurable number of
# tokens. The result will be highlighted.
# The only thing you need that doesn't come with Plan 9 is the Go port of jq.
out=wrsel
host=kan:11434
diag=/dev/null
temp=0.15
tokens=64
window=auto
model=qwen2.5-coder:14b
while(! ~ $#* 0){
switch($1) {
case -i ; out=wrsel; shift
case -e ; out=/fd/1; shift
case -a ; shift; host=$1; shift
case -m ; shift; model=$1; shift
case -t ; shift; temp=$1; shift
case -n ; shift; tokens=$1; shift
case -w ; shift; window=$1; shift
case -W ; shift; window=auto
case -v ; diag=/fd/2; shift
case *; echo bad args: $* >[1=2]; exit usage
}
}
cd /mnt/acme/$winid || exit winid
addrs = `{{echo -n 'addr=dot' >[1=3];cat <[0=4]} >[3]ctl <[4]addr}
if(~ $window auto) {
hget -p '{"verbose":false,"name":"' ^ $model ^ '"}' \
http:// ^ $host ^ /api/show > \
/tmp/last-ollama-show.js
pfx = `{gojq -r .details.family < /tmp/last-ollama-show.js | tee $diag}
window = `{gojq -r '.model_info["' ^ $pfx ^ '.context_length"]' < /tmp/last-ollama-show.js | tee $diag}
}
body = `''{awk -v 'si=' ^ $addrs(1) -v 'ei=' ^ $addrs(2) -v 'w=' ^ $window '
{f=f $0 "\n"}
function fix(str) {
# For whatever reason, \ and " behave differently in substitutions.
gsub(/\\/, "\\\\", str)
gsub(/"/, "\\\"", str)
gsub(/\n/, "\\n", str)
gsub(/\t/, "\\t", str)
return str
}
END{
s = substr(f, 1, si)
e = substr(f, ei+1)
if(w && (length(s) > w))
s = substr(s, 1+length(s)-w)
if(w && (length(e) > w))
e = substr(e, 1, w)
printf "si: %d (%d), ei: %d (%d), w: %d\n", si, length(s), ei, length(e), w > "' ^ $diag ^ '"
printf "\"prompt\":\"%s\",\"suffix\":\"%s\"", fix(s), fix(e)
}
' body}
wopt = ''
if(! ~ $window 0) {
wopt = '"num_ctx":' ^ $window ^ ,
}
bpl = '{"model":"' ^ $model ^ '","stream":false,"options":{' ^ $wopt ^ '"num_predict":' ^ $tokens ^ ',"temperature":' ^ $temp ^ ',"top_p":0.9,"stop":["<EOT>"]},' ^ $body ^ '}'
echo $bpl > /tmp/last-ollama-payload.js
echo http:// ^ $host ^ /api/generate → $model > $diag
echo ' ' $bpl > $diag
hget -p $bpl http:// ^ $host ^ /api/generate |\
tee /tmp/last-ollama-resp.js |\
gojq -r .response > $out

pete starred TheSledgeHammer/AdvFS

@pete pete starred TheSledgeHammer/AdvFS · April 4, 2026 17:45

Tru64 Unix's AdvFS Documentation & Source Code

C 10 Updated Jun 4, 2023


pete starred 9nut/picow_9p_fs

@pete pete starred 9nut/picow_9p_fs · April 4, 2026 17:46

A collection of TinyGo 9P File Server Examples for the Pi Pico W

Go 5 Updated Apr 3


pete starred sqfmi/tamawatchy

@pete pete starred sqfmi/tamawatchy · April 4, 2026 17:47

Tamagotchi emulator for Watchy

C 18 Updated Mar 28


Any new and working images for Devterm with CM3?

Why’s that?

something like Trixie and XFCE since there is small amounts of ram on this board.

I have the R-01 (also 1GB RAM; everything works fine except a browser, which is not a problem for me) and I just run Slackware ( Slackware image for DevTerm R01 ) with ratpoison on it. I think the regular Armbian stuff will work on the CM3, though.


pete commented on an issue in RadiusClaim

@pete pete commented on wesback/RadiusClaim#41 · April 3, 2026 20:13
@wesback &gt; Triage: @pete &gt; Assignment: Pete (Infrastructure Automation Specialist) Well, that sounds like me but your clanker has tagged me in thre…

pete starred benob/picocalc-umac

@pete pete starred benob/picocalc-umac · April 3, 2026 13:22

A stratforward port of pico-umac, the Macintosh emulator for pico

C 34 Updated Aug 21, 2025


pete starred ohm69/zx-picocalc

@pete pete starred ohm69/zx-picocalc · April 2, 2026 18:12

RP2040 ZX Spectrum emulator ported to Picocalc by Clockwork Pi

C 18 Updated Nov 22, 2025


pete starred antirez/zx2040

@pete pete starred antirez/zx2040 · April 2, 2026 18:12

RP2040 ZX Spectrum emulator

C 175 Updated Dec 3, 2025


uConsole OS directory

Ha, that sort of thing happens, you know, I think not a lot of people love the R-01, I love it.

(This is an extremely good post, thank you.)


uConsole OS image directory

Not to pick on a possible typo in a draft but the R-01 is 64 bits.


pete commented on pull request miguelfreitas/twister-core#465

@pete pete commented on miguelfreitas/twister-core#465 · March 25, 2026 04:27
Because there's no telling if digs might have snuck a decrement into the blank line between the other two checks. Some of these ints are untrustwor…

pete starred jeffmerrick/typeframe

@pete pete starred jeffmerrick/typeframe · March 17, 2026 15:42

A collection of open-source hardware and software for building writerdecks and cyberdecks

TypeScript 84 Updated Feb 9


Doc update.

Doc update.
  • [DH] doc/contributing