Skip to content

Instantly share code, notes, and snippets.

View wohali's full-sized avatar
💭
I may be slow to respond.

Joan Touzet wohali

💭
I may be slow to respond.
View GitHub Profile
@wohali
wohali / errors.md
Created July 18, 2023 20:30
octodon console errors
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). gaoptout.js:1:322
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). content.js:149:48
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. node.js:383
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). load_progress_bar.js:79:30
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). load_progress_bar.js:54:12
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). 2 load_progress_bar.js:91:31
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). inject.js:221:46
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“style-src”). 2 load_prog
@wohali
wohali / rfgateway.json
Last active July 28, 2023 04:42
RFGateway M4
{
"build": {
"arduino": {
"ldscript": "flash_with_bootloader.ld"
},
"core": "moteino",
"cpu": "cortex-m4",
"extra_flags": "-D__SAMD51__ -D__SAMD51J19A__ -DRFGATEWAY_M4 -D__FPU_PRESENT -DARM_MATH_CM4 -mfloat-abi=hard -mfpu=fpv4-sp-d16",
"f_cpu": "120000000L",
"hwids": [
1 .title PDP11GUI RK05 sector loader/writer for RK11 controller
2
3 ; This code reads or writes one sector from a RK05 into memory
4 ; It is used by PDP11GUI to access a RK05 disc
5 ;
6 ; See
7 ; RK11-D and RK11-E moving head disk drive controller manual (Aug 1973, DEC-11-HRKDA-B-D).pdf
8 ;
9 ; !!! DO NOT CHANGE file name,
10 ; !!! entry labels,
000013 165174 177412 177412
$L 173442
$Sÿ
RT-11SJ V04.00
.D 56=5015
.TYPE V4USER.TXT
Welcome to RT-11 Version 4. RT-11 V04 provides new hardware support
and some major enhancements over Version 3B.
^A toggle CR/CRLF mode (for echoed data)
^B set overflow-clears-screen mode
^C set overflow-scrolls-screen mode
^D +D disable input, ^D +I enable input
^E Editor mode (exit with ESC)
^F caused a hang - flushes data to slaves?
^G closes relay
^H backspace
^I equivalent to space
^J line feed
@wohali
wohali / add-gps0.service
Created May 28, 2024 15:03
tips on a chrony setup using uputronix board + gpsd + chrony + chrony-exporter --> prometheus + grafana
place at /etc/systemd/system/add-gps0.service
[Unit]
Description=Add /dev/gps0 symlink
Before=gpsd.service
[Service]
Type=oneshot
ExecStart=/usr/bin/ln -s /dev/ttyAMA0 /dev/gps0
RemainAfterExit=yes
@wohali
wohali / readme.md
Created July 10, 2024 07:16
Using C-Kermit with SimH to transfer files from a simulated PDP-11

Using C-Kermit with SimH to transfer files from a simulated PDP-11

This is a short guide on copying files to/from a simulated PDP-11 using C-Kermit. It's slow, but extremely robust.

Configuring SimH

Here's a minimal machine config for Kermit. It's possible to run in less memory but I didn't spend the time to work it out.

The most important parts of this config are the dli/dlo lines, which enable a second serial line for file transfer, and the cpu line setting 256KB of memory.

@wohali
wohali / notes.txt
Last active May 26, 2025 20:19
gps notes
- GPS radio
- tail -f /dev/ttyAMA0
- screen /dev/ttyAMA0 9600
- echo ‘$PUBX,40,GSV,0,0,0,0*59’ >/dev/ttyAMA0
- ppstest /dev/pps0
- cgps -s
- gpsmon
- Chrony (NTP - GPS driven)
- chronyc sources