Skip to content

Instantly share code, notes, and snippets.

View Rajdave69's full-sized avatar
💖
rajdave on discord

Raj Dave Rajdave69

💖
rajdave on discord
View GitHub Profile
@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