Skip to content

Instantly share code, notes, and snippets.

@NDNnerd
NDNnerd / index.html
Created January 23, 2026 14:15
Squishy Buttons
<div class="grid w-screen min-h-screen grid-cols-2 grid-rows-2">
<!-- Component Start -->
<div class="flex items-center justify-center bg-gray-100">
<button class="flex items-center h-16 px-8 text-gray-500 transition duration-200 bg-gray-100 rounded-lg btn-light focus:outline-none">
<span>Squishy</span>
</button>
</div>
<div class="flex items-center justify-center bg-gray-800">
<button class="flex items-center h-16 px-8 text-gray-400 transition duration-200 bg-gray-800 rounded-lg btn-dark focus:outline-none">
@NDNnerd
NDNnerd / headers.py
Last active December 20, 2025 05:17
Headers
#!/usr/bin/env python3
import json
from random import choice
class Headers:
"""Class to generate headers for requests
Parameters:
os (str): The operating system to use (iphone, android, windows, mac, chromeos)
@NDNnerd
NDNnerd / getSysInfo.py
Created October 4, 2025 22:27
GetSysInfo
import shlex
import os
import subprocess
from glob import glob
from pathlib import Path
import json
from datetime import datetime
def get_system_info(header=None, outpath=None):
"""Gathers system information (OS, GPU, CPU, TPU, drivers) using bash commands."""
@NDNnerd
NDNnerd / Time.py
Last active November 28, 2024 06:09
Simply Python Time class (because who has the time to mess with times)
from datetime import datetime
import pytz
from typing import Optional, Union
import re
class Time(datetime):
"""
Extended datetime class with enhanced timezone handling.
@NDNnerd
NDNnerd / reset.css
Last active October 6, 2024 21:08
CSS Reset
@import url('https://fonts.googleapis.com/css?family=Oswald');
@import url('https://fonts.googleapis.com/css?family=Lato');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}