Skip to content

Instantly share code, notes, and snippets.

View adryd325's full-sized avatar

adryd adryd325

View GitHub Profile
#!/usr/bin/env python3
# Download your data dump and place this file in the "messages" folder of your data dump.
# Run it using python
from datetime import datetime, timedelta, timezone
import dateutil.parser
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import matplotlib.dates as mdates
import csv
// ==UserScript==
// @name Experiments
// @namespace Violentmonkey Scripts
// @version 0.1
// @description Experiements
// @author adryd
// @match https://discord.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com
// @grant none
// @run-at document-start
// ==UserScript==
// @name Feature Switches
// @namespace Violentmonkey Scripts
// @version 0.1
// @description Feature Switches
// @author adryd
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// @run-at document-start
/* Role color adjustmets for visibility
* In theory this should make all role colors visible on both light and dark mode
* Feel free to adjust the values until you get something you like
* - adryd */
.theme-dark {
--brightness: 1.35;
--contrast: 0.5;
--saturation: 1;
}
From 480c931d0d4f34ed9077189aa0252a7ab8284519 Mon Sep 17 00:00:00 2001
From: adryd <me@adryd.com>
Date: Fri, 21 Oct 2022 22:34:12 -0400
Subject: [PATCH] Add MicroInfo
---
build.properties | 3 +
.../fi/dy/masa/minihud/config/InfoToggle.java | 3 +
.../dy/masa/minihud/event/RenderHandler.java | 77 ++++++++++++++++++-
3 files changed, 82 insertions(+), 1 deletion(-)
@adryd325
adryd325 / discord-download-standalone.sh
Last active December 10, 2023 03:43
discord download/updater script
#!/usr/bin/env bash
##
## A standalone and less opinionated version of the local user Discord installer from gitlab.com/adryd325/dotfiles
## Tested on Arch Linux, will most likely work on anything else that can run Discord.
##
tempDir=$(mktemp -d)
DOWNLOAD_ENDPOINT='https://discord.com/api/download'
DOWNLOAD_OPTIONS='?platform=linux&format=tar.gz'
@adryd325
adryd325 / twitter-embeds-sunset.md
Last active March 28, 2022 07:17
Sunsetting Twitter Video Embeds

Beginning May 1st, 2022 Discord will be requiring bots in over 100 servers to be approved to read message contents. This is a separate application process to bot verification. The Video Embeds bot works by scanning messages for URLs that match Twitter, Reddit or TikTok and if they have an attached video, will attempt to create an embed for it. This means reading message contents critical for the bot to function. Discord has declined my application requesting access to read message content. This means after April 30th, 2022 the bot will stop functioning and will be taken offline.

For those looking for alternatives are free to self-host their own instance of the bot or may use TwitFix (fxtwitter). In the meantime, Twitter Video Embeds will remain online but unmaintained, and you’re still free to add the bot to your server until then.

Thank you for using this bot, it really helped

@adryd325
adryd325 / discord-voice.lsrules
Last active April 28, 2023 19:01
Little Snitch rules for Discord voice servers
{
"name": "Discord RTC Regions",
"description": "allowlist for all Discord voice regions",
"rules": [
{
"action": "allow",
"process": "/Applications/Discord.app/Contents/MacOS/Discord",
"remote-addresses": "5.200.3.71,5.200.3.100,5.200.3.119,5.200.6.179,5.200.14.132,5.200.14.138,5.200.14.172,5.200.14.186,5.200.14.196,5.200.14.231,5.200.14.243,31.204.133.6,31.204.133.9,31.204.133.14,31.204.133.16,31.204.133.22,31.204.133.27,31.204.133.30,31.204.133.31,31.204.133.37,31.204.133.43,31.204.133.44,31.204.133.48,31.204.133.49,31.204.133.52,31.204.133.58,31.204.133.74,31.204.133.76,31.204.133.80,31.204.133.81,31.204.133.82,31.204.133.87,31.204.133.95,31.204.133.97,31.204.133.101,31.204.133.102,31.204.133.103,31.204.133.104,31.204.133.105,31.204.134.11,31.204.134.16,31.204.134.19,31.204.134.26,31.204.134.28,31.204.134.30,31.204.134.32,31.204.134.34,31.204.134.36,31.204.134.40,31.204.134.50,31.204.134.54,31.204.134.58,31.204.134.61,31.204.134.63,31.204.134.64,31.204.134.69,31.204.134.72,31.2
@adryd325
adryd325 / shutupbbcolab.user.js
Created September 23, 2021 23:45
shut up bbcolab
// ==UserScript==
// @name stfu bbcolab
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Stupid hacky way to disable the bbcolab chat sound
// @author adryd <me@adryd.com>
// @match https://ca.bbcollab.com/collab/ui
// @icon https://ca.bbcollab.com/favicon.ico
// @grant none
// ==/UserScript==
<!-- Heavily borrowed from https://tiff.herokuapp.com/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Font Diff</title>
</head>
<body>