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
^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 / steps.md
Last active April 20, 2024 21:10
Multi-Function Tester TC1 flashing

Updating U4

  1. Unscrew the case via the 4 screws on the back.
  2. Desolder the positive lead of the rechargeable battery. This is necessary because the bootloader of U4 is only present immediately after power-on.
  3. Configure Tigard (or other USB-TTL device) as follows:
    1. VTGT switch to 3V3
    2. TX to P1 (left side of U4, clearly marked
    3. RX to P2 (just above P1)
    4. GND to GND (just below P1, unmarked)
    5. Prep VTGT to connect to VTGT (just above P2, unmarked, trace goes to pin 2 of U4)
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.
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,
@wohali
wohali / rendang_daging.md
Last active August 7, 2023 06:50
Beef Rendang, from The Complete Asian Cookbook, by Charmaine Solomon

Rendang Daging

Dry Fried Beef Curry

It is worth making a large quantity of this because it keeps so well, developing more flavour each day.

Serves: 8

Ingredients

  • 1.5 kg (3 lb) chuck blade, or round steak
  • 2 medium onions, roughly chopped
@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": [
@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 / howto.md
Last active June 25, 2023 04:01
How to get the data off of a Micro PDP-11

I assume you have an RX50 dual-floppy on your machine, and that you're trying to get the data off of e.g. an ST506 MFM HDD that's in the machine.

  1. Get a PC or laptop setup with serial to the box. You want to connect to the Console port (the top left one), set the rotary switch to 9600 bps (setting 14) as 19200 is too unstable. You'll also need a null modem crossover to swap RX/TX and RTS/CTS. I recommend using Kermit on your machine to speak to the PDP, as you'll need it for file copies anyway. You can create the following script as e.g. pdp.ck and execute $ kermit pdp.ck to automatially connect to the machine with the correct parameters:

     set line /dev/ttyR0             ; replace with the correct device for you
                                     ; this is port 0 on a RocketCom 8-port serial card
     set speed 9600                  ; rotary switch setting 14 on the micro PDP-11
     set parity even                 ;
     set stop-bits 1                 ;
    

set session-log binar

@wohali
wohali / simple-view-no-null.erl
Created February 24, 2014 06:39
Simple Erlang views for CouchDB
%% this is an exact match for the original JS function
fun({Doc}) ->
case proplists:is_defined(<<"diet">>, Doc) of
true ->
Emit(proplists:get_value(<<"diet">>, Doc), 1);
false ->
ok
end
end.
@wohali
wohali / cranberry_christmas_pudding.md
Created December 25, 2022 02:16
Cranberry Christmas Pudding

Cranberry Christmas Pudding

Batter ingredients

  • ¾ teaspoon baking soda
  • ½ cup hot water
  • 1 tablespoon white sugar
  • ½ cup molasses
  • 1½ cup all-purpose flour
  • 2 cups cranberries