Skip to content

Instantly share code, notes, and snippets.

View duplexsystem's full-sized avatar
🏳️‍🌈
Gay

Zoë duplexsystem

🏳️‍🌈
Gay
View GitHub Profile
@duplexsystem
duplexsystem / verify.rs
Created December 30, 2022 19:46
incomplete code to verify a zlib and gzip header
pub fn from_header(header: &[u8]) -> Option<CompressionType> {}
pub fn valid_zlib_header(header: &[u8]) -> Option<bool> {
if header.len() < 3 {
return None;
}
let compression_type = header[0] & 0b00001111;
if compression_type != 8 {
return Some(false);
}
//minecraft:the_void
minecraft:
colors:
fog: 0xc0d8ff
water: 0x3f76e4
water-fog: 0x50533
sky: 0x7ba4ff
climate:
##_##_#####__########___####_____####___####################___####______#########__####___####_##_###########################################
#
#
#
###/_#
######/#_#\##
#____
##/#_#\##################/#_#\##

Keybase proof

I hereby claim:

  • I am budgidiere on github.
  • I am budgidiere (https://keybase.io/budgidiere) on keybase.
  • I have a public key whose fingerprint is 81C2 E27E 5318 766C 2A9F 630B 327C DA12 D284 8B1B

To claim this, I am signing this object: