Skip to content

Instantly share code, notes, and snippets.

View Davr1's full-sized avatar

Davri Davr1

  • 07:20 (UTC +02:00)
View GitHub Profile
@Dziurwa14
Dziurwa14 / codes.md
Last active June 1, 2024 14:09
Discord error codes

Error Codes

All collected Discord error codes, categorized by type (first 2 digits).

Miscellaneous

Code Message
0 General error (such as a malformed request body, amongst other things)

Unknown API object

@XYZenix
XYZenix / experiments.csv
Last active May 31, 2024 06:41
discord experiments
id name hash type
channel_categories 2070146447
recommend_mobile_notice RECOMMEND_MOBILE_NOTICE 1486371970
report-experiment Report Experiment 2207596622 user
survey_video_chat SURVEY_VIDEO_CHAT 3678716185
search_experiment_dm 1770646087
search_experiment_dm_canary 612745901
search_experiment_guild 2512661867
search_experiment_guild_2 2937879064
search_experiment_guild_canary 3007049259
/*
* Global Media Controls Panel
* Written by Tam710562
*/
(function () {
'use strict';
const gnoh = {
i18n: {
@D-Brox
D-Brox / classfinder2.py
Last active February 13, 2024 17:18 — forked from Davr1/classfinder.py
import json
import re
from operator import itemgetter
import requests
from itertools import combinations
def best_similarity(master, candidates):
counts = [0] * len(candidates)
for candidate_index, candidate in enumerate(candidates):
for item in candidate:
@MeguminSama
MeguminSama / Discord Experiments.js
Last active May 29, 2024 16:14
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@marcan
marcan / gamma_trick.sh
Last active December 10, 2023 22:06
Two images in one using the PNG gamma header trick.
#!/bin/sh
# PNG Gamma trick (by @marcan42 / marcan@marcan.st)
#
# This script implements an improved version of the gamma trick used to make
# thumbnail images on reddit/4chan look different from the full-size image.
#
# Sample output (SFW; images by @Miluda):
# https://mrcn.st/t/homura_gamma_trick.png
# https://www.reddit.com/r/test/comments/6edthw/ (click for fullsize)
# https://twitter.com/marcan42/status/869855956842143744