Skip to content

Instantly share code, notes, and snippets.

View devxan's full-sized avatar
👋
xan.lol

Xan devxan

👋
xan.lol
View GitHub Profile
@ThioJoe
ThioJoe / Icon-Source-Finder.ps1
Created January 7, 2024 19:58
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 July 9, 2024 17:13
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

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@TheSunCat
TheSunCat / DisblockOrigin.theme.css
Last active July 15, 2024 20:24
Hide all Nitro & Boost upsells in Discord!
/**
* @name Adblock for Discord
* @author TheSunCat and contributors
* @version 1.0.0
* @description Hide all Nitro & Boost upsells on Discord!
* @source https://gist.github.com/TheSunCat/58fedaa19d6154ef3e4b2b676c286906
*/
/* ------------------ */
/* Hide Nitro upsells */
@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 July 15, 2024 21:37
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
@osipxd
osipxd / !paper-versions.md
Last active July 12, 2024 22:01
Paper versions links