Skip to content

Instantly share code, notes, and snippets.

bootrec /fixmbr
bootrec /fixboot
bootrec /nt60 sys
bootrec /fixboot
bootrec /rebuildbcd
chkdsk C: /f /r
dir C:\Windows
dir D:\Windows
strings -e l /mnt/windows/Windows/System32/config/SOFTWARE | grep -E "ProductName|CurrentBuild|DisplayVersion" -A 1 | head -n 20
• ProductName. Will explicitly say Windows 7... or Windows 10... (Note: Microsoft kept the registry ProductName as "Windows 10" even on Windows 11 systems, so check the build number below).
• CurrentBuild.
• 7600 or 7601 = Windows 7
• 10240 to 19045 = Windows 10
• 22000 or higher (e.g., 22621, 22631, 26100) = Windows 11
package devices category interfaces default_i2c_addr notes
ads1x15 ADS1015;ADS1115 ADC I2C 0x48 12-bit / 16-bit ADC
adxl345 ADXL345 Accelerometer I2C;SPI 0x53 (example) 3-axis accelerometer
aht20 AHT20 Temperature;Humidity I2C 0x38 Environmental sensor
aip31068 AIP31068 Character Display I2C HD44780-compatible I2C LCD driver
am2320 AM2320 Temperature;Humidity I2C 0x5c Temperature and humidity sensor
as7262 AS7262 Spectral Sensor I2C 0x49 6-channel visible spectral sensor
bh1750 BH1750 Ambient Light I2C 0x23 (alt 0x5c) Ambient light sensor
bmxx80 BMP180;BMP280;BME280 Environmental Sensor I2C;SPI 0x76;0x77 Temperature/pressure (+humidity on BME280)
Chip Category Description
74HC595 IO expander 8-bit serial-in parallel-out (SIPO) shift register over SPI (Nexperia / NXP).
ADS1015 ADC/DAC 12-bit 4-channel I²C ADC with programmable gain and differential inputs (Texas Instruments).
ADS1115 ADC/DAC 16-bit 4-channel I²C ADC with programmable gain and differential inputs (Texas Instruments).
ADXL345 Accelerometer 3-axis MEMS accelerometer over I²C or SPI (Analog Devices).
AHT20 Environmental sensor Digital temperature and humidity sensor over I²C (Aosong / ASAIR).
AIP31068 Display driver HD44780-compatible I²C character LCD driver IC.
AM2302 Humidity sensor Digital temperature and humidity sensor over GPIO (Aosong; equivalent to DHT22).
AM2320 Environmental sensor Digital temperature and humidity sensor over I²C (Aosong).
APA102 LED driver Addressable RGB LED strip driver over SPI with 5-bit global and 8-bit channel PWM.
package devices category interfaces default_i2c_addr notes
ads1x15 ADS1015;ADS1115 ADC I2C 0x48 12-bit / 16-bit ADC
adxl345 ADXL345 Accelerometer I2C;SPI 0x53 (example) 3-axis accelerometer
aht20 AHT20 Temperature;Humidity I2C 0x38 Environmental sensor
aip31068 AIP31068 Character Display I2C HD44780-compatible I2C LCD driver
am2320 AM2320 Temperature;Humidity I2C 0x5c Temperature and humidity sensor
apa102 APA102 LED Strip SPI Addressable RGB LED strip
as7262 AS7262 Spectral Sensor I2C 0x49 6-channel visible spectral sensor
bh1750 BH1750 Ambient Light I2C 0x23 (alt 0x5c) Ambient light sensor
bitbang Bitbang I2C;Bitbang SPI Bus / Protocol GPIO Software I2C and SPI over GPIO pins
@raspberrypisig
raspberrypisig / readme.txt
Created October 12, 2026 21:37 — forked from Whiten-oss/readme.txt
Skipping Stones to Lonely Homes (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html

The code implements a piecewise mathematical generation algorithm that reconstructs the retro landscape geometry from the DOS game Bang! Bang! [2.1]. It relies on a deterministic custom Pseudo-Random Number Generator (PRNG) called a Linear Congruential Generator (LCG) to ensure that entering the exact same seed integer always yields identical environmental geometry [2.1].

1. Initial Boundary Constraints

The landscape maps out across 512 total horizontal coordinate steps (TERRAIN_W = 0x200) relative to a fixed floor baseline (HORIZON_Y = 390) [2.1].

  • The Left Mesa (CE): The algorithm picks an edge coordinate from 78 to 193 [2.1]. Everything from index 0 up to CE is locked at a flat height defined by mesa[0] [2.1].
  • The Right Mesa (DA): The algorithm picks a starting index from 318 to 433 [2.1]. Everything from index DA to 512 is locked flat at a height defined by mesa[1] [2.1].

2. Choosing the Mountain Peak

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>BANGBANG hill.c logic tester</title>
<style>
:root { color-scheme: dark; }
body {
margin: 0; padding: 24px;
font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace;
domain platform
binary_sensor as3935
binary_sensor cap1188
binary_sensor dfrobot_sen0395
binary_sensor gpio
binary_sensor hlw8012
binary_sensor hm3301
binary_sensor ld2410
binary_sensor mpr121
binary_sensor pcf8574
Peripheral Function Supported Chips
UART Serial interface All RISC-V (C2, C3, C5, C6, C61, H2, P4, S3)
SPI Serial bus All RISC-V (C2, C3, C5, C6, C61, H2, P4, S3)
I2C Multi-drop bus All RISC-V (C2, C3, C5, C6, C61, H2, P4, S3)
I2S Digital audio C3, C5, C6, C61, H2, P4, S3
USB Serial/JTAG Native debug/log C3, C5, C6, C61, H2, P4, S3
USB OTG HS 480 Mbps host/dev P4
SDIO Host/Slave High-speed SD cards P4
MIPI-CSI Camera interface P4
MIPI-DSI Display interface P4