Skip to content

Instantly share code, notes, and snippets.

View aksh1618's full-sized avatar

Aakarshit Uppal aksh1618

View GitHub Profile
@aksh1618
aksh1618 / tools.md
Last active June 9, 2021 12:01
Tools
@aksh1618
aksh1618 / contribute-to.md
Last active May 9, 2021 12:26
Projects to contribute to
@aksh1618
aksh1618 / spring-reactive-talks-notes.md
Last active January 24, 2022 11:27
Spring Reactive Talks + Notes
@aksh1618
aksh1618 / JsonContentCachingRequestWrapper.java
Created December 28, 2021 09:27
A variation of ContentCachingRequestWrapper for JSON POST data instead of FORM POST data
/*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
  • Reactive Streams Spec: The purpose of Reactive Streams is to provide a standard for asynchronous stream processing with non-blocking backpressure.
    • Publisher:
      void subscribe(Subscriber<? super T> s)
    • Subscriber:
      void onSubscribe(Subscription s);
      void onNext(T t);

void onError(Throwable t);

@aksh1618
aksh1618 / badram_to_memmap.rs
Last active December 10, 2023 12:31
Convert BadRAM to memmap
// Rust playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7c51f91cfddb501bd24fdaa6d7238d80
const PAGESIZE: u64 = 4096;
const MIN_SIZE_KIB: u64 = 4;
fn main() {
println!("Enter BadRAM string. It must be a single line of comma separated");
println!("values, with address and mask alternating. This is basically the");
println!("badram output from memtest86+ et al with all values in a single");
println!("line without the `badram=` prefix.");