Skip to content

Instantly share code, notes, and snippets.

View Carcraftz's full-sized avatar

Aveek Mishra Carcraftz

View GitHub Profile
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
@Carcraftz
Carcraftz / scammer spammer
Last active March 29, 2021 03:46
scammer spammer
const axios = require("axios")
axios.get("https://randomuser.me/api/?results=1000").then(res => {
res.data.results.forEach(result => {
let username = result.login.username
let password = result.login.password
axios.post('https://aimzone.pro/auth.php', {
doAuth: 1,
login: username,
password: password
}, {
@Carcraftz
Carcraftz / mark all as read discord
Last active April 3, 2021 20:29
run in console to mark all your notifications across all your servers as read -> use in conjunction with the notification blocker script to clean up your discord mentions and notifications entirely :)
//djs v11 library bc i was too lazy to figure out how to enumerate guilds using just the api, and bc why not
!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=60)}([
//change this to "group" to close all group DMs
let channeltypetodelete = "dm"
//djs v11 library bc i was too lazy to figure out how to enumerate guilds using just the api, and bc why not
!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=funct
@Carcraftz
Carcraftz / discord notification blocker
Last active November 8, 2021 02:52
turns off notifications globally in all ur discord servers -> needed to cut back on my 2k notifications from random servers
//djs v11 library bc i was too lazy to figure out how to enumerate guilds using just the api, and bc why not
!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=60)}([fu
@Carcraftz
Carcraftz / discord.js11.5.1 webpack
Last active April 3, 2021 20:28
Now patched to work with userbots and fix stage channels crash
!function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}s.m=e,s.c=t,s.d=function(e,t,i){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=60)}([function(e,t,s){(function(e){t.Package=s(42),t.DefaultOptions={apiRequestMethod:"sequential",shardId:0,shardCou
let talksessions = [];
client.on("message", message => {
let args = message.content.split(" ");
let command = args[0];
args.shift();
//if we already logged this channel and the last talker
if (talksessions[message.channel.id]) {
if (message.author.id == talksessions[message.channel.id].lasttalker) {
talksessions[message.channel.id].talkercounter++;
console.log(
//configuration variables
let kahootusername = ""
let kahootpassword = ""
let numquestions = 15
let quizname = "Name of quiz"
//=======================================================================
const express = require("express");
const app = express();
const KahootCreator = require("kahoot-creator");
const creator = new KahootCreator();
@Carcraftz
Carcraftz / you cant do simple maths under pressure
Last active July 13, 2021 22:33
basic script for the game you cant do simple maths under pressure. it can get up to level 8. i might add support for algebra soon so it can win the game :D Yes I know you can fake the win screen but this is much cooler.
setInterval(dostuff=>{
let question = document.getElementById("question").innerHTML
let answer1 = document.getElementById("answer1").innerHTML
let answer2 = document.getElementById("answer2").innerHTML
//if it's a traditional math problem
if(!question.toLowerCase().includes("minutes")){
let actualanswer = eval(question.replaceAll("×","*").replaceAll("÷","/").replaceAll(" ",""))
clickanswer(actualanswer,answer1,answer2)
}else if (question.includes("=")){
//algebra problem!!!
@Carcraftz
Carcraftz / discordwebhook.html
Created March 30, 2019 20:46 — forked from ThePhxRises/discordwebhook.html
Sends messages using Discord webhooks. Now supports multiline messages and has a proper submit button.
<html><head>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css" rel="stylesheet">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>General Use Sender</title>
<style>
textarea{
resize: none;
}
.btn-full-width {