Skip to content

Instantly share code, notes, and snippets.

View flandolf's full-sized avatar
😇
trying to fix code

andy flandolf

😇
trying to fix code
View GitHub Profile
@flandolf
flandolf / backup.py
Created April 12, 2024 11:29
device backup
import subprocess
# Blue foreground
print("\033[34m")
print("Partition backup script for Android devices - by @flandolf")
print("Must have ADB installed, rooted device and USB debugging enabled")
print("This script will backup all partitions except userdata")
input("Backup folder will be created in the same directory as this script. Press Enter to continue...")

Keybase proof

I hereby claim:

  • I am dumpydev on github.
  • I am flandolf (https://keybase.io/flandolf) on keybase.
  • I have a public key ASCRwSjQ4ASAiMKHXoIXHxiwRDjSjggTUd_1kOpGIITx3wo

To claim this, I am signing this object:

@flandolf
flandolf / mt.py
Created September 20, 2022 02:31
monkeytype cheat (300+ wpm - adjustable)
# requires pytesseract for OCR
# requires keyboard
import os
from time import sleep
from PIL import Image
import pytesseract
import keyboard
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
flist = []
os.scandir('.')
@flandolf
flandolf / autosort.js
Created August 7, 2022 09:56
autosort.js
(()=>{var e={1121:(e,a,t)=>{t(3899);const r=t(8422);const i=t(4190);function get(e,a={},i=false){return new Promise((function(o,n){var s=t(743);var c={url:e,method:"GET",headers:a,gzip:true};if(i){r.info("Requesting: "+e);r.info("Headers: "+JSON.stringify(a))}s(c,(function(e,a,t){if(!e&&a.statusCode==200){o(t)}else{n(e)}}))}))}function post(e,a={},i="",o=false){i=i.toString();return new Promise((function(n,s){var c=t(743);if(o){r.info("Posting: "+e);r.info("Headers: "+JSON.stringify(a));r.info("Body: "+JSON.stringify(i))}c.post({url:e,headers:a,body:i},(function(e,a,t){if(!e&&a.statusCode==200){n(t)}else{s(e)}}))}))}function pi(e){let a=1n;let t=3n*BigInt(e)**10020n;let r=t;while(t>0){t=t*a/((a+1n)*4n);r+=t/(a+2n);a+=2n}var i=r/10n**20n;i=i.toString();i=i.substring(0,e);return i}function typew(e,a=1){var t=0;var r=setInterval((function(){process.stdout.write(e[t]);t++;if(t>=e.length){clearInterval(r)}}),a)}e.exports={get:get,post:post,pi:pi,typew:typew,logger:r,time:i}},8422:(e,a,t)=>{const r=t(4890);class lo
@flandolf
flandolf / fakeminerv2.py
Created May 22, 2022 10:43
Better Version of *fakeminer* - requires pyfiglet and progressbar2
from colorama import *
from pyfiglet import Figlet
import time
import progressbar
import random
def shufflechar(string):
string = list(string)
random.shuffle(string)
return ''.join(string)
@flandolf
flandolf / idealfraction.py
Created May 12, 2022 09:46
ideal fraction calculator.
# ideal fractions are when 2 pairs of fractions. When they are added they are the same as when they are multiplied
# how to make one you have to make the denominators equal the numerator
# eg 16/7 and 16/9 are ideal as 7 + 9 = 16 (numerator)
from colorama import *
import time
init()
print(Fore.GREEN + "Welcome to the ideal fraction calculator / by Dumpy")
print(Fore.CYAN + "\033[1mhttps://gist.github.com/dumpydev\033[0m\n")
print(Fore.RED, end="")
print('Initialising...')
const fs = require("fs");
var i = 0;
var goto = 10000 + 1;
//see if primes.txt exists if it does, delete it
if (fs.existsSync("primes.txt")) {
fs.unlinkSync("primes.txt");
}
//same for notprimes.txt
if (fs.existsSync("notprimes.txt")) {
fs.unlinkSync("notprimes.txt");
@flandolf
flandolf / fakeminer.js
Last active June 3, 2022 07:29
btc miner scam
/*
* requires colors. npm i colors
* exposing stupid tiktok scammers smh
*/
var colors = require('colors');
// modify chance of getting a hit (fake)
var freq = 0.0001;
//name of miner
var name = "dumpyminer"
//amount of decimal places to round up to