Skip to content

Instantly share code, notes, and snippets.

View mithro's full-sized avatar

Tim 'mithro' Ansell mithro

View GitHub Profile
@mithro
mithro / grid_html.py
Created August 28, 2026 05:58
pyuscope scan viewers: per-directory HTML grid, overlap view from uscan.json, and mosaic images
#!/usr/bin/env python3
"""Write tiles.html into every directory that holds cNNN_rNNN.jpg tiles, laying them out
in a table (rows = r, cols = c). Also writes ROOT/tiles.html linking to each page.
The page is deliberately NOT called index.html. These trees are published by
nginx with `autoindex on` (data.wafer.space), where a directory request goes
`try_files $uri/` -> index module -> index.html if it exists, and only falls
through to the generated file listing if it does not. An index.html here would
therefore replace the browsable listing of the scan tiles. Keep any name
outside the `index` set. overlap_html.py writes overlap.html for the same
@mithro
mithro / 411-15-klayout-drc.COMMANDS.txt
Last active July 7, 2026 12:09
Full precheck log —j chip_top 1x1 DRC failure (check #411, --workers 8, stage-15 empty-deck crash) — platform.wafer.space#292
klayout -b -zz -r /workspace/gf180mcu/gf180mcuD/libs.tech/klayout/tech/drc/gf180mcu.drc -rd input=/workspace/runs/RUN_2026-07-07_06-54-51/05-klayout-generateid/chip_top.gds -rd topcell=chip_top -rd report=/workspace/runs/RUN_2026-07-07_06-54-51/15-klayout-drc/reports/drc.klayout.lyrdb -rd decks=all,-antenna,-density,-cup -rd variant=gf180mcuD -rd workers=8 -rd threads=1
@mithro
mithro / mithro-resume.md
Last active January 31, 2024 02:51
Tim's Resume in text form - (from bit.ly/mithro-resume)

Tim ‘mithro’ Ansell

  • +1 (774) 264-8476
  • +61 421 968 221
  • me@mith.ro

Skills

  • Expert in building open ecosystems.
  • Strong organization & project management capabilities.
  • Strong presentation ability.
@mithro
mithro / ipmi-updater.py
Created January 22, 2024 06:23 — forked from mattisz/ipmi-updater.py
Supermicro IPMI certificate updater
#!/usr/bin/env python3
# vim: autoindent tabstop=4 shiftwidth=4 expandtab softtabstop=4 filetype=python
# This file is part of Supermicro IPMI certificate updater.
# Supermicro IPMI certificate updater is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@mithro
mithro / reencode.py
Created September 19, 2023 05:36
Use gstreamer to decode and then re-encode a file with the same format
#!/usr/bin/env python3
# flake8: noqa
import pathlib
import sys
import traceback
import gi
gi.require_version('Gst', '1.0')
@mithro
mithro / xcnwvc.va
Created August 24, 2022 16:27
VerilogA model for varactor on SkyWater 130nm (SKY130)
// VerilogA model for varactor
`include "discipline.h"
`include "constants.h"
module xcnwvc_va(poly, nwell, sub);
inout nwell;
electrical nwell;
inout poly;
electrical poly;
inout sub;
electrical sub;
@mithro
mithro / gist:d6069c51a0dc6733f06a2bf2b4a014e8
Last active November 11, 2021 19:24
a2p_cmod7_uarts_simple.py
#!/usr/bin/env python3
# A2P Test - just rom,ram,extra uart
# python3 a2p_cmod7_uarts_simple.py --csr-csv csr.csv --no-compile-software --build
#
import os
import argparse
from migen import *
@mithro
mithro / gist:a9b871d22ee4ad11ac1a51c3ce59b50a
Created August 8, 2020 23:21
All cdb files in skywater-src-nda
./iops8a/20110902r/iops8a/opus/iops8a_dv/advancedSeal/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/advSeal_6um/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/anchor/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/antenna_diode/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFL1sd2/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFL1sdf/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFL1sd/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFL1sq/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFL1/symbolic/layout.cdb
./iops8a/20110902r/iops8a/opus/iops8a_dv/DFM1sd2/symbolic/layout.cdb
@mithro
mithro / gist:a0d9413ea020f4157a39b7f1b529629a
Created October 2, 2019 03:53
Windows Instructions for Conda
Install conda selecting
start /wait "" Miniconda4-latest-Windows-x86_64.exe /InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S /D conda
conda init

for g in $(grep needs-triage 00boilerplate.gcc | grep -v cross | awk -F: '{print $1;}' | awk -F_ '{print $2;}' | grep 'gcc-[0-9]' | sort -u) ; do echo '#' $g ; umt search $g | grep main ; echo ; done 

gcc-3.3

  • `jessie: 1:3.3.6ds1-27.2, Pocket: release, Component: main
  • stretch: 1:3.3.6ds1-28, Pocket: release, Component: main