Skip to content

Instantly share code, notes, and snippets.

View 1nF0rmed's full-sized avatar
🏠
Working from home

Pradyumna Rahul 1nF0rmed

🏠
Working from home
  • Bangalore
View GitHub Profile
@1nF0rmed
1nF0rmed / 100k_main.cu
Created July 1, 2025 16:52
100k x 100k matrix mat mul
// build with: nvcc -O3 -std=c++17 -lcublas -arch=sm_75 100k_main.cu
// note: uses ~3GB VRAM. Took 20 min on 1080
#include <cstdio>
#include <cstdlib>
#include <cublas_v2.h>
#include <cuda_runtime.h>
using ll = long long;
constexpr ll N = 100'000LL;
constexpr int BS = 16384;
@1nF0rmed
1nF0rmed / ferrocene-learning.xml
Created October 28, 2024 05:38
ferrocene: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for Ferrocene Contribution</title>
<description>Comprehensive learning hierarchy for understanding and contributing to Ferrocene, a safety-critical Rust toolchain</description>
<target_audience>Beginners in Safety-Critical Systems and Rust</target_audience>
</metadata>
<learning_path>
<phase order="1" name="safety_critical_fundamentals">
@1nF0rmed
1nF0rmed / release-plz-learning.xml
Created October 28, 2024 05:36
release-plz: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for Release-plz Contribution</title>
<description>Comprehensive learning hierarchy for contributing to Release-plz, an automated Rust package release tool</description>
<target_audience>Beginners in Release Management and Rust</target_audience>
</metadata>
<learning_path>
<phase order="1" name="version_control_fundamentals">
@1nF0rmed
1nF0rmed / postcard-learning.xml
Created October 28, 2024 05:34
postcard: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for Postcard Contribution</title>
<description>Comprehensive learning hierarchy for contributing to Postcard, a no_std serialization library</description>
<target_audience>Beginners in Embedded Systems and Rust</target_audience>
</metadata>
<learning_path>
<phase order="1" name="embedded_systems_fundamentals">
@1nF0rmed
1nF0rmed / sysinfo-learning.xml
Created October 28, 2024 05:31
sysinfo: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for Sysinfo Contribution</title>
<description>Comprehensive learning hierarchy for contributing to sysinfo, a cross-platform system information library</description>
<target_audience>Beginners in Systems Programming and Rust</target_audience>
</metadata>
<learning_path>
<phase order="1" name="operating_system_fundamentals">
@1nF0rmed
1nF0rmed / inferno-learning.xml
Created October 28, 2024 05:29
inferno: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for Inferno Contribution</title>
<description>Comprehensive learning hierarchy for contributing to Inferno, a Rust-based flamegraph generation toolkit</description>
<target_audience>Beginners in Performance Analysis and Rust</target_audience>
</metadata>
<learning_path>
<phase order="1" name="performance_analysis_fundamentals">
@1nF0rmed
1nF0rmed / egui-learning.xml
Created October 28, 2024 05:26
egui: needed basics
<?xml version="1.0" encoding="UTF-8"?>
<learning_hierarchy>
<metadata>
<title>Learning Path for egui Contribution</title>
<description>Comprehensive learning hierarchy for contributing to egui, starting from computer science fundamentals</description>
<target_audience>Beginners in Rust and Computer Science</target_audience>
</metadata>
<learning_path>
<phase order="1" name="computer_science_fundamentals">
@1nF0rmed
1nF0rmed / inferno.xml
Last active October 27, 2024 18:16
Concepts needed to learn to contribute to inferno
<topics>
<topic name="Performance Analysis">
<subtopic name="CPU Profiling">
<tag>Stack Traces</tag>
<tag>Call Graphs</tag>
<tag>Sampling Methods</tag>
<deep>
<item>CPU Time Measurement</item>
<item>Context Switching</item>
<item>Interrupt Handling</item>
@1nF0rmed
1nF0rmed / lightsaber_old.py
Created August 10, 2024 14:32
Some lightsaber stuff
import time
import board
import random
import neopixel
import digitalio
from adafruit_debouncer import Button
pixel_pin = board.D1
num_pixels = 144
import pandas as pd
import numpy as np
"""
Method generates n random UNIX timestamps
Parameters:
- start : The start date
- end : The end date
- n : The number of random timestamps