Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WhatsMiner Product Categories</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
@s0kil
s0kil / OpenAI-Platform-Invoices-Sum.md
Last active May 23, 2024 13:48
OpenAI Platform, Calculate Invoices Sum
@s0kil
s0kil / Antminer-reg-type-error.md
Last active February 22, 2024 20:02
Antminer !!! REG_TYPE = 1

Antminer !!! REG_TYPE = 1

Find The Chain

With the error of 2024-02-22 19:18:10 !!! REG_TYPE = 1. 539042562, take the last value: 539042562, do an and operation with 0xF to get the chain number the reg error is from:

python3 -c "import sys; print(int(sys.argv[1]) & 0xF)" 539042562
@s0kil
s0kil / Antminer-S19j-Pro-Pic-less-Voltage-Error.md
Last active February 19, 2024 19:19
Antminer S19j Pro Pic Less Voltage Error

Antminer S19j Pro Pic Less Voltage Error

Model

BHB42603

Logs

===========================================Miner log===========================================
1970-01-01 00:00:10 Open miner sn file /config/sn error
1970-01-01 00:00:10 Miner compile time: Mon Dec 26 17:09:26 CST 2022 type: Antminer BHB42XXX sn :
@s0kil
s0kil / 01-zynq-uart-exploit.md
Created January 6, 2024 19:17 — forked from four0four/01-zynq-uart-exploit.md
Zynq BootROM Secrets: BootROM dump exploit

Zynq BootROM Secrets: Exposing the bootROM with the UART loader

Last time I wrote about this, I lied a little - There is an interesting bug in the UART loader, and it may have been exactly why Xilinx didn't document it. In short: The UART loader writes the entire UART payload to a location in memory (nominally 0x4_0000). The ROM is architected such that when the boot mode is selected, it registers a callback that is called when the ROM wants more data from the boot device. For the UART loader, this is pretty simple - here's the whole thing:

; void uart_callback(u32 r0_offset, void* r1_dest, i32 r2_nbytes)
ROM:0000A578 PUSH            {R3,LR}
ROM:0000A57C MOV             R3, #uart_buff
ROM:0000A584 MOV             R12, #1
ROM:0000A588 LDR             R3, [R3]
@s0kil
s0kil / btc-tools.sh
Last active September 13, 2023 15:40
Chrome OS Linux BTC Tools
#!/bin/bash
xhost +si:localuser:root
DISABLE_WAYLAND=1 sudo /snap/bin/btctools
xhost -si:localuser:root
# References
# https://support.google.com/chromebook/thread/173115216/linux-terminal-unable-to-open-display-0?hl=en
@s0kil
s0kil / Cudy LT18.md
Last active September 8, 2023 01:34
Cudy LT18

Cudy LT18 4G LTE-A Pro Wi-Fi 6 Router

Default Access

http://cudy.net

192.168.10.1 admin

Default Wi-Fi

@s0kil
s0kil / scar_tissue.md
Created May 28, 2023 01:55 — forked from gtallen1187/scar_tissue.md
talk given by John Ousterhout about sustaining relationships

"Scar Tissues Make Relationships Wear Out"

04/26/2103. From a lecture by Professor John Ousterhout at Stanford, class CS142.

This is my most touchy-feely thought for the weekend. Here’s the basic idea: It’s really hard to build relationships that last for a long time. If you haven’t discovered this, you will discover this sooner or later. And it's hard both for personal relationships and for business relationships. And to me, it's pretty amazing that two people can stay married for 25 years without killing each other.

[Laughter]

> But honestly, most professional relationships don't last anywhere near that long. The best bands always seem to break up after 2 or 3 years. And business partnerships fall apart, and there's all these problems in these relationships that just don't last. So, why is that? Well, in my view, it’s relationships don't fail because there some single catastrophic event to destroy them, although often there is a single catastrophic event around the the end of the relation

@s0kil
s0kil / Volvo S60R P2 Stage Zero List.md
Last active March 11, 2023 02:02
Volvo S60R P2 Stage Zero List

Volvo S60R P2 Stage Zero List

Stage 0 means to get your Volvo’s critical systems as close to new as you can get, or alternately, to get your Volvo’s components replaced or rebuilt in the systems that can cause problems, like braking, or steering, etc. You should do these things to increase reliability, boost economy, in preparation for performance modifications, or all three. https://www.matthewsvolvosite.com/stage-0/

Wear N Tear

  • Motor Oil
  • Transmission Oil
  • Transmission Filter
  • Transmission Mounts