Skip to content

Instantly share code, notes, and snippets.

View devxan's full-sized avatar
:bowtie:
xan.lol

Xan devxan

:bowtie:
xan.lol
View GitHub Profile
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active March 8, 2025 05:47
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
"""
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it.
You may need to install matplotlib first:
pip install -U matplotlib
thrown together by rebane2001
@ThioJoe
ThioJoe / Icon-Source-Finder.ps1
Last active September 14, 2024 21:53
PowerShell script that finds the icon source for a given file, including system files.
# This PowerShell script finds the icon source for a given file.
# It first tries to extract the icon from the associated executable,
# and if not found, it looks up the icon in the Windows Registry.
# Author: ThioJoe / GitHub.com/ThioJoe
param(
[string]$initialFilePath # Initial file path parameter for direct execution
)
# Function to prompt the user for a file path.
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active April 30, 2025 03:01
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active April 14, 2025 18:16
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description We have moved to Codeberg! Follow the link below:
* @source https://codeberg.org/AllPurposeMat/Disblock-Origin
*/
#app-mount::before {
content: "The Disblock Origin theme has moved to Codeberg! Please check https://codeberg.org/AllPurposeMat/Disblock-Origin";
@devxan
devxan / Free Nitro.md
Last active September 10, 2021 02:14

Free Nitro?!

For education purposes only. All code credit to @retronbv, I just decided to make this gist along with instructions because I wanted to share it with more people and I also thought you might like it. 😄 Click here to view the original console version. This also might be against the Discord TOS, so use at your own risk! ⚠️

Instructions

Select all the code of a version of the bookmarklet and drag that text into your bookmarks bar. Rename it if you would like. In the future you can open up a random website, click this, wait for the nitro to load, and if you didn't receive Nitro then click the bookmarklet again. To open up a new tab of possible Discord Nitro every time you click it, hold the Ctrl key as you press your mouse onto the bookmarklet. This will work even on chromium-based new tab pages! (Clicking the bookmarklet without holding the Ctrl key will not work on chromium-based new

@retronbv
retronbv / How-to-change-tag-without-nitro.md
Last active October 4, 2022 15:11
How to change your discord tag without nitro!

How to change your discriminator without discord nitro :O

Find a server with Dyno bot in it

Find the bots channel (if it has one)

Do ?discrim

picture

@MeguminSama
MeguminSama / Discord Experiments.js
Last active April 29, 2025 08:31
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";
@devxan
devxan / Scratch-Stats-Link.user.js
Last active June 8, 2021 02:57
Originally from https://github.com/Hans5958/userscripts/blob/master/Scratch/Shorter%20Scratch%20Stats%20Links.user.js. Made better by me. Now with working (hopefully? It doesn't seem too. Userscript developers, please help!) update link and a better name! Make sure to follow me on Scratch if you like it: https://scratch.mit.edu/users/-Xanimation-/
// ==UserScript==
// @name Don't Load Project
// @description Do not load project when reading comments
// @author apple502j
// @match https://scratch.mit.edu/projects/*
// ==/UserScript==
// Credit to Florrie
const destroyGUI = () => {
const oldMap = Array.prototype.map;
@BoomerScratch
BoomerScratch / _scratch-view-stepping.user.js
Last active July 7, 2020 22:20
View stepping in Scratch editor
// ==UserScript==
// @name Scratch - view stepping
// @namespace none
// @version 1.1
// @description Allows you to see which block currently executes in the Scratch editor (scratch.mit.edu), which is useful for debugging.
// @author BoomerScratch
// @match https://scratch.mit.edu/projects/*
// @grant none
// @run-at document-start
// @homepageURL https://gist.github.com/BoomerScratch/0592337050810244236d69a4267b3913