system_profiler SPUSBDataTypeThe XIAO ESP32-C3 shows up as a CP2102N USB to UART Bridge Controller (Silicon Labs) when using an older unit, or as a native USB-Serial/JTAG device on newer units.
| # Auto resume claude | |
| # -- Claude Code: auto-resume sessions -- | |
| autoload -Uz add-zsh-hook | |
| _claude_session_check() { | |
| if [[ -f .claude_session ]]; then | |
| echo "💡 Saved Claude Code session found. Run 'claude' to resume." | |
| fi | |
| } |
| var on = false; | |
| const blinkInterval = setInterval(function() { | |
| on = !on; | |
| LED1.write(on); | |
| }, 500); | |
| var WIFI_NAME = "Test"; | |
| var WIFI_OPTIONS = { password : "xxxx" }; | |
| var wifi = require("Wifi"); |
| #!/usr/bin/env node | |
| import { SerialPort } from 'serialport'; | |
| import { setTimeout as sleep } from 'timers/promises'; | |
| import { parseArgs } from 'util'; | |
| // --- SHDLC protocol --------------------------------------------------------- | |
| const SHDLC_DELIM = 0x7e; | |
| const STUFF = { 0x7e: [0x7d, 0x5e], 0x7d: [0x7d, 0x5d], 0x11: [0x7d, 0x31], 0x13: [0x7d, 0x33] }; |
| #!/bin/bash | |
| # ZFS Performance Tuning - Non-persistent (apply after each reboot) | |
| # Auto-detects pools, datasets, and disks | |
| set -e | |
| echo "=== ZFS Performance Tuning ===" | |
| # --- ARC: set to ~200GB (adjust if your servers have less RAM) --- | |
| ARC_MAX=214748364800 |
| import lib from "xrpl-accountlib"; | |
| import { XrplClient } from 'xrpl-client' | |
| const vanityAccount = "rrrrrrrr"; | |
| const signWithRegularKeySecret = "ssssss"; // or use secret numbers and change the derive fn below | |
| const tx = { | |
| TransactionType: "Payment", | |
| Account: vanityAccount, | |
| Fee: "12", |
| [validator_list_sites] | |
| https://vl.ripple.com | |
| https://unl.xrplf.org | |
| [validator_list_keys] | |
| # Ripple | |
| ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734 | |
| # XRPLF | |
| ED42AEC58B701EEBB77356FFFEC26F83C1F0407263530F068C7C73D392C7E06FD1 |
| # NOTE!! DO THIS ONE BY ONE, IT FAILS IF TWO NODES TRY TO JOIN AT THE SAME TIME! | |
| # export LANG=en_US.UTF-8 | |
| # export LC_ALL=en_US.UTF-8 | |
| #pvecm expected 1 | |
| # Clear join (back to standalone) | |
| systemctl stop pve-cluster corosync |
| // Eg run @ https://www.programiz.com/java-programming/online-compiler/ | |
| // data: 48 65 6C 6C 6F 20 57 6F 72 6C 64 | |
| // CRC-16: 52 7B | |
| class Main { | |
| public static byte[] calculateCRC16(byte[] bytes) { | |
| byte chBlock; | |
| int wCRC = 0x6363; | |
| int i = 0; |
| #!/bin/bash | |
| PORT=12345 | |
| RESULTS_DIR="udp_receiver_results_$(date +%Y%m%d_%H%M%S)" | |
| mkdir -p "$RESULTS_DIR" | |
| echo "Starting UDP fragmentation test - Receiver" | |
| echo "----------------------------------------" | |
| echo "Port: $PORT" | |
| echo "Results directory: $RESULTS_DIR" |