Skip to content

Instantly share code, notes, and snippets.

View Rajdave69's full-sized avatar

Raj Dave Rajdave69

View GitHub Profile
@Rajdave69
Rajdave69 / nodia-question-order-fixer.py
Created January 23, 2026 15:10
This script reorders the questions from NODIA's chapterwise PYQs
"""
This script works with chapterwise PYQs from NODIA (mcqgpt.com) or whatever their other domains are.
The questions in within each of the chapters are ordered randomly, perhaps intentionally, with the intention to drive up paperback book sales.
Either ways, to use this script:
- pip install PyMuPDF pdfplumber
- Separate a chapter and name it something.pdf (remove all non-question pages)
- run the script
# This script copies the metadata of a specified image to all other imges (.TIF, JPG) within the current directory
# Define the input file (use absolute path)
$InputFile = ""
# Ensure exiftool exists
if (-not (Get-Command exiftool -ErrorAction SilentlyContinue)) {
Write-Error "ExifTool not found. Please install it first."
exit
}
! This Ublock Origin filter removes all ADs and popups from teachoo.com
! To use,
! Install the Ublock Origin Extension
! Paste the below lines at
! chrome-extension://kccohkcpppjjkkjppopfnflnebibpida/dashboard.html#1p-filters.html
teachoo.com##.modal.show#adblockModal
teachoo.com##body:style(overflow: auto !important)
@Rajdave69
Rajdave69 / doubtnut-ublockorigin-filter.txt
Created July 17, 2025 17:42
UBlock Origin filter to remove DoubtNut x Allen Promotional trailer
! Whenever you go to doubtnut and try to play the solution video
! An annoying high volume "DOUBTNUT, NOW WITH ALLEN!" video plays
! This Ublock Origin filter gets rid of it
! To use,
! Install the Ublock Origin Extension
! Paste the below line at
! chrome-extension://kccohkcpppjjkkjppopfnflnebibpida/dashboard.html#1p-filters.html
||videos.doubtnut.com/answer-1732785385.mp4$media
#
# This code downloads attachments from a specific user in discord data packages
#
#
import os, requests, csv
# for folder in current directory
for folderName, subfolders, filenames in os.walk('A:\Discord Packages\user-folder'):
print('The current folder is ' + folderName)
@Rajdave69
Rajdave69 / GCR.css
Created August 11, 2023 09:49
Google Classroom CSS
This file has been truncated, but you can view the full file.
.VfPpkd-r7nwK {
color: #fff;
color: var(--mdc-theme-surface,#fff)
}
.VfPpkd-r7nwK {
background-color: #6200ee;
background-color: var(--mdc-theme-primary,#6200ee)
}
@Rajdave69
Rajdave69 / sftp-server-backup.sh
Created June 25, 2023 06:18
This is a simple script that can backup a directory of a server to another server with SFTP.
#!/bin/sh
# Put FTP server details here
SERVER="" # server ip/fdqn
USERNAME=""
PASSWORD=""
# local directory containing source backup files
SOURCEFILES="/var/lib/pterodactyl/volumes/"
# temporary tar.gz file path
@Rajdave69
Rajdave69 / your-youre-corrector.py
Last active March 26, 2023 11:36
This simple python code checks if your/you're is used in its correct form.
# This function checks if your/you're is used correctly in a sentence.
from gingerit.gingerit import GingerIt
parser = GingerIt()
def check_your_youre(text) -> str or None:
result = parser.parse(text)
@Rajdave69
Rajdave69 / bot.py
Last active January 8, 2023 14:10
Single file Python Discord Bot template
import discord
from discord.ext import commands
# This is defining the actual bot
client = commands.Bot(intents=discord.Intents.all(), command_prefix='!')
# Event listeners are defined with the @client.event decorator
@client.event
async def on_ready():
@Rajdave69
Rajdave69 / cloudflare-ddns.py
Last active October 8, 2022 14:12
A simple DDNS (Dynamic DNS) Script for Cloudflare.
"""
This is a public script made by RajDave69 on GitHub
This script implements DDNS (Dynamic DNS) for users using CloudFlare.
It's super easy to configure and deploy too! Just run it as a daemon.
"""
from cloudflare_ddns import CloudFlare
import time