Skip to content

Instantly share code, notes, and snippets.

View Suzhou65's full-sized avatar
πŸ’­
I hate my job

Suzhou65

πŸ’­
I hate my job
View GitHub Profile
@ParkWardRR
ParkWardRR / mfi-dual-connector-hypothesis.md
Created May 7, 2026 14:41
MFi Auth Hypothesis: Dual 30-Pin Passthrough for Digital USB Audio

Teuta DT-1 β€” MFi Auth Hypothesis: Dual 30-Pin Passthrough for Digital USB Audio

Project Summary

Teuta DT-1 is an open-hardware iPod digital transport. Goal: extract Red Book digital audio (16-bit/44.1kHz PCM) from an iPod Classic via its 30-pin male dock port, route it through a hi-fi DAC (DACBerry ONE+ β€” WM8804 + PCM5142), output analog.

  • MCU: STM32F405RGT6 (WeAct Core Board)
  • Audio path: iPod β†’ USB UAC1 (pins 15/16) β†’ STM32 β†’ IΒ²S DMA β†’ DACBerry ONE+ β†’ analog out
  • Control path: iAP over USB HID + serial UART fallback (pins 12/13)
  • Power: USB-C PD via RotoPD (AP33772S)
@rrottmann
rrottmann / dist-upgrade-buster-to-bookworm.sh
Last active June 8, 2026 15:46
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade --without-new-pkgs
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/bullseye-security bullseye-security/updates main
deb-src http://security.debian.org/bullseye-security bullseye-security/updates main
@carry0987
carry0987 / RPi3-TCP-BBR.md
Last active May 14, 2025 14:41
Raspberry Pi 3B+ Using BBR Congestion Control

Raspberry Pi 3B+ Using BBR Congestion Control

Check Kernel

uname -r

The kernel version should >= 4.9.4, if isn't, please follow the script below to update kernel:

Update Kernel

  1. sudo rpi-update
  2. sudo reboot
@magnetikonline
magnetikonline / README.md
Last active February 10, 2026 01:21
PowerShell execute command (.exe) with arguments safely (e.g. with spaces).

PowerShell execute command with arguments safely

In my opinion this is the best way for executing external commands from PowerShell with arguments in a safe manner - via the use of an array to hold the arguments.

Consider this one a PowerShell gem to keep in the toolbox.

Note

The example below makes use of EchoArgs.exe - a small utility that simply echoes back arguments passed to it. Utility is part of the PowerShell Community Extensions, or the exe alone can be downloaded at https://ss64.com/ps/EchoArgs.exe.

Example

@compilerexe
compilerexe / EEPROM_24LC256.ino
Created February 7, 2016 00:48
External I2C EEPROM to Arduino (24LC256)
#include <Wire.h>
#define disk1 0x50 //Address of 24LC256 eeprom chip
void setup(void)
{
Serial.begin(9600);
Wire.begin();
unsigned int address = 0;
@tuxmartin
tuxmartin / udp_ipv6_client.py
Last active May 25, 2024 10:12
Python UDP IPv6 client & server
import socket
UDP_IP = "::1" # localhost
UDP_PORT = 5005
MESSAGE = "Hello, World!"
print "UDP target IP:", UDP_IP
print "UDP target port:", UDP_PORT
print "message:", MESSAGE