Skip to content

Instantly share code, notes, and snippets.

View ahujaesh's full-sized avatar
💻
Probably coding

Eshaan Ahuja ahujaesh

💻
Probably coding
View GitHub Profile
@kldzj
kldzj / README.md
Last active September 5, 2025 16:11
Bambu Lab P1 Webcam Upgrade - Automated Setup Script

Bambu P1 Series Webcam Upgrade - Automated Setup Script

This guide contains the command to automatically set up the mediamtx streaming server on your Raspberry Pi for the webcam upgrade project.

Prerequisites

Before you run this command, please ensure:

  1. You have successfully flashed your SD card with Raspberry Pi OS.
  2. You are currently connected to your Raspberry Pi via an SSH terminal.
@qingy1337
qingy1337 / desmos_media_player.py
Last active October 31, 2025 19:09
MP3/Wav to Desmos converter
# --- Configuration ---
AUDIO_FILE = 'Your MP3 File.mp3' # <<< CHANGE THIS TO YOUR AUDIO FILE (can be .wav or .mp3)
TARGET_SR = 12000 # Target sample rate, best to choose from [8000, 11025, 16000, 22050] (lower = less data, 16k is probably the best for its size, but still can reach the 5MB graph size limit, you can use 10000 or 9000 too.)
N_PARTIALS = 30 # Sine waves per frame (higher = more detail, more accurate, a bit more noisy)
GAIN_DIGITS=3 # Number of decimal places for gain values (higher = more precise, but bigger graph size)
N_FFT = 1024 # FFT window size (advanced, don't change unless you know what you're doing) Default: 1024
HOP_LENGTH = 256 # Samples between frames (also advanced)
MAX_LIST_SIZE = 9999 # Max items per list (DO NOT CHANGE)
GAIN_SCALING_POWER = 1.0 # Compress gain dynamics (0.5 is sqrt) (turn up to 0.7-1.0 if the resulting graph is not clear)
@PhilippGrulich
PhilippGrulich / Display commit timestamp at github as javascript bookmark
Last active April 15, 2025 09:58
This simple js bookmark let you display the correct commit timestamp at github
javascript:(function() {
var relativeTimeElements = window.document.querySelectorAll("relative-time");
relativeTimeElements.forEach(function(timeElement){
timeElement.innerHTML = timeElement.innerHTML +" -- "+ timeElement.title;
})
}())