| Chip | Size | Method | Logic |
|---|---|---|---|
| 24X01 | 128B | 1-byte mirror at 128 | chip wraps at 128, reading there returns same 8 bytes as address 0 |
| 24X02 | 256B | ack_count=0, wrap test passes | only responds at base, burst read at 252 wraps at 256, bytes[4..7] match sig[0..3] |
| 24X04 | 512B | ack_count=1, block-1 wraps | responds at base+1, block 1 is 256B with 1-byte addr, wrap test confirms small blocks |
| 24X08 | 1KB | ack_count=3, block-1 wraps | responds at base+1..+3, same block-1 wrap logic as 24X04 |
| 24X16 | 2KB | ack_count>=7 | responds at base+1..+7, no other chip uses 8 addresses, data-independent |
| 24X32 | 4KB | 2-byte mirror at 4096 | chip wraps at 4096 in 16-bit address space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #define EEPROM_I2C_ADDRESS 0x50 | |
| // Common page sizes to test (most 24xx chips use one of these) | |
| const uint8_t possiblePageSizes[] = {8, 16, 32, 64, 128, 256}; | |
| const uint8_t NUM_PAGE_TESTS = sizeof(possiblePageSizes); | |
| void setup() { | |
| Serial.begin(9600); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #define EEPROM_I2C_ADDRESS 0x50 | |
| void setup() { | |
| Serial.begin(9600); | |
| delay(1000); | |
| // init i2c bus | |
| Wire.begin(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | |
| echo "ERROR: Script must be sourced" >&2 | |
| exit 1 | |
| fi | |
| declare -a venvs=() | |
| while IFS= read -r -d '' dir; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PERCEPTRON // CODE WALKTHROUGH</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Bebas+Neue&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --bg: #0a0a0a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * bypass scroll-based paywalls, popups, and overlays. | |
| */ | |
| (function() { | |
| 'use strict'; | |
| console.log('paywall fux0r activated.'); | |
| // ============================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while true; do netstat -s | awk '/^[[:space:]]+[0-9]+/{num=$1; $1=""; desc=$0; print num"|"desc}' > /tmp/ns_new; if [ -f /tmp/ns_old ]; then clear; echo "=== Network Stats Delta ($(date +%T)) ==="; awk -F'|' 'NR==FNR{old[$2]=$1; next} {if(old[$2] && $1-old[$2]!=0) printf " \033[92m%+8d\033[0m %s\n", $1-old[$2], $2}' /tmp/ns_old /tmp/ns_new; fi; cp -f /tmp/ns_new /tmp/ns_old 2>/dev/null; sleep 1; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from mcp.server.fastmcp import FastMCP | |
| from mcp.server.sse import sse_app # SSE transport ASGI app | |
| import uvicorn | |
| import subprocess | |
| # Create MCP server | |
| mcp = FastMCP("Pi-MCP-Server") | |
| @mcp.tool() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| function blocked_signals { | |
| # convert the hexadecimal input to a binary string, ensuring uppercase | |
| local hex_mask=$(echo "$1" | tr '[:lower:]' '[:upper:]') | |
| local binary_mask=$(echo "obase=2; ibase=16; $hex_mask" | bc) | |
| # calculate the number of bits (signals) to process, typically 64 for Linux | |
| local num_bits=64 | |
| local padded_binary=$(printf "%0${num_bits}s" $binary_mask | sed 's/ /0/g') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| enum TrafficLightState { | |
| RED, | |
| GREEN, | |
| YELLOW | |
| }; | |
| void transition(enum TrafficLightState *state) { | |
| switch (*state) { |
NewerOlder