Skip to content

Instantly share code, notes, and snippets.

View aksh1618's full-sized avatar

Aakarshit Uppal aksh1618

View GitHub Profile
@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.");
  • 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 / 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
@aksh1618
aksh1618 / spring-reactive-talks-notes.md
Last active January 24, 2022 11:27
Spring Reactive Talks + Notes
@aksh1618
aksh1618 / contribute-to.md
Last active May 9, 2021 12:26
Projects to contribute to
@aksh1618
aksh1618 / tools.md
Last active June 9, 2021 12:01
Tools
@aksh1618
aksh1618 / flac2mp3.sh
Created October 19, 2020 05:21
Script to use ffmpeg with libmp3lame for VBR encoding of tree of FLACs to tree of mp3s
#!/bin/sh
# Based on https://github.com/patrodyne/patrodyne-scripts/tree/master/flac2mp3
# Modified by aksh1618
# PatroDyne: Patron Supported Dynamic Executables, http://patrodyne.org
# MIT license: https://raw.githubusercontent.com/patrodyne/patrodyne-scripts/master/LICENSE
#
# flac2mp3.sh - Linux script to convert FLAC audio files to MP3 files.
#
# Usage:
#
@aksh1618
aksh1618 / Kotlin 1.4 Online Event Summary
Last active July 24, 2021 12:36
Kotlin 1.4 Online Event Summary
Day-wise summaries of talks of the Kotlin 1.4 Online Event
@aksh1618
aksh1618 / 💻 My Code::Stats XP (Top Languages)
Last active December 13, 2024 09:06
💻 My Code::Stats XP (Top Languages)
Total XP :::::::::::::::::::::: lvl 37 (2,214,936 XP)
Java :::::::::::::::::::::::::: lvl 25 (1,048,850 XP)
Markdown :::::::::::::::::::::: lvl 13 ( 270,735 XP)
Kotlin :::::::::::::::::::::::: lvl 11 ( 195,152 XP)
Rust :::::::::::::::::::::::::: lvl 7 ( 100,443 XP)
YAML :::::::::::::::::::::::::: lvl 7 ( 99,371 XP)
XML ::::::::::::::::::::::::::: lvl 7 ( 97,114 XP)
Python :::::::::::::::::::::::: lvl 7 ( 94,022 XP)
Plain text :::::::::::::::::::: lvl 6 ( 62,419 XP)
Git Commit Message :::::::::::: lvl 5 ( 48,337 XP)
@aksh1618
aksh1618 / 📊 My movie + shows statistics
Last active April 5, 2022 00:41
📊 My movie + shows statistics
I've watched 455 movies and 2728 episodes of 102 shows.
My favorite 3 genres are:
drama ███▌░░░░░░░░░░░░░░░░░ 17.2%
comedy ██▍░░░░░░░░░░░░░░░░░░ 11.9%
action ██▎░░░░░░░░░░░░░░░░░░ 11.0%