* Dont expect anything here to be up-to-date
Heres a list of useful enums in the discord client's source files:
ActionTypes
ActivityFlags
ActivityGamePlatforms
ActivityPartyApplicationNames
APLPHABETS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_' | |
def id_to_code(id: int) -> str: | |
code = '' | |
while id > 0: | |
remainder = id % 64 | |
id = int((id - remainder) / 64) | |
code = APLPHABETS[remainder] + code |
#!/usr/bin/env bash | |
## Deletes ~/.cargo cached data older than 2 weeks or `OFFLOAD_THRESHOLD`-days | |
# Based off of: | |
# https://gist.github.com/alexheretic/661cb78b49ca280c629c64be0fabf8d2 | |
# Changes: added brainrot_location & threshold variable | |
# I reccomend pairing this with cargo-sweep https://github.com/holmgr/cargo-sweep | |
set -eu |