Skip to content

Instantly share code, notes, and snippets.

# lm-sensors configuration for the Asus Pro WS TRX50-SAGE WIFI motherboard
#
# Recommended drivers: asus-ec-sensors, nct6775, spd5118
chip "nct6798-isa-0290"
# Voltage labels are from HWiNFO, except Core0/1 and VDD_11_S3 are from the BIOS
label in0 "CPU Core0"
compute in0 @*1.11, @/1.11
label in1 "+5V"
compute in1 @*5, @/5
@kotarou3
kotarou3 / colourspace_differences.py
Created September 25, 2024 21:06
Quantify colour differences when converting between RGB and YCbCR, as well as SDR and HDR
#!/usr/bin/env python3
# Script output:
#
# ΔE (CAM16-UCS) [50, 95, 99, 99.9] percentiles
#
# sRGB (8-bit full) → sRGB (8-bit full)
# (For reference only)
# Quantisation error: [ 0.11 0.23 0.32 0.44]
# ±1 1ch corruption: [ 0.16 0.43 0.53 0.7 ]
@kotarou3
kotarou3 / pelican-cases.csv
Created March 29, 2024 21:28
Internal dimensions of Pelican cases in a convenient table and diagram
Model L (mm) W (mm) H (mm)
1010 111 73 43
1015 131 67 35
1020 135 90 43
1050 160 93 70
1030 162 67 52
1040 165 98 44
1120 185 121 85
1060 210 108 57
1150 211 147 95
@kotarou3
kotarou3 / README.md
Last active March 24, 2024 12:50
Multi-extruder FDM 3D printer comparison

Multi-extruder FDM 3D printer comparison

Includes:

  • Non-IDEX, IDEX (independent extruders), and toolchanger printers
  • Some single extruder printers for reference
  • Prices generally under US$10k (though some more expensive ones are included for "fun")

Notes:

  • Values taken from marketing material - no guarantees if they actually reach

Mount Rokkon: How to not get hit by wind sprites

YouTube link: https://www.youtube.com/watch?v=3HItOmXk0AA

The rest of this document is simply a note to myself on how I made the video

Analysis and image generation

analysis.nb is a Mathematica notebook for analysing the wind sprite patterns and exporting SVGs of them (stills-*.svg for the slideshow images, frames/%04d.svg for the timeline animation)

# Scores Mudfish "advanced mode" nodes since the built-in tool isn't very useful.
# Run with: scrapy runspider mudfish.py
import json
import re
import scrapy
srcIp = "110.175.213.58"
destIp = "124.150.157.158"
srcCountry = "AU"
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
#,Item,Theme[0],Theme[1],,Material[0],Amount[0],Material[1],Amount[1],Material[2],Amount[2],Material[3],Amount[3],LevelReq,CraftingTime,Value
0,"","","",0,"Island Palm Leaf",0,"Island Palm Leaf",0,"Island Palm Leaf",0,"Island Palm Leaf",0,0,0,0
1,"Isleworks Potion","Concoctions","",0,"Island Palm Leaf",2,"Islewort",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
2,"Isleworks Firesand","Concoctions","Unburied Treasures",0,"Island Sand",2,"Island Limestone",1,"Islewort",1,"Island Palm Leaf",0,1,4,28
3,"Isleworks Wooden Chair","Furnishings","Woodworks",0,"Island Log",4,"Island Vine",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,6,42
4,"Isleworks Grilled Clam","Foodstuffs","Marine Merchandise",0,"Island Clam",2,"Island Laver",2,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
5,"Isleworks Necklace","Accessories","Woodworks",0,"Island Branch",3,"Island Vine",1,"Island Palm Leaf",0,"Island Palm Leaf",0,1,4,28
6,"Isleworks Coral Ring","Accessories","Marine Merchandise",0,"Island Coral",3,"Island Vine",3,"I

RTMP to Discord stream (GoLive) conversion

Overview

This guide sets up nginx to convert a RTMP stream to HLS, which then can be opened in browsers. Discord can then take advantage of Chromium's tab sharing feature to stream the HLS stream. Only a few seconds of latency are added, which is acceptable for most applications.

Note: If your goal is to just get audio streaming working on Linux, this guide might be helpful (It results in lower FPS for me, however):

Liquid Cooling Quick-Disconnect Comparison

The accompanying CSV compares various liquid cooling quick-disconnect couplers that satisfy the following criteria:

  • No-spill (<100µL loss on disconnect)
  • Hand mate (requires releasing an interlock to disconnect)
  • Material compatible with a copper loop (e.g., brass, plastic, stainless steel)
  • 0~60°C operating temperature
  • Nominal inner diametre of 6~10mm

Stream audio from Windows to Linux

Tested on Ubuntu 16.04 and Windows 10 Redstone 1

Both boxes need to be on the same network (such that multicast packets can be passed between them)

Installing

Linux

  1. Setup JACK (easy to do with Cadence)

Windows