This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import matplotlib.pyplot as plt | |
import mplcyberpunk | |
from datetime import datetime, timedelta | |
import pytz | |
# Define the function to create a dictionary of dates | |
def create_date_dict(starting_epoch, ending_epoch, timezone='Asia/Qatar'): | |
tz = pytz.timezone(timezone) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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) |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.VfPpkd-r7nwK { | |
color: #fff; | |
color: var(--mdc-theme-surface,#fff) | |
} | |
.VfPpkd-r7nwK { | |
background-color: #6200ee; | |
background-color: var(--mdc-theme-primary,#6200ee) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 | |