Skip to content

Instantly share code, notes, and snippets.

View Wolfkid200444's full-sized avatar
😀
:trollface:

Wolfie Wolfkid200444

😀
:trollface:
View GitHub Profile
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,

⚠️ This is not the documentation for ImageScript. You can find the ImageScript documentation here.


Image Tags

The following commands / statements are valid:

load <url> <imageName> - Loads the given URL and saves it as imageName

// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@DuckMasterAl
DuckMasterAl / Privacy Policies.md
Last active December 22, 2021 21:32
Valid Discord Privacy Policies
@m-Phoenix852
m-Phoenix852 / index.user.js
Last active June 13, 2024 17:16
Userscript to login to discord accounts with ease, just do SHIFT + T at the login page and enter the token!
// ==UserScript==
// @name Discord Token Login
// @namespace https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/
// @version 1.1
// @description Taking over discord's tokens!
// @author Phoenix852
// @match *://discord.com/login
// @updateURL https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/raw/6d1ee63df17685e4ea06018bd8b47541d4261b82/index.user.js
// @grant none
// @iconURL https://i.imgur.com/rI8GsTz.png
@intrnl
intrnl / handler.js
Last active December 14, 2020 19:31
Discord slash commands example on Cloudflare Workers
import * as ed from './noble-ed25519';
let encoder = new TextEncoder();
let commands = new Map();
export function define (name, handler) {
commands.set(name, handler);
}
@Captain8771
Captain8771 / slashcommand.md
Last active August 22, 2022 17:49
Powercord snippet for adding and removing built in slash commands

Snippet

let { getModule, messages: { receiveMessage } } = require("powercord/webpack")
let { createBotMessage } = getModule(["createBotMessage"], false)


function CreateCommand(name, description, options, callback, applicationId="-1") {
    getModule(["getBuiltInCommands"], false).BUILT_IN_COMMANDS.push({
        applicationId: applicationId,