Skip to content

Instantly share code, notes, and snippets.

@logich
logich / matrix-ble.py
Created April 8, 2025 16:22
display sprite images from BLE upload
# SPDX-FileCopyrightText: Logan Browne and Amazon Nova
#
# SPDX-License-Identifier: Unlicense
import board
import busio
from digitalio import DigitalInOut
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
@logich
logich / mac-outlook-mbox.md
Created March 18, 2025 14:07
mbox email export from outlook on mac

Exporting from Outlook on Mac

Searching the web for solutions on how to export messages and folders from outlook on the mac, I found a ton of useless articles about olm files and windows articles about psts.

The easy answer was the most macintosh of answers: Drag the item to the desktop.

This creates a very familiar file, but one that is not so easy to deal with in most gui applications, an old style mbox.

This is a single massive file rather than a folder structure, but it's cross platform and usable with unix mail utilities.

@logich
logich / sd-video-dock
Last active April 15, 2024 22:09
steamdeck video output from a dock
the steam deck dock support 4k60 video output over HDMI with the right cable.
we need hdmi 1.4b support on the cable to get this and we need the right connection through usbc.
https://www.hdmi.org/spec/typec
The best bet is to get a usb cable that supports usb 3.2 gen 2 and a HDMI cable supporting 4k60 or more.
valve reccomends "DP 1.4 and HDMI 2.0+ compliant cables for highest compatibility"
https://help.steampowered.com/en/faqs/view/4C18-08B5-DEC9-3AF4#:~:text=We%20recommend%20DP%201.4
@logich
logich / zfs-mirror-new-disks.md
Last active February 22, 2024 19:56
migrating to larger disks with a zfs mirror

This was confusing and I had to do a lot of searching to find the right terms.

My process was:

  1. break the mirror (zpool split pool pool2) to keep a backup offline.
  2. look up the wwn number to sata port in /dev/disk/by-id
  3. power down the system and unplug the pool disk to keep
  4. plug in the two new disks and join them to the mirror (zpool attach pool wwn-existing-member wwn-new-disk)
  5. wait 18-24 hours for resilvering to complete

references

@logich
logich / elite800g4twr-amt.md
Last active February 22, 2024 19:44
Setting up AMT for remote access on an HP Elitedesk 800 G4 Tower

the issue

This is a cool little compact tower that has a few drive bays (2xLFF 3.5, 1xSFF 2.5, 1X5.25) and comes at a decent price used in 2024. I picked one up because it's much lower power than my ancient z800 and has support for intel based hardware transcoding with plex and jellyfin.

It comes with the intel desktop set of management tools using ME and AMT and vPRO, rather than an IPMI. I want the system to run headless and would rather not move it to hook up a monitor and keyboard.

Intel has stopped supporting meshcommander and I don't have a big enough lab to run a dedicated server for it anyhow.

I wanted a cheap and dirty remote access that would let me get into uefi and troubleshoot OS issues.

@logich
logich / sd_buttons.md
Last active February 24, 2023 19:03
location of steamdeck button images

The steamdeck displays buttons based on the steamui in the tenfoot interface. This means that the button images used are on the filesystem.

On the Mac, the files are in /Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/controller_base/images/api/

On the steamdeck the files are in the user home directory in /home/deck/.steam/steam/controller_base/images/api

Under the API directory there are several folders {dark, knockout, light} that contain image files.

I am guessing that the knockout files are used for the steamdeck buttons, as those look the most similar.

@logich
logich / optimising-unifi-performance.md
Last active January 21, 2022 10:28 — forked from mikestecker/optimising-unifi-performance.md
optimising-unifi-performance

optimising-unifi-performance

Below are the key settings that I have applied to my local unifi install. I forked this Gist after having success with these settings.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.

  • Ensure Automatically Optimise Network and WiFi performance is disabled
    These settings will do a better job.

@logich
logich / octopi-multicam-rpicam-usb-systemd.txt
Last active April 8, 2021 21:01
octopi multicam support with raspicam, usbcam, and systemd
roughly based on data from teaching tech tutorial at https://www.youtube.com/watch?v=pcFBsciSdEw
cd /boot/
sudo cp octopi.txt octopi-cam2.txt
cd /root/bin/
sudo cp webcamd webcamd2
modify the octopi.txt to default to raspicam by specifying camera="raspi"
modify the http option:
camera_http_options="-p 8080"
@logich
logich / gist:890076ed5b410d4100735ad6ccbdf8ee
Created February 17, 2021 18:26
ender 3 pro bed level gcode for cura
; Ender 3 Custom Start G-code
M117 Getting the bed up to temp!
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M117 Pre-heating the extruder!
M104 S160; start warming extruder to 160
G28 ; Home all axes
M117 Auto bed-level GO!
G29 ; Auto bed-level (BL-Touch)
M500 ; Store the mesh
@logich
logich / e3p-blt-z-offset.txt
Last active February 9, 2021 22:50
setting up bltouch z offset with SKR Mini e3 2.0 on ender3pro with existing z-switch
All the videos that I found were about older boards or using the model where the bltouch replaces the z-end stop switch instead of augmenting it. I wanted to keep it as an extra failsafe so that I was not reliant on the soft switch to prevent a head crash.
Wire Bltouch to Probe port
Leave z end switch connected
Load firmware-bltouch.bin from https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3/tree/master/firmware/V2.0
note that the zhoming firmware only works if you replace the z end switch with the bltouch, so we won't use that.
Z-Offset Instructions: