Skip to content

Instantly share code, notes, and snippets.

View prochazkaml's full-sized avatar

Michal Procházka prochazkaml

View GitHub Profile
@prochazkaml
prochazkaml / tul_isa.md
Last active November 28, 2024 20:47
TUL MTI/CIP virtual microcomputer documentation

TUL MTI/CIP virtual microcomputer documentation

The documentation given to us was (at least to me, a somewhat capable assembly developer) quite insufficient. Yes, they gave us the instruction listings, but what do the instructions actually do? What flags do they set/clear? What is the behaviour of the stack? Etc.

Table of contents

@prochazkaml
prochazkaml / opensearipper.js
Created January 14, 2024 15:46
OpenSea image ripper
/*
* A handy script to troll your crypto-obsessed friends.
*
* Just navigate to any collection on OpenSea, scroll around a bit so that
* the images are allowed to load, pull up the developer tools,
* paste this code into the console and it will generate a Bash script which will
* download all the expensive .PNGs in the highest quality available.
*
* The output filenames will be in the following format: "<name> (<price>).png"
*
@prochazkaml
prochazkaml / riffdump.c
Created March 14, 2021 15:44
Goes through the tree of a RIFF file and displays all of its chunks.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
void parse_subchunks(FILE *f, int totalsize, int level) {
char buffer[5];
uint32_t size, offset;
buffer[4] = 0;