Skip to content

Instantly share code, notes, and snippets.

View jsoctocat's full-sized avatar

jsoctocat

  • Nevada, US
View GitHub Profile
@jsoctocat
jsoctocat / AutoClaimTwitchDrop.js
Last active June 27, 2023 07:47
Auto Claim Twitch drop
// ==UserScript==
// @name Auto Claim Twitch drop
// @version 1.00.01
// @description Auto clicking "Click to claim a drop" under the chat
// @author jsoctocat
// @match https://www.twitch.tv/*
// @run-at document-idle
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitch.tv
// @grant none
// @namespace https://greasyfork.org/en/users/751816
@jsoctocat
jsoctocat / unluac_batch.bat
Created October 9, 2019 04:10
decompile all lua files within a folder, require Java and unluac.jar (you can find unluac.jar on google)
@echo off
for /r %~d1 %%g in (*.luac) do java -jar unluac.jar "%%g" > %%~dpng.lua
pause
@jsoctocat
jsoctocat / discord_message_remover.js
Last active March 19, 2021 19:08
Delete all messages in a particular discord server
function deleteMessage() {
const author = "YOUR_ID_HERE";
const authToken = "TOKEN_HERE";
const guild = "SERVER_ID";
const channel = window.location.href.split('/').pop();
const headers = { 'Authorization': authToken, 'Content-Type': 'application/json' };
let clock = 0;
let interval = 1000;
function delay(duration) {
@jsoctocat
jsoctocat / MarksBDO.cpp
Created May 24, 2019 22:37
Market Bot for Black Desert Online
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <map>
#include <iostream>
#include <ctime>
#include <vector>
#include <fstream>
@jsoctocat
jsoctocat / attach_to_console.cpp
Created May 24, 2019 22:34
create and attach a console to a windows application for cin/cout
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
// Function prototypes.
LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam );
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int iCmdShow );
// In a C++ Windows app, the starting point is WinMain().