This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { runInNewContext } = require("vm"); | |
const Discord = require("discord.js"); | |
const chalk = require("chalk"); | |
const { inspect } = require("util"); | |
const fetch = require("node-fetch"); | |
const { colors: { default: defaultColor } } = require("../../config.json"); | |
const options = { | |
callback: false, | |
stdout: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ââââââââÄÁââââÄÁââÁâââÁâââÁâÀÀÀÀãäÁâÁâÁãÁÁâÄÀäÀãäÁÁàÁãããàâââââââààâââàÁÁàÀãàÀàâââàããããããàããããããããàÁÁâàÁââà |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2022 Benjamin Richeson | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"os/signal" | |
"reflect" | |
"sync/atomic" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
const mods = webpackChunkdiscord_app.push([ | |
[Date.now()], | |
{}, | |
e => Object.values(e.c), | |
]); | |
const provider = mods.find( | |
m => m?.exports?.Z?.getLanguages && Object.keys(m.exports.Z.Messages).length | |
).exports.Z._provider; | |
const strs = mods.find(m => m?.exports?.COMMAND_NICK_SUCCESS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Toggle Discord OAuth Scopes | |
// @version 0.2 | |
// @description Toggle Discord OAuth scopes by clicking them on the auth screen | |
// @author Ben Richeson (github.com/benricheson101) | |
// @match https://discord.com/oauth2/authorize?* | |
// @match https://*.discord.com/oauth2/authorize?* | |
// @match https://discord.com/channels/* | |
// @match https://*.discord.com/channels/* | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (c) Ben Richeson 2022 | |
# github.com/benricheson101 | |
# USAGE: | |
# python3 spotify_stats.py [year] | |
# | |
# SETUP: | |
# 1. place this file in the same directory as `endsong_N.json` files in your spotify data package | |
# 2. run the file, optionally appending a year to the end of the command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {setTimeout} from 'node:timers'; | |
const defer = <Resolve = unknown, Reject = unknown>() => { | |
let _resolve!: (arg0: Resolve | PromiseLike<Resolve>) => void; | |
let _reject!: (arg0?: Reject) => void; | |
const promise = new Promise<Resolve>((resolve, reject) => { | |
_resolve = resolve; | |
_reject = reject; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure to bind mount the docker socket so docker commands work inside the container: | |
# -v /var/run/docker.sock:/var/run/docker.sock | |
FROM docker | |
RUN apk add bash curl perl | |
COPY update_port.sh . | |
ENTRYPOINT ["/update_port.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {completeStreamQuest} = (() => { | |
let wpRequire; | |
webpackChunkdiscord_app.push([[Date.now()], {}, e => (wpRequire = e)]); | |
const mods = Object.values(wpRequire.c); | |
const {Store} = mods.find(m => m?.exports?.Store).exports; | |
const {ApplicationStreamingStore, QuestsStore, UserStore} = | |
Store.getAll().reduce((a, c) => ((a[c.getName()] = c), a), {}); | |
const {encodeStreamKey} = mods.find(m => m?.exports?.encodeStreamKey).exports; | |
const {sendHeartbeat, enrollInQuest} = mods.find( |