struct nonce_seeds_header {
uint32_t blob_version;
uint8_t pad[6];
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 | |
| import sys | |
| import requests | |
| from datetime import datetime, timezone | |
| # Ok I'll be honest ChatGPT wrote the vast majority of this | |
| # Use at your own risk | |
| def get_latest_version_before_date(package_name, cutoff_date): |
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
| struct libshortcutsign_header_info { | |
| char *header; | |
| int keyCount; | |
| uint32_t fieldKeys[30]; | |
| uint32_t fieldKeyPositions[30]; | |
| uint32_t currentPos; | |
| }; | |
| uint32_t get_aa_header_field_key(struct libshortcutsign_header_info info, uint32_t i) { | |
| if (i >= info.keyCount) { |
This has been reverse engineered from the toolchain only and has not been tested on hardware.
The c.lbu, c.lhu, c.sb, and c.sh opcodes replace some standard opcodes (that the QingKe cores do not implement, as the replaced opcodes require the D extension), and they also appear to be compatible with "Huawei" extensions mentioned here.
The c.lbusp, c.lhusp, c.sbsp, and c.shsp opcodes exist in a "reserved" opcode block.
001 uimm[0] uimm[4:3] rs1` uimm[2:1] rd` 00 c.lbu (replacing c.fld)
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
| password12345678 |
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
| { | |
| description = "Minimal NixOS installation media"; | |
| inputs.nixos.url = "nixpkgs/nixos-23.11"; | |
| outputs = { self, nixos }: { | |
| nixosConfigurations = { | |
| exampleIso = nixos.lib.nixosSystem { | |
| system = "x86_64-linux"; | |
| modules = [ | |
| "${nixos}/nixos/modules/installer/cd-dvd/installation-cd-graphical-plasma5.nix" | |
| ({ |
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
| from scapy.all import sniff, sendp | |
| from socket import * | |
| import time | |
| # Replace with your PS4/5's MAC address. | |
| dst_mac=b'\xaa\xbb\xcc\xdd\xee\xff' | |
| # Replacing source MAC address is not mandatory | |
| src_mac= b'\xab\xcd\xef\xab\xcd\xef' | |
| # Replace this with your computer's ethernet interface name | |
| iface_name = 'Ethernet' |
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 <stdint.h> | |
| #include <string.h> | |
| #include "CH579SFR.h" | |
| void write_str(const char *s) { | |
| for (uint32_t i = 0; i < strlen(s); i++) { | |
| while (!(R8_UART1_LSR & RB_LSR_TX_FIFO_EMP)) {} | |
| R8_UART1_THR = s[i]; | |
| } |
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
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
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/zsh | |
| #ugly script bu works. Most of the time. You might need to rerun to get all pages. | |
| #need to open the pages before we can do --print-to-pdf or --dump-dom as otherwise it doesn't load them | |
| #doing PDFs as raw htmls look really ugly | |
| /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --incognito https://developer.apple.com/documentation/technotes/ | |
| sleep 10 | |
| /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless=new --incognito --dump-dom https://developer.apple.com/documentation/technotes/ > technotes.html | |
| cat technotes.html | grep -Eo "href=\"/documentation/technotes/tn[a-zA-Z0-9/-]*\"" | cut -d "\"" -f 2 | cut -d "/" -f 4 | sort -u > urls.txt |