Skip to content

Instantly share code, notes, and snippets.

View SapphicCode's full-sized avatar
💭
My life is a whole lot.

Cassandra SapphicCode

💭
My life is a whole lot.
View GitHub Profile
@SapphicCode
SapphicCode / dedupe.py
Last active September 4, 2021 12:37
A script to ingest recurring archives from various service exports
import os
import sys
import hashlib
import json
algorithm = 'sha3_256'
file_map = {}
try:
with open(os.path.join(algorithm, 'digests.json'), 'r') as f:
file_map = json.load(f)
@SapphicCode
SapphicCode / artfixer.py
Created August 24, 2019 16:33
A simple program to walk a filesystem for cover.jpg files and attach them to .mp3 files in the same folder
#!/usr/bin/env python
import argparse
import os
from mutagen import id3
def read_file(path) -> bytes:
with open(path, 'rb') as f:
"""
Copyright (c) 2017 Pandentia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@SapphicCode
SapphicCode / discrimchanger.py
Last active August 6, 2019 19:24
A simple discrim changer for Discord
import discord
import asyncio
USERNAME = ''
PASSWORD = ''
TOKEN = ''
class Bot(discord.Client):
def __init__(self, **kwargs):