Skip to content

Instantly share code, notes, and snippets.

@igorpupkinable
igorpupkinable / README.md
Last active November 19, 2025 19:27
Find plywood sheet width for given mounting points

Configuration

  • STITCHES - mounting points in mm from edge to edge
  • PLYWOODSHEET_WIDTH - available plywood sheet width in mm. Standard sheet sizes are 1525x1525, 2440x1220, 2500x1250, 3000x1500, 3050x1525
  • MIN_STITCH_WIDTH - minimum width between adjacent mounting points in mm
  • MAX_TABLE_ROWS - maximum number of variants to display for each sheet width. See output example below.

Execution

$ node index.js
@igorpupkinable
igorpupkinable / fio-report-parser.js
Last active September 21, 2026 11:55
FIO (Flexible I/O Tester) JSON report parser
const { resolve } = require('node:path');
const { cwd } = require('node:process');
/*
SSD tests. Not supported yet.
- trim: sequential trims (Linux block devices and SCSI character devices only)
- randtrim: random trims (Linux block devices and SCSI character devices only)
- trimwrite: sequential trim+write sequences
- randtrimwrite: like trimwrite, but uses random offsets rather than sequential writes
*/