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
def mergesort(array: list): | |
""" | |
Sorts an array in ascending order using the merge sort algorithm. | |
The array is recursively split into two halves until each half contains a single element. | |
Then, these halves are merged back together in sorted order using the `merge` function. | |
Parameters | |
---------- | |
array : list |
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 random | |
import sys | |
from typing import List, Dict, Union | |
class InsufficientFunds(Exception): | |
pass | |
class Options: |
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 ThePirateBay-Block-Redirect | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description If The Pirate Bay is blocked in your country, launch a croxyproxy instance and bypass it! | |
// @author Auax | |
// @match https://thepiratebay.org/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=thepiratebay.org | |
// @grant GM_xmlhttpRequest | |
// ==/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
import re | |
import string | |
import random | |
import requests | |
def username_gen(length=24, chars=string.ascii_letters + string.digits): | |
return ''.join(random.choice(chars) for _ in range(length)) | |
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 pymem | |
import pymem.process | |
PROC_NAME = "BloonsTD6.exe" | |
MOD_NAME = "GameAssembly.dll" | |
BASE_OFFSET = 0x02AE9538 | |
CASH_OFFSET = [0x1D8, 0x2B8, 0x18, 0x30, 0x10, 0x20] | |
def read_offsets(pm_instance, base, offsets): |
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
""" | |
Generate icons for a Tauri Application | |
---------------------- | |
By Ibai Farina | |
For correct functionality, the base logo should be 512x512 or larger (keeping the aspect ratio). | |
""" | |
__title__ = 'Tauri Icon Generator' | |
__author__ = 'Ibai Farina' | |
__license__ = 'MIT' |
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 asyncio | |
import json | |
import time | |
from pystyle import Colors, Colorate | |
from typing import Dict, Any, List, Tuple | |
from aiohttp import ClientSession | |
from yarl import URL | |
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
/* Weird code to access the iframe and its variables as this code | |
is intended to run in the 'javascript:' context in the search bar. | |
Used in Chromebook with both dev console and extensions blocked :) */ | |
function run_() { | |
/* Get iframe's document and window (to access the variables of its context) */ | |
const iframe_ = document.getElementById("class_iframe"); | |
const iWindow = iframe_.contentWindow; | |
const iDocument = iWindow.document; | |
/* Get all correction buttons */ | |
let els = iDocument.querySelectorAll(".js-correct, .js-save"); |
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 socket | |
import sys | |
import threading | |
import colorama | |
import tqdm | |
open_ports = [] | |
ip = "192.168.1.1" # Type here the IP you want to scan. I will use 192.168.1.1 as an example | |
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 getpass | |
import logging | |
import os | |
import platform | |
import sys | |
from os.path import join | |
import requests.exceptions | |
from discord_webhook import DiscordWebhook | |
from passax.chrome import browsers |
NewerOlder