This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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 { |
This file contains hidden or 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
#!/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 = [ |
This file contains hidden or 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
-- 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 |
This file contains hidden or 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
<?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; |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
#!/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: | |
This file contains hidden or 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
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) |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'logger' | |
class Logging | |
def initialize(progname:, level: Logger::INFO) | |
@logger = Logger.new($stdout, progname: progname) | |
@logger.level = level | |
end |
This file contains hidden or 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
#!/usr/bin/python3 | |
# @github.com/motebaya - 2023.06.3 08:42:53 AM | |
# file: __logger__ | |
import logging | |
from colorama.ansi import Fore | |
from typing import Union, Type | |
logging.addLevelName(logging.WARNING, f"{Fore.YELLOW}warning{Fore.RESET}") | |
logging.addLevelName(logging.DEBUG, f"{Fore.GREEN}debug{Fore.RESET}") |
NewerOlder