Skip to content

Instantly share code, notes, and snippets.

View Bugaddr's full-sized avatar

Pranay Pawar Bugaddr

View GitHub Profile
@Bugaddr
Bugaddr / circular_convolution.m
Created November 21, 2025 08:51
Matlab code to generate circular convolution
clc;
clear;
close all;
%% 1. Define Input Sequences (From your specific problem)
x = [1, 0, 1, 0]; % Outer Circle Sequence
h = [1, 2, 3, 4]; % Inner Circle Sequence
% Determine N
N = max(length(x), length(h));
@Bugaddr
Bugaddr / subscribe_yt.py
Last active October 15, 2025 11:57
Python script to subscribe automatically to youtube channels using selenium
# Example channels.txt
#https://www.youtube.com/channel/UCzml9bXoEM0itbcE96CB03w DroneBot Workshop
#https://www.youtube.com/channel/UCzWQYUVCpZqtN93H8RR44Qw Seeker
#https://www.youtube.com/channel/UCyPYQTT20IgzVw92LDvtClw Squat University
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@Bugaddr
Bugaddr / gentoo_installation_guide.md
Last active October 14, 2025 22:30
Guide to install gentoo linux inside qemu

Gentoo Installation Guide with UKI

This guide provides a step-by-step process for installing Gentoo Linux using a modern systemd profile and a Unified Kernel Image (UKI) with systemd-boot.

1. Initial Setup & Partitioning

# Unmount all partitions if mounted, suppressing errors
umount /dev/vda1 2>/dev/null
umount /dev/vda2 2>/dev/null
@Bugaddr
Bugaddr / dit_fft_butterfly_diagram.m
Last active October 14, 2025 12:50
MATLAB Code for computing DFT using DIT-FFT with Butterfly Diagram
clc;
clear;
close all;
% Given sequence
X = [1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, -1, 0];
N = length(X); % Length of sequence (must be power of 2)
% Bit-reversal permutation
bit_rev_order = bitrevorder(0:N-1) + 1;
@Bugaddr
Bugaddr / daily_whatis.sh
Last active October 14, 2025 12:50
Shell script for printing whatis for executables in /usr/bin folder randomly, just to make you curious and maybe you will find some new command :)
#!/usr/bin/env bash
# File to store previously printed commands
printed_commands_file=~/.local/share/daily-whatis/databases/printed_commands_db.txt
# Check if the file exists, if not create it
if [ ! -f "$printed_commands_file" ]; then
mkdir -p "$(dirname "$printed_commands_file")" # Ensure directory exists
touch "$printed_commands_file" # Create the file
fi