Skip to content

Instantly share code, notes, and snippets.

@TheNoobWar
TheNoobWar / delete-reddit-history.js
Created April 11, 2023 04:03 — forked from andrhamm/delete-reddit-history.js
Delete reddit comment and post history
// Load user profile page, if using RES scroll so many comments are loaded onto the page
// then enter the following in the browser's developer console.
// it will delete 1 post/comment every 1500ms
var $domNodeToIterateOver = $('.del-button .option .yes'),
currentTime = 0,
timeInterval = 1500;
$domNodeToIterateOver.each(function() {
@TheNoobWar
TheNoobWar / delete_channels.js
Created December 4, 2019 02:18
Discord.js delete every channel in a guild
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready!');
var server = client.guilds.get('Server ID here');
for (var i = 0; i < server.channels.array().length; i++) {
server.channels.array()[i].delete();
}
console.log('Done!');
@TheNoobWar
TheNoobWar / message.js
Created December 4, 2019 02:16
Discord.js send a message in every channel of a guild ID
const Discord = require('discord.js');
const client = new Discord.Client();
client.once('ready', () => {
console.log('Ready!');
client.on("message", function(message) {
var server = client.guilds.get('Server ID here');
for (var i = 0; i < server.channels.array().length; i++) {
message.channel.send('Message you want sent here')
}
@TheNoobWar
TheNoobWar / toolbox.py
Created November 16, 2018 05:21
/r/toolbox - decode base32 and decompress zlib
import zlib
import base64
with open('input.txt','r') as input: # make a new file called input.txt with the usernotes blob (excluding the quotation marks)
compressed = input.read()
decompressed = zlib.decompress(base64.b64decode(compressed))
file = open('output.txt','wb') # decoded and decompressed output will be created as output.txt
file.write(decompressed)
@TheNoobWar
TheNoobWar / keybase.md
Created September 15, 2018 04:49
Public key to verify my identity

Keybase proof

I hereby claim:

  • I am thenoobwar on github.
  • I am thenoobwar (https://keybase.io/thenoobwar) on keybase.
  • I have a public key ASBWKL_-vV4NxHZiU2F0Vav4laSPWZrwFz-oLY06ne44jgo

To claim this, I am signing this object: