Skip to content

Instantly share code, notes, and snippets.

View Davr1's full-sized avatar

Davri Davr1

  • 02:40 (UTC +01:00)
View GitHub Profile
@bignutty
bignutty / index.html
Last active June 8, 2024 11:49
discord activity that gets your ip address example
<!DOCTYPE html>
<html>
<head>
<title>activister</title>
<link rel="shortcut icon" type="image/x-icon" href="https://bignutty.gitlab.io/webstorage0/assets/93e392f98df122bc1c65801ddfd49472.ico">
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
</head>
<body>
<style>*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}*>p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}*>img{width:100%;max-width:100%;pointer-events: none;}@media (prefers-color-scheme:dark){html{background-color:#131418;color:#dfdfdf}a{color:#fff}a:visited{color:#cc85e6}ins{color:#999}}</style>
<style>p>img{border-radius:24px;}.links{display:flex;justify-content:space-between;}.link{display:flex;gap:5px}.link img{width:1.5em}</style>
@Dziurwa14
Dziurwa14 / codes.md
Last active November 9, 2024 18:36
Discord error codes

Error Codes

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

Unknown API object

Code Message
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
@XYZenix
XYZenix / experiments.csv
Last active November 17, 2024 00:08
discord experiments
id name hash type
channel_categories Channel Categories 2070146447
recommend_mobile_notice RECOMMEND_MOBILE_NOTICE 1486371970
report-experiment Report Experiment 2207596622 user
survey_video_chat SURVEY_VIDEO_CHAT 3678716185
nitro 4263776855
nitro_internal 1242680313
search_experiment_dm 1770646087
search_experiment_new_user_2 2277703917
search_experiment_dm_canary 612745901
/*
* 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 November 4, 2024 14:23
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 October 21, 2024 16:56
Two images in one using the PNG gamma header trick.
#!/bin/sh
# PNG Gamma trick (by @marcan42 / [email protected])
#
# 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
@miquels
miquels / object-fit-css.md
Last active June 19, 2024 20:28
object-fit equivalents in pure css

object-fit equivalents in pure css

HTML

<div class="container">
  <img src="http://thetvdb.com/banners/fanart/original/78804-61.jpg">
</div>

Object-fit:contain