Skip to content

Instantly share code, notes, and snippets.

@axelhamil
axelhamil / rasp_pi__zero_config_from_scratch.md
Last active January 17, 2026 22:36
🚀 Raspberry Pi Zero 2 W – Headless Setup Guide (with Static IP) and Pi Hole

Raspberry Pi OS SSH Ready

A quick and clean guide to set up your Raspberry Pi Zero 2 W headlessly with Wi-Fi, SSH, and a static IP – perfect for IoT and embedded projects.


🧰 Requirements

@mfhars
mfhars / ReadSPA.py
Created March 13, 2024 09:23 — forked from ZGainsforth/ReadSPA.py
Read an SPA file from Omnic
# Created 2015, Zack Gainsforth
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import struct
from numpy.fft import fft, fftfreq
def LoadSPAInterferogram(FileName):
# Open the SPA file.

To build a project where the Raspberry Pi Zero W 2, running Ubuntu, automatically configures a host system upon USB connection using Ansible, we'll break down the project into several detailed and technical components.

Project Outline: Raspberry Pi Auto-Configurator

1. Choosing the Right Raspberry Pi Image

  • Image: Ubuntu for Raspberry Pi (likely Ubuntu Server for lightweight, headless operation).
  • Version: Choose the latest stable version compatible with Raspberry Pi Zero W 2. As of my last update, it's Ubuntu 22.04 LTS.
  • Source: Download the image from the official Ubuntu website for Raspberry Pi.
  • Flashing Tool: Use Raspberry Pi Imager or dd command in Linux to flash the SD card.
@vanbwodonk
vanbwodonk / read-stm32-firmware.md
Last active October 8, 2025 21:09
Read stm32 firmware binary with openOCD

read-stm32-firmware

OpenOCD scripts for read STM32 firmware binary

Requirements

Linux

OpenOCD (Open On-Chip Debugger) is open-source software that interfaces with a hardware debugger's JTAG port. OpenOCD provides debugging and in-system programming for embedded target devices. OpenOCD provides the ability to flash NAND and NOR FLASH memory devices that are attached to the processor on the target system. Flash programming is supported for external CFI compatible flashes (Intel and AMD/Spansion command set) and several internal flashes (LPC2000, AT91SAM7, STR7x, STR9x, LM3 and STM32x).

OpenOCD was originally developed by Dominic Rath at the University of Applied Sciences Augsburg. The OpenOCD source code is now available through the GNU General Public License (GPL).

Configuring Proxmox VE node as client for remote NUT server running on Synology NAS


  • Use Shell on Proxmox Node to install NUT Client
apt-get install nut-client
@maeneak
maeneak / docker-compose.yaml
Last active December 30, 2025 15:17
HASSIO (Home Assistant Supervised) for Synology DSM 7 (Unsupported Installation but allows updates and fully functional)
version: '3'
services:
hassio:
image: homeassistant/amd64-hassio-supervisor
container_name: hassio_supervisor
privileged: true
security_opt:
- seccomp:unconfined
- apparmor:unconfined
@bmcbm
bmcbm / setup-nvdia-suspend.sh
Last active March 9, 2026 06:59
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html
# https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
TMP_PATH=/var/tmp
TMPL_PATH=/usr/share/doc/nvidia-driver-460/
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf
@PatWalters
PatWalters / seaborn_scatterplot.ipynb
Last active January 23, 2026 10:17
A Collection of Things I Frequently Forget How To Do With Seaborn Scatterplots
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.