Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / fastnote.py
Created June 4, 2025 11:01
parse backup file mobile app: net.fast_notepad_notes_app.fastnotepad
#!/usr/bin/python
# @github.com/motebaya - 6/4/2025
import json, re, datetime
FILE = "fastnote123.txt"
x = open(FILE).read()
t = re.findall(r'(?<=;)(\d{10,19})(?=;;)', x)
open("fastnote.json","w").write(
json.dumps([{
@motebaya
motebaya / tokped_report.py
Last active May 31, 2025 06:34
request a personal data download through your account setting...usually it’s quick, takes less than a day, and you’ll get a pdf report.
#!/usr/bin/python3
# d: 28/05/2025 12:44:41
# you need this dawg: https://pypi.org/project/PyMuPDF/
import re
from datetime import datetime
PDF = "download.pdf"
PWS = "password123"
@motebaya
motebaya / yolo_img_crop.py
Last active April 7, 2025 07:01
crop images from all results face detection from: https://github.com/zymk9/yolov5_anime
#!/usr/bin/python
# crop image area with cv2
# @github.com/motebaya - 7/10/2024
import cv2
import os
import logging
logging.basicConfig(level=logging.INFO)
from argparse import ArgumentParser, RawTextHelpFormatter
from colorama.ansi import Fore
#!/usr/bin/node
/**
* @github.com/motebaya
* 2024-02-16 03:28:08.599531900 +0700
*/
import sharp from "sharp";
async function mergePanel(imageslist, output) {
return new Promise(async (resolve) => {
try {
#!/usr/bin/python
# 2/24/2025 - @github.com/motebaya
from PIL import Image
from io import StringIO
import pilgram
import os
ext_list = list(Image.registered_extensions().keys())
list_filters = [
-- https://github.com/yasugami/yasugami.github.io
-- 23/03/2025 - @github.com/motebaya
if arg[1] then
local code = assert(io.open(arg[1])):read("*a")
local f = io.open('.tmp.lua', "w")
if f then
local modcode = code:gsub('_ENV%[%"\\108\\111\\97\\100%"%]', "print"):gsub('%(%)', '')
f:write(modcode)
f:close()
end
@motebaya
motebaya / formatter.php
Created January 21, 2025 15:24
php-parser 4.x to format/beautify php code without any installed composer.
<?php
/**
* no need composer
* @github.com/motebaya - 2025-01-19 19:36:32.659806400 +0700
* @reff: https://github.com/pk-fr/yakpro-po/blob/master/include/classes/parser_extensions/my_autoloader.php
*/
namespace PhpParser;
@motebaya
motebaya / be_productive.py
Last active January 22, 2025 07:09
nee nee, my graden is gray de karappo njir...
#!/usr/bin/env python3
# do you wanna be a productive human?
# sugar grass with shining sunrise in your garden?
# @github.com/motebaya - 2024-06-16 23:16:23.729592300 +0700
import calendar, subprocess, time, random, sys, string
from datetime import datetime
from concurrent.futures import ThreadPoolExecutor, as_completed
import threading
@motebaya
motebaya / module_updater.py
Created January 8, 2025 01:57
simple way for check or update python library to latest version based pypi.org api
#!/usr/bin/env python3
# 10.10.2024 - python module version check
# © @github.com/motebaya
from typing import Any, Dict
import importlib.metadata
import requests, subprocess, sys
class ModuleManager:
@motebaya
motebaya / batch_decompile.py
Last active March 29, 2025 02:05
python ghidra scripts for batch decompiling
from ghidra.app.decompiler import DecompInterface
from ghidra.util.task import ConsoleTaskMonitor
import os
output_folder = "E:/reversing/output" # set output decompiled
if not os.path.exists(output_folder):
os.makedirs(output_folder)
decomp_interface = DecompInterface()
decomp_interface.openProgram(currentProgram)