Skip to content

Instantly share code, notes, and snippets.

View suobset's full-sized avatar
🕶️
showtime.

Kush Srivastava suobset

🕶️
showtime.
View GitHub Profile
@suobset
suobset / festive.s
Last active December 25, 2025 17:25
A Merry Christmas Greeting, in ARM64 (AArch64) Asm
; festive.s - Christmas tree in memory dump
; Assemble: as -o festive.o festive.s
; Link: ld -o festive festive.o -l System -syslibroot `xcrun -sdk macosx --show-sdk-path` -e _main
;
; Created by Kush S.
;
; Read more: https://skushagra.com/posts/2025-12-25-aarch64-christmas/
;
; === BASIC WORKFLOW (tree in memory dump) ===
; lldb festive
@suobset
suobset / pdf_merger.py
Created December 23, 2025 22:30
pdf_merger.py - Recursively merge PDFs, images (PNG/JPG), and DOCX files into organized output PDFs with auto-generated cover pages, section dividers, and document dividers. Features chronological sorting by filename dates, gitignore-style exclusion files, and flexible output modes (one PDF per subdirectory or single flat merge). Great for organ…
#!/usr/bin/env python3
"""
pdf_merger - Recursively merge PDFs in a directory with cover pages and dividers.
================================================================================
REQUIREMENTS
================================================================================
Python packages:
pip install pypdf reportlab pillow
@suobset
suobset / plotStat.py
Last active December 23, 2025 22:31
SaberStat: Interim Data Analysis | Read more on https://skushagra.com
#!/usr/bin/env python3
"""
Lightsaber Hit Detection - Data Visualization & Analysis
Run: python lightsaber_viz.py
Dependencies: pip install pandas numpy matplotlib scipy
"""
import pandas as pd
import numpy as np
@suobset
suobset / .vimrc
Created October 14, 2025 03:12
2025 | Personal .vimrc
" ~/.vimrc or ~/.config/nvim/init.vim
" -----------------------------
" General Editing Preferences
" -----------------------------
" Use spaces instead of tabs
set expandtab
" Each tab = 2 spaces
@suobset
suobset / TeXtemplate.tex
Last active November 2, 2021 20:58
Standard LaTeX Homework Template
%%%%%%%%%%%%%%%%%%%%%%%%
% DO NOT CHANGE HERE
% Replace cute-kitten.jpg with image of choice (ignore compilation errors)
%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[letter]{amsart}
\renewcommand{\thesubsection}{\Alph{subsection}}
\def\doubleunderline#1{\underline{\underline{#1}}}
\newcommand\tab[1][1cm]{\hspace*{#1}}
\usepackage{titlesec}
\usepackage{textcomp}