Skip to content

Instantly share code, notes, and snippets.

View Davr1's full-sized avatar

Davri Davr1

  • 15:57 (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 December 4, 2025 18:41
Discord error codes

Error Codes

All collected Discord error codes, categorized by type. See on Userdoccers.

Unknown Entity

Code Message
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
@XYZenix
XYZenix / experiments.csv
Last active December 6, 2025 03:09
discord experiments
id name hash type
recommend_mobile_notice RECOMMEND_MOBILE_NOTICE 1486371970 user
friend_suggestions_new_user FRIEND_SUGGESTIONS_NEW_USER 363329543 user
friend_suggestions_old_user FRIEND_SUGGESTIONS_OLD_USER 2977431864 user
download_mobile_apps_notice_early DOWNLOAD_MOBILE_APPS_NOTICE_EARLY 4114369261 user
download_mobile_apps_notice_medium DOWNLOAD_MOBILE_APPS_NOTICE_MEDIUM 856100386 user
download_mobile_apps_notice_late DOWNLOAD_MOBILE_APPS_NOTICE_LATE 943913767 user
invite_new_invite INVITE_NEW_INVITE 2363164837 user
survey_video_chat SURVEY_VIDEO_CHAT 3678716185 user
search_experiment_dm DM 1770646087 user
/*
* Global Media Controls Panel
* Written by Tam710562
*/
(() => {
'use strict';
const gnoh = {
i18n: {
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 July 18, 2025 05:34
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 11, 2025 16:28
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